svn commit: r881 - trunk/mapbender/http/php

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


Author: christoph
Date: 2006-11-20 14:59:38+0000
New Revision: 881

Modified:
   trunk/mapbender/http/php/mod_evalArea.php
   trunk/mapbender/http/php/mod_exportElement.php
   trunk/mapbender/http/php/mod_exportGUI.php
   trunk/mapbender/http/php/mod_export_image.php

Log:
* include via dirname(__FILE__)
* added parameter to getGuisByOwner

Modified: trunk/mapbender/http/php/mod_evalArea.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_evalArea.php?view=diff&rev=881&p1=trunk/mapbender/http/php/mod_evalArea.php&p2=trunk/mapbender/http/php/mod_evalArea.php&r1=880&r2=881
==============================================================================
--- trunk/mapbender/http/php/mod_evalArea.php	(original)
+++ trunk/mapbender/http/php/mod_evalArea.php	2006-11-20 14:59:38+0000
@@ -18,8 +18,8 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 import_request_variables("PG");
 include '../include/dyn_css.php';
-require_once("../../conf/mapbender.conf");
-require_once("../classes/class_administration.php");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../classes/class_administration.php");
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>

Modified: trunk/mapbender/http/php/mod_exportElement.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_exportElement.php?view=diff&rev=881&p1=trunk/mapbender/http/php/mod_exportElement.php&p2=trunk/mapbender/http/php/mod_exportElement.php&r1=880&r2=881
==============================================================================
--- trunk/mapbender/http/php/mod_exportElement.php	(original)
+++ trunk/mapbender/http/php/mod_exportElement.php	2006-11-20 14:59:38+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>

Modified: trunk/mapbender/http/php/mod_exportGUI.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_exportGUI.php?view=diff&rev=881&p1=trunk/mapbender/http/php/mod_exportGUI.php&p2=trunk/mapbender/http/php/mod_exportGUI.php&r1=880&r2=881
==============================================================================
--- trunk/mapbender/http/php/mod_exportGUI.php	(original)
+++ trunk/mapbender/http/php/mod_exportGUI.php	2006-11-20 14:59:38+0000
@@ -19,10 +19,10 @@
 
 session_start();
 import_request_variables("PG");
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 $con = db_connect(DBSERVER,OWNER,PW);
 db_select_db(DB,$con);
-require_once("../php/mb_validatePermission.php");
+require_once(dirname(__FILE__)."/../php/mb_validatePermission.php");
 $self = $PHP_SELF . "?".SID."&guiID=".$_REQUEST["guiID"]."&elementID=".$_REQUEST["elementID"];
 ?>
 
@@ -60,9 +60,9 @@
 
 <?php
 
-require_once("../classes/class_administration.php");
+require_once(dirname(__FILE__)."/../classes/class_administration.php");
 $admin = new administration();
-$permguis = $admin->getGuisByPermission($_SESSION["mb_user_id"]);
+$permguis = $admin->getGuisByPermission($_SESSION["mb_user_id"],true);
 
  ###export
 

Modified: trunk/mapbender/http/php/mod_export_image.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_export_image.php?view=diff&rev=881&p1=trunk/mapbender/http/php/mod_export_image.php&p2=trunk/mapbender/http/php/mod_export_image.php&r1=880&r2=881
==============================================================================
--- trunk/mapbender/http/php/mod_export_image.php	(original)
+++ trunk/mapbender/http/php/mod_export_image.php	2006-11-20 14:59:38+0000
@@ -25,7 +25,7 @@
 header("Content-Disposition: attachment; filename=export".$date.".png");
 header("Pragma: no-cache");
 header("Expires: 0");
-include("../../conf/print.conf");
+include(dirname(__FILE__)."/../../conf/print.conf");
 $header_height = intval($_REQUEST["header_height"]) * $deformation;
 $map_width = intval($_REQUEST["map_width"]) * $deformation;
 $map_height = intval($_REQUEST["map_height"]) * $deformation;




More information about the Mapbender_commits mailing list