svn commit: r886 - trunk/mapbender/http/php/mod_editElements.php
christoph at osgeo.org
christoph at osgeo.org
Mon Nov 20 10:09:00 EST 2006
Author: christoph
Date: 2006-11-20 15:08:59+0000
New Revision: 886
Modified:
trunk/mapbender/http/php/mod_editElements.php
Log:
* include via dirname(__FILE__)
* added parameter to getGuisByOwner
Modified: trunk/mapbender/http/php/mod_editElements.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_editElements.php?view=diff&rev=886&p1=trunk/mapbender/http/php/mod_editElements.php&p2=trunk/mapbender/http/php/mod_editElements.php&r1=885&r2=886
==============================================================================
--- trunk/mapbender/http/php/mod_editElements.php (original)
+++ trunk/mapbender/http/php/mod_editElements.php 2006-11-20 15:08:59+0000
@@ -19,11 +19,11 @@
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);
-include("../php/mb_validatePermission.php");
-require_once("../classes/class_administration.php");
+include(dirname(__FILE__)."/../php/mb_validatePermission.php");
+require_once(dirname(__FILE__)."/../classes/class_administration.php");
$sParams = SID."&guiID=".$_REQUEST["guiID"]."&elementID=".$_REQUEST["elementID"];
$self = $PHP_SELF . "?".$sParams;
?>
@@ -126,7 +126,7 @@
$alert .= "module-path. Please contact your mapbender system administrator.";
$mod = new administration();
- $aGuis = $mod->getGuisByPermission($_SESSION["mb_user_id"]);
+ $aGuis = $mod->getGuisByPermission($_SESSION["mb_user_id"],true);
$modPermAlert = false;
if($check == true){
@@ -386,8 +386,8 @@
<?php
$admin = new administration();
-$ownguis = $admin->getGuisByOwner($_SESSION["mb_user_id"]);
-$permguis = $admin->getGuisByPermission($_SESSION["mb_user_id"]);
+$ownguis = $admin->getGuisByOwner($_SESSION["mb_user_id"],true);
+$permguis = $admin->getGuisByPermission($_SESSION["mb_user_id"],true);
echo "<form name='form1' action='" . $self ."' method='post'>\n";
if(count($ownguis)>0){
$v = array();
More information about the Mapbender_commits
mailing list