svn commit: r889 - trunk/mapbender/http/php/mod_monitorWMS.php

christoph at osgeo.org christoph at osgeo.org
Mon Nov 20 10:26:00 EST 2006


Author: christoph
Date: 2006-11-20 15:25:59+0000
New Revision: 889

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

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

Modified: trunk/mapbender/http/php/mod_monitorWMS.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_monitorWMS.php?view=diff&rev=889&p1=trunk/mapbender/http/php/mod_monitorWMS.php&p2=trunk/mapbender/http/php/mod_monitorWMS.php&r1=888&r2=889
==============================================================================
--- trunk/mapbender/http/php/mod_monitorWMS.php	(original)
+++ trunk/mapbender/http/php/mod_monitorWMS.php	2006-11-20 15:25:59+0000
@@ -17,8 +17,8 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-require_once("../php/mb_validateSession.php");
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 import_request_variables("PG");
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -32,15 +32,15 @@
 </head>
 <body>
 <?php
-require_once("../classes/class_wms.php");
-require_once("../classes/class_administration.php");
+require_once(dirname(__FILE__)."/../classes/class_wms.php");
+require_once(dirname(__FILE__)."/../classes/class_administration.php");
 
 $con = db_connect($DBSERVER,$OWNER,$PW);
 db_select_db(DB,$con);
 
 $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);
 $wms_id_own = $admin->getWmsByOwnGuis($ownguis);
 
 $sql = "SELECT fkey_wms_id, wms_getmap FROM wms_monitor";




More information about the Mapbender_commits mailing list