svn commit: r933 - trunk/mapbender/http/print
christoph at osgeo.org
christoph at osgeo.org
Tue Nov 21 11:12:48 EST 2006
Author: christoph
Date: 2006-11-21 16:12:48+0000
New Revision: 933
Modified:
trunk/mapbender/http/print/mod_printPDF.php
trunk/mapbender/http/print/mod_printPDF_pdf.php
trunk/mapbender/http/print/printPDF.conf
trunk/mapbender/http/print/printPDF_b.conf
Log:
* include via dirname(__FILE__)
Modified: trunk/mapbender/http/print/mod_printPDF.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/print/mod_printPDF.php?view=diff&rev=933&p1=trunk/mapbender/http/print/mod_printPDF.php&p2=trunk/mapbender/http/print/mod_printPDF.php&r1=932&r2=933
==============================================================================
--- trunk/mapbender/http/print/mod_printPDF.php (original)
+++ trunk/mapbender/http/print/mod_printPDF.php 2006-11-21 16:12:48+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.
session_start();
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -51,7 +51,7 @@
<?php
-require_once("../print/".$_REQUEST["conf"]);
+require_once(dirname(__FILE__)."/../print/".$_REQUEST["conf"]);
echo "<script type='text/javascript'>";
echo "var target = '".$_REQUEST["target"]."';";
echo "var comment = '".$label_comment."';";
Modified: trunk/mapbender/http/print/mod_printPDF_pdf.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/print/mod_printPDF_pdf.php?view=diff&rev=933&p1=trunk/mapbender/http/print/mod_printPDF_pdf.php&p2=trunk/mapbender/http/print/mod_printPDF_pdf.php&r1=932&r2=933
==============================================================================
--- trunk/mapbender/http/print/mod_printPDF_pdf.php (original)
+++ trunk/mapbender/http/print/mod_printPDF_pdf.php 2006-11-21 16:12:48+0000
@@ -21,14 +21,16 @@
ob_start();
session_start();
ini_set('error_reporting', 'E_ALL & ~ E_NOTICE');
-include ('../classes/class.ezpdf.php');
-include ('../classes/class_stripRequest.php');
-include ('../classes/class_weldMaps2PNG.php');
-include ('../classes/class_weldOverview2PNG.php');
-include ('../print/'.$_REQUEST["conf"]);
-include ('../classes/class_SaveLegend.php');
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+
+include (dirname(__FILE__)."/../classes/class.ezpdf.php");
+include (dirname(__FILE__)."/../classes/class_stripRequest.php");
+include (dirname(__FILE__)."/../classes/class_weldMaps2PNG.php");
+include (dirname(__FILE__)."/../classes/class_weldOverview2PNG.php");
+include (dirname(__FILE__)."/../print/".$_REQUEST["conf"]);
+include (dirname(__FILE__)."/../classes/class_SaveLegend.php");
if($log == true){
- include ('../classes/class_log.php');
+ include (dirname(__FILE__)."/../classes/class_log.php");
}
#Globals
Modified: trunk/mapbender/http/print/printPDF.conf
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/print/printPDF.conf?view=diff&rev=933&p1=trunk/mapbender/http/print/printPDF.conf&p2=trunk/mapbender/http/print/printPDF.conf&r1=932&r2=933
==============================================================================
--- trunk/mapbender/http/print/printPDF.conf (original)
+++ trunk/mapbender/http/print/printPDF.conf 2006-11-21 16:12:48+0000
@@ -1,6 +1,6 @@
<?php
-include_once("../../conf/mapbender.conf");
+include_once(dirname(__FILE__)."/../../conf/mapbender.conf");
# filename for temporary imagefiles
$filename = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".png";
Modified: trunk/mapbender/http/print/printPDF_b.conf
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/print/printPDF_b.conf?view=diff&rev=933&p1=trunk/mapbender/http/print/printPDF_b.conf&p2=trunk/mapbender/http/print/printPDF_b.conf&r1=932&r2=933
==============================================================================
--- trunk/mapbender/http/print/printPDF_b.conf (original)
+++ trunk/mapbender/http/print/printPDF_b.conf 2006-11-21 16:12:48+0000
@@ -1,6 +1,6 @@
<?php
-include_once("../../conf/mapbender.conf");
+include_once(dirname(__FILE__)."/../../conf/mapbender.conf");
# filename for temporary imagefiles
$filename = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".png";
More information about the Mapbender_commits
mailing list