svn commit: r868 - trunk/mapbender/http/php
christoph at osgeo.org
christoph at osgeo.org
Mon Nov 20 09:30:43 EST 2006
Author: christoph
Date: 2006-11-20 14:30:43+0000
New Revision: 868
Modified:
trunk/mapbender/http/php/mod_changeEPSG_dynamic.php
trunk/mapbender/http/php/mod_createJSObjFromDB.php
trunk/mapbender/http/php/mod_createJSObjFromXML.php
trunk/mapbender/http/php/mod_createUser.php
Log:
include via dirname(__FILE__)
Modified: trunk/mapbender/http/php/mod_changeEPSG_dynamic.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_changeEPSG_dynamic.php?view=diff&rev=868&p1=trunk/mapbender/http/php/mod_changeEPSG_dynamic.php&p2=trunk/mapbender/http/php/mod_changeEPSG_dynamic.php&r1=867&r2=868
==============================================================================
--- trunk/mapbender/http/php/mod_changeEPSG_dynamic.php (original)
+++ trunk/mapbender/http/php/mod_changeEPSG_dynamic.php 2006-11-20 14:30:43+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("mb_validateSession.php");
-require_once("../../conf/mapbender.conf");
+require(dirname(__FILE__)."/mb_validateSession.php");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
@@ -110,7 +110,7 @@
echo "</script>";
# transform coordinates
if(isset($_REQUEST["srs"])){
- require_once("../../conf/mapbender.conf");
+ require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
$con = pg_connect ($con_string) or die ("Error while connecting database DBname");
$arraymapObj = split("###", $_REQUEST["srs"]);
Modified: trunk/mapbender/http/php/mod_createJSObjFromDB.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_createJSObjFromDB.php?view=diff&rev=868&p1=trunk/mapbender/http/php/mod_createJSObjFromDB.php&p2=trunk/mapbender/http/php/mod_createJSObjFromDB.php&r1=867&r2=868
==============================================================================
--- trunk/mapbender/http/php/mod_createJSObjFromDB.php (original)
+++ trunk/mapbender/http/php/mod_createJSObjFromDB.php 2006-11-20 14:30:43+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_once("mb_validateSession.php");
-require_once("../../conf/mapbender.conf");
-require_once("../classes/class_wms.php");
+require_once(dirname(__FILE__)."/mb_validateSession.php");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../classes/class_wms.php");
$con = db_connect(DBSERVER,OWNER,PW);
db_select_db(DB,$con);
Modified: trunk/mapbender/http/php/mod_createJSObjFromXML.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_createJSObjFromXML.php?view=diff&rev=868&p1=trunk/mapbender/http/php/mod_createJSObjFromXML.php&p2=trunk/mapbender/http/php/mod_createJSObjFromXML.php&r1=867&r2=868
==============================================================================
--- trunk/mapbender/http/php/mod_createJSObjFromXML.php (original)
+++ trunk/mapbender/http/php/mod_createJSObjFromXML.php 2006-11-20 14:30:43+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");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
@@ -31,7 +31,7 @@
<title>Load WMS</title>
<?php
echo "<script type='text/javascript'>";
-require_once("../classes/class_wms.php");
+require_once(dirname(__FILE__)."/../classes/class_wms.php");
$mywms = new wms();
$mywms->createObjFromXML(html_entity_decode($_REQUEST['caps']));
if(!$mywms->wms_status){ echo "alert('Error: The Capabilities Document " . html_entity_decode($_REQUEST['caps']) . " could not be accessed. Please check whether the server is responding and accessible to Mapbender.'); </script>"; die; }
Modified: trunk/mapbender/http/php/mod_createUser.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_createUser.php?view=diff&rev=868&p1=trunk/mapbender/http/php/mod_createUser.php&p2=trunk/mapbender/http/php/mod_createUser.php&r1=867&r2=868
==============================================================================
--- trunk/mapbender/http/php/mod_createUser.php (original)
+++ trunk/mapbender/http/php/mod_createUser.php 2006-11-20 14:30:43+0000
@@ -19,15 +19,15 @@
# 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");
if(PORTAL != true){
echo "This module is disabled. Please check your mapbender.conf.";
die;
}
$con = db_connect(DBSERVER,OWNER,PW);
db_select_db(DB,$con);
-require_once("../classes/class_gui.php");
-require_once("../classes/class_administration.php");
+require_once(dirname(__FILE__)."/../classes/class_gui.php");
+require_once(dirname(__FILE__)."/../classes/class_administration.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
More information about the Mapbender_commits
mailing list