svn commit: r851 - trunk/mapbender/http/classes

christoph at osgeo.org christoph at osgeo.org
Mon Nov 20 08:58:16 EST 2006


Author: christoph
Date: 2006-11-20 13:58:16+0000
New Revision: 851

Modified:
   trunk/mapbender/http/classes/class_SaveLegend.php
   trunk/mapbender/http/classes/class_gui.php
   trunk/mapbender/http/classes/class_log.php
   trunk/mapbender/http/classes/class_stripRequest.php
   trunk/mapbender/http/classes/class_weldLegend2PNG.php
   trunk/mapbender/http/classes/class_weldMaps2PNG.php
   trunk/mapbender/http/classes/class_weldOverview2PNG.php

Log:
include via dirname(__FILE__)

Modified: trunk/mapbender/http/classes/class_SaveLegend.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_SaveLegend.php?view=diff&rev=851&p1=trunk/mapbender/http/classes/class_SaveLegend.php&p2=trunk/mapbender/http/classes/class_SaveLegend.php&r1=850&r2=851
==============================================================================
--- trunk/mapbender/http/classes/class_SaveLegend.php	(original)
+++ trunk/mapbender/http/classes/class_SaveLegend.php	2006-11-20 13:58:16+0000
@@ -22,9 +22,9 @@
 * getlegendurl
 *
 **/
-require_once("class_stripRequest.php");
-require_once("class_mb_exception.php");
-require_once("class_connector.php");
+require_once(dirname(__FILE__)."/class_stripRequest.php");
+require_once(dirname(__FILE__)."/class_mb_exception.php");
+require_once(dirname(__FILE__)."/class_connector.php");
 
 class SaveLegend{
 

Modified: trunk/mapbender/http/classes/class_gui.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_gui.php?view=diff&rev=851&p1=trunk/mapbender/http/classes/class_gui.php&p2=trunk/mapbender/http/classes/class_gui.php&r1=850&r2=851
==============================================================================
--- trunk/mapbender/http/classes/class_gui.php	(original)
+++ trunk/mapbender/http/classes/class_gui.php	2006-11-20 13:58:16+0000
@@ -18,7 +18,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");
 $con = db_connect($DBSERVER,$OWNER,$PW);
 db_select_db(DB,$con);
 

Modified: trunk/mapbender/http/classes/class_log.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_log.php?view=diff&rev=851&p1=trunk/mapbender/http/classes/class_log.php&p2=trunk/mapbender/http/classes/class_log.php&r1=850&r2=851
==============================================================================
--- trunk/mapbender/http/classes/class_log.php	(original)
+++ trunk/mapbender/http/classes/class_log.php	2006-11-20 13:58:16+0000
@@ -68,7 +68,7 @@
 		else if($this->logtype == 'db'){
 
 
-			include_once("../../conf/mapbender.conf");
+			include_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 			$con = db_connect(DBSERVER,OWNER,PW);
 			db_select_db(DB,$con);
 			for($i = 0; $i < count($this->url); $i++){
@@ -102,7 +102,7 @@
 				$res = db_query($sql)or die(db_error());
 
 				if(!$res){
-					include_once("class_mb_exception.php");
+					include_once(dirname(__FILE__)."/class_mb_exception.php");
 					$e = new mb_exception("class_log: Writing table mb_log failed.");
 				}
 			}

Modified: trunk/mapbender/http/classes/class_stripRequest.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_stripRequest.php?view=diff&rev=851&p1=trunk/mapbender/http/classes/class_stripRequest.php&p2=trunk/mapbender/http/classes/class_stripRequest.php&r1=850&r2=851
==============================================================================
--- trunk/mapbender/http/classes/class_stripRequest.php	(original)
+++ trunk/mapbender/http/classes/class_stripRequest.php	2006-11-20 13:58:16+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("class_mb_exception.php");
+require_once(dirname(__FILE__)."/class_mb_exception.php");
 
 
 class stripRequest{

Modified: trunk/mapbender/http/classes/class_weldLegend2PNG.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_weldLegend2PNG.php?view=diff&rev=851&p1=trunk/mapbender/http/classes/class_weldLegend2PNG.php&p2=trunk/mapbender/http/classes/class_weldLegend2PNG.php&r1=850&r2=851
==============================================================================
--- trunk/mapbender/http/classes/class_weldLegend2PNG.php	(original)
+++ trunk/mapbender/http/classes/class_weldLegend2PNG.php	2006-11-20 13:58:16+0000
@@ -23,8 +23,8 @@
 * get/post '___' separated maprequests
 *
 **/
-require_once("class_stripRequest.php");
-require_once("class_mb_exception.php");
+require_once(dirname(__FILE__)."/class_stripRequest.php");
+require_once(dirname(__FILE__)."/class_mb_exception.php");
 class weldMaps2PNG{
 
 	function weldMaps2PNG($urls,$filename){

Modified: trunk/mapbender/http/classes/class_weldMaps2PNG.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_weldMaps2PNG.php?view=diff&rev=851&p1=trunk/mapbender/http/classes/class_weldMaps2PNG.php&p2=trunk/mapbender/http/classes/class_weldMaps2PNG.php&r1=850&r2=851
==============================================================================
--- trunk/mapbender/http/classes/class_weldMaps2PNG.php	(original)
+++ trunk/mapbender/http/classes/class_weldMaps2PNG.php	2006-11-20 13:58:16+0000
@@ -23,10 +23,10 @@
 * get/post '___' separated maprequests
 *
 **/
-require_once("class_stripRequest.php");
-require_once("class_mb_exception.php");
-require_once("class_connector.php");
-include_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/class_stripRequest.php");
+require_once(dirname(__FILE__)."/class_mb_exception.php");
+require_once(dirname(__FILE__)."/class_connector.php");
+include_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 
 class weldMaps2PNG{
 

Modified: trunk/mapbender/http/classes/class_weldOverview2PNG.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_weldOverview2PNG.php?view=diff&rev=851&p1=trunk/mapbender/http/classes/class_weldOverview2PNG.php&p2=trunk/mapbender/http/classes/class_weldOverview2PNG.php&r1=850&r2=851
==============================================================================
--- trunk/mapbender/http/classes/class_weldOverview2PNG.php	(original)
+++ trunk/mapbender/http/classes/class_weldOverview2PNG.php	2006-11-20 13:58:16+0000
@@ -23,9 +23,9 @@
 * get/post '___' separated maprequests
 *
 **/
-require_once("class_stripRequest.php");
-require_once("class_mb_exception.php");
-require_once("class_connector.php");
+require_once(dirname(__FILE__)."/class_stripRequest.php");
+require_once(dirname(__FILE__)."/class_mb_exception.php");
+require_once(dirname(__FILE__)."/class_connector.php");
 
 class weldOverview2PNG{
 




More information about the Mapbender_commits mailing list