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

christoph at osgeo.org christoph at osgeo.org
Mon Nov 20 09:21:52 EST 2006


Author: christoph
Date: 2006-11-20 14:21:52+0000
New Revision: 863

Modified:
   trunk/mapbender/http/php/mod_usemap.php
   trunk/mapbender/http/php/mod_user_filteredGroup.php
   trunk/mapbender/http/php/mod_user_filteredGui.php
   trunk/mapbender/http/php/mod_user_group.php
   trunk/mapbender/http/php/mod_user_gui.php

Log:
include via dirname(__FILE__)

Modified: trunk/mapbender/http/php/mod_usemap.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_usemap.php?view=diff&rev=863&p1=trunk/mapbender/http/php/mod_usemap.php&p2=trunk/mapbender/http/php/mod_usemap.php&r1=862&r2=863
==============================================================================
--- trunk/mapbender/http/php/mod_usemap.php	(original)
+++ trunk/mapbender/http/php/mod_usemap.php	2006-11-20 14:21:52+0000
@@ -19,13 +19,13 @@
 # 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("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 echo '<meta http-equiv="Content-Type" content="text/html; charset='.CHARSET.'">';	
 ?>
 <title>image map generator</title>
 </head>
 <?php
-include_once("../classes/class_gml2.php");
+include_once(dirname(__FILE__)."/../classes/class_gml2.php");
 $url = urldecode($_REQUEST["url"]);
 
 $g = new gml2();

Modified: trunk/mapbender/http/php/mod_user_filteredGroup.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_user_filteredGroup.php?view=diff&rev=863&p1=trunk/mapbender/http/php/mod_user_filteredGroup.php&p2=trunk/mapbender/http/php/mod_user_filteredGroup.php&r1=862&r2=863
==============================================================================
--- trunk/mapbender/http/php/mod_user_filteredGroup.php	(original)
+++ trunk/mapbender/http/php/mod_user_filteredGroup.php	2006-11-20 14:21:52+0000
@@ -18,10 +18,10 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 import_request_variables("PG");
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 $con = db_connect(DBSERVER,OWNER,PW);
 db_select_db(DB,$con);
-require_once("../php/mb_validatePermission.php");
+require_once(dirname(__FILE__)."/../php/mb_validatePermission.php");
 $self = $PHP_SELF . "?".SID."&guiID=".$_REQUEST["guiID"]."&elementID=".$_REQUEST["elementID"];
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Modified: trunk/mapbender/http/php/mod_user_filteredGui.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_user_filteredGui.php?view=diff&rev=863&p1=trunk/mapbender/http/php/mod_user_filteredGui.php&p2=trunk/mapbender/http/php/mod_user_filteredGui.php&r1=862&r2=863
==============================================================================
--- trunk/mapbender/http/php/mod_user_filteredGui.php	(original)
+++ trunk/mapbender/http/php/mod_user_filteredGui.php	2006-11-20 14:21:52+0000
@@ -21,11 +21,11 @@
 session_start();
 $gui_id = $_SESSION["mb_user_gui"];
 
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 $con = db_connect(DBSERVER,OWNER,PW);
 db_select_db(DB,$con);
-require_once("mb_validatePermission.php");
-require_once("../classes/class_wms.php");
+require_once(dirname(__FILE__)."/mb_validatePermission.php");
+require_once(dirname(__FILE__)."/../classes/class_wms.php");
 $self = $PHP_SELF . "?".SID."&guiID=".$_REQUEST["guiID"]."&elementID=".$_REQUEST["elementID"]; 
 
 ?>
@@ -67,11 +67,11 @@
 </head>
 <body>
 <?php
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 $con = db_connect($DBSERVER,$OWNER,$PW);
 db_select_db(DB,$con);
 
-require_once("../php/mb_getGUIs.php");
+require_once(dirname(__FILE__)."/../php/mb_getGUIs.php");
 
 $fieldHeight = 25;
 

Modified: trunk/mapbender/http/php/mod_user_group.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_user_group.php?view=diff&rev=863&p1=trunk/mapbender/http/php/mod_user_group.php&p2=trunk/mapbender/http/php/mod_user_group.php&r1=862&r2=863
==============================================================================
--- trunk/mapbender/http/php/mod_user_group.php	(original)
+++ trunk/mapbender/http/php/mod_user_group.php	2006-11-20 14:21:52+0000
@@ -18,10 +18,10 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 import_request_variables("PG");
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 $con = db_connect(DBSERVER,OWNER,PW);
 db_select_db(DB,$con);
-require_once("../php/mb_validatePermission.php");
+require_once(dirname(__FILE__)."/../php/mb_validatePermission.php");
 $self = $PHP_SELF . "?".SID."&guiID=".$_REQUEST["guiID"]."&elementID=".$_REQUEST["elementID"];
 
 ?>

Modified: trunk/mapbender/http/php/mod_user_gui.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_user_gui.php?view=diff&rev=863&p1=trunk/mapbender/http/php/mod_user_gui.php&p2=trunk/mapbender/http/php/mod_user_gui.php&r1=862&r2=863
==============================================================================
--- trunk/mapbender/http/php/mod_user_gui.php	(original)
+++ trunk/mapbender/http/php/mod_user_gui.php	2006-11-20 14:21:52+0000
@@ -20,11 +20,11 @@
 session_start();
 $gui_id = $_SESSION["mb_user_gui"];
 
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 $con = db_connect(DBSERVER,OWNER,PW);
 db_select_db(DB,$con);
-require_once("mb_validatePermission.php");
-require_once("../classes/class_wms.php"); 
+require_once(dirname(__FILE__)."/mb_validatePermission.php");
+require_once(dirname(__FILE__)."/../classes/class_wms.php"); 
 $self = $PHP_SELF . "?".SID."&guiID=".$_REQUEST["guiID"]."&elementID=".$_REQUEST["elementID"];
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">




More information about the Mapbender_commits mailing list