svn commit: r866 - trunk/mapbender/http/php
christoph at osgeo.org
christoph at osgeo.org
Mon Nov 20 09:26:55 EST 2006
Author: christoph
Date: 2006-11-20 14:26:55+0000
New Revision: 866
Modified:
trunk/mapbender/http/php/mod_gazLayerObj_conf.php
trunk/mapbender/http/php/mod_gazLayerObj_edit.php
trunk/mapbender/http/php/mod_gazetteer_conf.php
trunk/mapbender/http/php/mod_gazetteer_edit.php
trunk/mapbender/http/php/mod_getStyles.php
Log:
include via dirname(__FILE__)
Modified: trunk/mapbender/http/php/mod_gazLayerObj_conf.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_gazLayerObj_conf.php?view=diff&rev=866&p1=trunk/mapbender/http/php/mod_gazLayerObj_conf.php&p2=trunk/mapbender/http/php/mod_gazLayerObj_conf.php&r1=865&r2=866
==============================================================================
--- trunk/mapbender/http/php/mod_gazLayerObj_conf.php (original)
+++ trunk/mapbender/http/php/mod_gazLayerObj_conf.php 2006-11-20 14:26:55+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("../classes/class_wfs_conf.php");
-require("../../conf/mapbender.conf");
+require(dirname(__FILE__)."/../classes/class_wfs_conf.php");
+require(dirname(__FILE__)."/../../conf/mapbender.conf");
?>
<html>
<head>
Modified: trunk/mapbender/http/php/mod_gazLayerObj_edit.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_gazLayerObj_edit.php?view=diff&rev=866&p1=trunk/mapbender/http/php/mod_gazLayerObj_edit.php&p2=trunk/mapbender/http/php/mod_gazLayerObj_edit.php&r1=865&r2=866
==============================================================================
--- trunk/mapbender/http/php/mod_gazLayerObj_edit.php (original)
+++ trunk/mapbender/http/php/mod_gazLayerObj_edit.php 2006-11-20 14:26:55+0000
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-require("../../conf/mapbender.conf");
+require(dirname(__FILE__)."/../../conf/mapbender.conf");
?>
<html>
<head>
Modified: trunk/mapbender/http/php/mod_gazetteer_conf.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_gazetteer_conf.php?view=diff&rev=866&p1=trunk/mapbender/http/php/mod_gazetteer_conf.php&p2=trunk/mapbender/http/php/mod_gazetteer_conf.php&r1=865&r2=866
==============================================================================
--- trunk/mapbender/http/php/mod_gazetteer_conf.php (original)
+++ trunk/mapbender/http/php/mod_gazetteer_conf.php 2006-11-20 14:26:55+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("../classes/class_wfs_conf.php");
-require("../../conf/mapbender.conf");
+require(dirname(__FILE__)."/../classes/class_wfs_conf.php");
+require(dirname(__FILE__)."/../../conf/mapbender.conf");
?>
<html>
<head>
Modified: trunk/mapbender/http/php/mod_gazetteer_edit.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_gazetteer_edit.php?view=diff&rev=866&p1=trunk/mapbender/http/php/mod_gazetteer_edit.php&p2=trunk/mapbender/http/php/mod_gazetteer_edit.php&r1=865&r2=866
==============================================================================
--- trunk/mapbender/http/php/mod_gazetteer_edit.php (original)
+++ trunk/mapbender/http/php/mod_gazetteer_edit.php 2006-11-20 14:26:55+0000
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-require("../../conf/mapbender.conf");
+require(dirname(__FILE__)."/../../conf/mapbender.conf");
?>
<html>
<head>
Modified: trunk/mapbender/http/php/mod_getStyles.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_getStyles.php?view=diff&rev=866&p1=trunk/mapbender/http/php/mod_getStyles.php&p2=trunk/mapbender/http/php/mod_getStyles.php&r1=865&r2=866
==============================================================================
--- trunk/mapbender/http/php/mod_getStyles.php (original)
+++ trunk/mapbender/http/php/mod_getStyles.php 2006-11-20 14:26:55+0000
@@ -19,8 +19,8 @@
session_start();
import_request_variables("PG");
-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");
$con = db_connect($DBSERVER,$OWNER,$PW);
db_select_db(DB,$con);
@@ -125,7 +125,7 @@
@fclose($style_xml);
fclose($style_file);
- #include("../../conf/www.conf");
+ #include(dirname(__FILE__)."/../../conf/www.conf");
$sql = "UPDATE wms SET wms_filter = '".str_replace(basename($login),$style_filename,$login)."' WHERE wms_id = ". $wmsList;
echo $sql;
db_query($sql) or die("unable to change filter!");
More information about the Mapbender_commits
mailing list