svn commit: r880 - trunk/mapbender/http/php

christoph at osgeo.org christoph at osgeo.org
Mon Nov 20 09:58:23 EST 2006


Author: christoph
Date: 2006-11-20 14:58:23+0000
New Revision: 880

Modified:
   trunk/mapbender/http/php/mod_loadCapabilities.php
   trunk/mapbender/http/php/mod_loadCapabilitiesList.php
   trunk/mapbender/http/php/mod_loadCapabilities_temp.php
   trunk/mapbender/http/php/mod_loadwfs.php
   trunk/mapbender/http/php/mod_loadwms_temp.php

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

Modified: trunk/mapbender/http/php/mod_loadCapabilities.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_loadCapabilities.php?view=diff&rev=880&p1=trunk/mapbender/http/php/mod_loadCapabilities.php&p2=trunk/mapbender/http/php/mod_loadCapabilities.php&r1=879&r2=880
==============================================================================
--- trunk/mapbender/http/php/mod_loadCapabilities.php	(original)
+++ trunk/mapbender/http/php/mod_loadCapabilities.php	2006-11-20 14:58:23+0000
@@ -18,10 +18,10 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 session_start();
-include("../../conf/mapbender.conf");
+include(dirname(__FILE__)."/../../conf/mapbender.conf");
 $con = db_connect(DBSERVER,OWNER,PW);
 db_select_db(DB,$con);
-include("../php/mb_validatePermission.php");
+include(dirname(__FILE__)."/../php/mb_validatePermission.php");
 $secParams = SID."&guiID=".$_REQUEST["guiID"]."&elementID=".$_REQUEST["elementID"];
 $self = $PHP_SELF."?".$secParams;
 import_request_variables("PG");
@@ -92,9 +92,9 @@
 
 <?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"]);
+$ownguis = $admin->getGuisByOwner($_SESSION["mb_user_id"],true);
 
 echo "<form name='form1' action='" . $self ."' method='post'>";
 echo "<table cellpadding='0' cellspacing='0' border='0'>";

Modified: trunk/mapbender/http/php/mod_loadCapabilitiesList.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_loadCapabilitiesList.php?view=diff&rev=880&p1=trunk/mapbender/http/php/mod_loadCapabilitiesList.php&p2=trunk/mapbender/http/php/mod_loadCapabilitiesList.php&r1=879&r2=880
==============================================================================
--- trunk/mapbender/http/php/mod_loadCapabilitiesList.php	(original)
+++ trunk/mapbender/http/php/mod_loadCapabilitiesList.php	2006-11-20 14:58:23+0000
@@ -121,7 +121,7 @@
 
 require_once(dirname(__FILE__)."/../classes/class_administration.php");
 $admin = new administration();
-$ownguis = $admin->getGuisByOwner($_SESSION["mb_user_id"]);
+$ownguis = $admin->getGuisByOwner($_SESSION["mb_user_id"],true);
 
 
 

Modified: trunk/mapbender/http/php/mod_loadCapabilities_temp.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_loadCapabilities_temp.php?view=diff&rev=880&p1=trunk/mapbender/http/php/mod_loadCapabilities_temp.php&p2=trunk/mapbender/http/php/mod_loadCapabilities_temp.php&r1=879&r2=880
==============================================================================
--- trunk/mapbender/http/php/mod_loadCapabilities_temp.php	(original)
+++ trunk/mapbender/http/php/mod_loadCapabilities_temp.php	2006-11-20 14:58:23+0000
@@ -18,9 +18,9 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 session_start();
-include("../php/mb_validateSession.php");
-require_once("mb_validateInput.php");
-include("../../conf/mapbender.conf");
+include(dirname(__FILE__)."/../php/mb_validateSession.php");
+require_once(dirname(__FILE__)."/mb_validateInput.php");
+include(dirname(__FILE__)."/../../conf/mapbender.conf");
 import_request_variables("PG");
 ?>
 

Modified: trunk/mapbender/http/php/mod_loadwfs.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_loadwfs.php?view=diff&rev=880&p1=trunk/mapbender/http/php/mod_loadwfs.php&p2=trunk/mapbender/http/php/mod_loadwfs.php&r1=879&r2=880
==============================================================================
--- trunk/mapbender/http/php/mod_loadwfs.php	(original)
+++ trunk/mapbender/http/php/mod_loadwfs.php	2006-11-20 14:58:23+0000
@@ -19,9 +19,9 @@
 
 session_start();
 
-require_once("mb_validateInput.php");
-require_once("../../conf/mapbender.conf");
-require_once("../classes/class_wfs.php"); 
+require_once(dirname(__FILE__)."/mb_validateInput.php");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../classes/class_wfs.php"); 
 echo "file: ".$_REQUEST["xml_file"];
 echo "<br>-------------------------------<br>";
 $gui_id=mb_validateInput($_REQUEST["guiList"]);

Modified: trunk/mapbender/http/php/mod_loadwms_temp.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_loadwms_temp.php?view=diff&rev=880&p1=trunk/mapbender/http/php/mod_loadwms_temp.php&p2=trunk/mapbender/http/php/mod_loadwms_temp.php&r1=879&r2=880
==============================================================================
--- trunk/mapbender/http/php/mod_loadwms_temp.php	(original)
+++ trunk/mapbender/http/php/mod_loadwms_temp.php	2006-11-20 14:58:23+0000
@@ -18,9 +18,9 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 session_start();
-require_once("mb_validateInput.php");
-require_once("../../conf/mapbender.conf");
-require_once("../classes/class_wms.php"); 
+require_once(dirname(__FILE__)."/mb_validateInput.php");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../classes/class_wms.php"); 
 
 
 #echo "file: ".$_REQUEST["xml_file"];




More information about the Mapbender_commits mailing list