svn commit: r890 - trunk/mapbender/http/php/mod_changeEPSG.php

christoph at osgeo.org christoph at osgeo.org
Mon Nov 20 10:35:17 EST 2006


Author: christoph
Date: 2006-11-20 15:35:16+0000
New Revision: 890

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

Log:
include via dirname(__FILE__)

Modified: trunk/mapbender/http/php/mod_changeEPSG.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_changeEPSG.php?view=diff&rev=890&p1=trunk/mapbender/http/php/mod_changeEPSG.php&p2=trunk/mapbender/http/php/mod_changeEPSG.php&r1=889&r2=890
==============================================================================
--- trunk/mapbender/http/php/mod_changeEPSG.php	(original)
+++ trunk/mapbender/http/php/mod_changeEPSG.php	2006-11-20 15:35:16+0000
@@ -17,9 +17,9 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-require("mb_validateSession.php");
+require(dirname(__FILE__)."/mb_validateSession.php");
 $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);
 ?>
@@ -37,18 +37,11 @@
 ?>
 <title>Change Spatial Reference System EPSG Code</title>
 <?php
-#include '../include/dyn_css.php';
 $e_id_css = 'changeEPSG';
 echo "<script type='text/javascript'>";
-include('../include/dyn_js.php');
+include(dirname(__FILE__)."/../include/dyn_js.php");
 echo "</script>";
 
-
-?>
-
-
-
-<?php
 $sql = "SELECT e_target FROM gui_element WHERE e_id = 'changeEPSG' AND fkey_gui_id = $1";
 $v = array($gui_id);
 $t = array('s');




More information about the Mapbender_commits mailing list