svn commit: r857 - trunk/mapbender/http/javascripts

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


Author: christoph
Date: 2006-11-20 14:09:21+0000
New Revision: 857

Modified:
   trunk/mapbender/http/javascripts/mod_pan.php
   trunk/mapbender/http/javascripts/mod_perimeter.php
   trunk/mapbender/http/javascripts/mod_print1.php

Log:
include via dirname(__FILE__)

Modified: trunk/mapbender/http/javascripts/mod_pan.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_pan.php?view=diff&rev=857&p1=trunk/mapbender/http/javascripts/mod_pan.php&p2=trunk/mapbender/http/javascripts/mod_pan.php&r1=856&r2=857
==============================================================================
--- trunk/mapbender/http/javascripts/mod_pan.php	(original)
+++ trunk/mapbender/http/javascripts/mod_pan.php	2006-11-20 14:09:21+0000
@@ -18,7 +18,7 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 $gui_id = $_REQUEST["gui_id"];
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 $con = db_connect($DBSERVER,$OWNER,$PW);
 db_select_db(DB,$con);
 $sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'pan1' AND fkey_gui_id = $1";

Modified: trunk/mapbender/http/javascripts/mod_perimeter.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_perimeter.php?view=diff&rev=857&p1=trunk/mapbender/http/javascripts/mod_perimeter.php&p2=trunk/mapbender/http/javascripts/mod_perimeter.php&r1=856&r2=857
==============================================================================
--- trunk/mapbender/http/javascripts/mod_perimeter.php	(original)
+++ trunk/mapbender/http/javascripts/mod_perimeter.php	2006-11-20 14:09:21+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_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 
 $gui_id = $_REQUEST["gui_id"];
 
@@ -37,7 +37,7 @@
 	echo "alert('perimeter: ID not unique!');";
 }
 $e_id_css = 'perimeter';
-include('../include/dyn_js.php');
+include(dirname(__FILE__).'/../include/dyn_js.php');
 ?>
 
 var mod_perimeter_target = "<?php echo $e_target; ?>";

Modified: trunk/mapbender/http/javascripts/mod_print1.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_print1.php?view=diff&rev=857&p1=trunk/mapbender/http/javascripts/mod_print1.php&p2=trunk/mapbender/http/javascripts/mod_print1.php&r1=856&r2=857
==============================================================================
--- trunk/mapbender/http/javascripts/mod_print1.php	(original)
+++ trunk/mapbender/http/javascripts/mod_print1.php	2006-11-20 14:09:21+0000
@@ -18,8 +18,8 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 session_start();
-include("../../conf/print.conf");
-include("../../conf/mapbender.conf");
+include(dirname(__FILE__)."/../../conf/print.conf");
+include(dirname(__FILE__)."/../../conf/mapbender.conf");
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>




More information about the Mapbender_commits mailing list