[Mapbender-commits] r4131 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jun 24 11:42:46 EDT 2009


Author: vera
Date: 2009-06-24 11:42:46 -0400 (Wed, 24 Jun 2009)
New Revision: 4131

Modified:
   trunk/mapbender/http/php/mod_edit_metadata.php
Log:
session var angepasst

Modified: trunk/mapbender/http/php/mod_edit_metadata.php
===================================================================
--- trunk/mapbender/http/php/mod_edit_metadata.php	2009-06-24 15:39:46 UTC (rev 4130)
+++ trunk/mapbender/http/php/mod_edit_metadata.php	2009-06-24 15:42:46 UTC (rev 4131)
@@ -207,7 +207,7 @@
    $e_more_styles = ""; $e_content = ""; $e_closetag = ""; $e_js_file = ""; $e_mb_mod = ""; $e_target = ""; $e_requires = "";
 }
 if(isset($myShow) && $myShow == '1'){
-   $_SESSION["mb_user_myGui"] = $guiList1;
+   Mapbender::session()->get("mb_user_myGui") = $guiList1;
    echo "<script language='javascript'>";
    echo "window.open('../frames/login.php?".strip_tags (SID)."&mb_user_myGui=".$guiList1."','','');";
    echo "</script>";
@@ -353,8 +353,8 @@
 <?php
 require_once(dirname(__FILE__)."/../classes/class_administration.php");
 $admin = new administration();
-$ownguis = $admin->getGuisByOwner($_SESSION["mb_user_id"],true);
-$permguis = $admin->getGuisByPermission($_SESSION["mb_user_id"],true);
+$ownguis = $admin->getGuisByOwner(Mapbender::session()->get("mb_user_id"),true);
+$permguis = $admin->getGuisByPermission(Mapbender::session()->get("mb_user_id"),true);
 echo "<form name='form1' action='" . $self ."' method='post'>\n";
 
 $sql = "SELECT * from gui WHERE gui.gui_id IN (";



More information about the Mapbender_commits mailing list