svn commit: r885 - trunk/mapbender/http/php/mod_edit_metadata.php

christoph at osgeo.org christoph at osgeo.org
Mon Nov 20 10:08:36 EST 2006


Author: christoph
Date: 2006-11-20 15:08:36+0000
New Revision: 885

Modified:
   trunk/mapbender/http/php/mod_edit_metadata.php

Log:
* include via dirname(__FILE__)
* added parameter to getGuisByOwner

Modified: trunk/mapbender/http/php/mod_edit_metadata.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_edit_metadata.php?view=diff&rev=885&p1=trunk/mapbender/http/php/mod_edit_metadata.php&p2=trunk/mapbender/http/php/mod_edit_metadata.php&r1=884&r2=885
==============================================================================
--- trunk/mapbender/http/php/mod_edit_metadata.php	(original)
+++ trunk/mapbender/http/php/mod_edit_metadata.php	2006-11-20 15:08:36+0000
@@ -19,8 +19,8 @@
 
 session_start();
 import_request_variables("PG");
-include("../php/mb_validateSession.php");
-require_once("../../conf/mapbender.conf");
+include(dirname(__FILE__)."/../php/mb_validateSession.php");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 $con = db_connect($DBSERVER,$OWNER,$PW);
 db_select_db(DB,$con);
 
@@ -307,10 +307,10 @@
 <body>
 
 <?php
-require_once("../classes/class_administration.php");
+require_once(dirname(__FILE__)."/../classes/class_administration.php");
 $admin = new administration();
-$ownguis = $admin->getGuisByOwner($_SESSION["mb_user_id"]);
-$permguis = $admin->getGuisByPermission($_SESSION["mb_user_id"]);
+$ownguis = $admin->getGuisByOwner($_SESSION["mb_user_id"],true);
+$permguis = $admin->getGuisByPermission($_SESSION["mb_user_id"],true);
 echo "<form name='form1' action='" . $PHP_SELF . "?".SID."' method='post'>\n";
 
 $sql = "SELECT * from gui WHERE gui.gui_id IN(";




More information about the Mapbender_commits mailing list