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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jun 25 07:42:11 EDT 2009


Author: vera
Date: 2009-06-25 07:42:10 -0400 (Thu, 25 Jun 2009)
New Revision: 4222

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

Modified: trunk/mapbender/http/php/mod_editElements.php
===================================================================
--- trunk/mapbender/http/php/mod_editElements.php	2009-06-25 11:37:37 UTC (rev 4221)
+++ trunk/mapbender/http/php/mod_editElements.php	2009-06-25 11:42:10 UTC (rev 4222)
@@ -120,7 +120,7 @@
 	$alert .= "module-path. Please contact your mapbender system administrator.";
 
 	$mod = new administration();
-	$aGuis = $mod->getGuisByPermission($_SESSION["mb_user_id"],true);
+	$aGuis = $mod->getGuisByPermission(Mapbender::session()->get("mb_user_id"),true);
 	$modPermAlert = false;
 
 	if($check == true){
@@ -235,9 +235,10 @@
 	$e_target = ""; $e_requires = ""; $e_url = "";
 }
 if(isset($myShow) && $myShow == '1'){
-   $_SESSION["mb_user_myGui"] = $guiList1;
+	 Mapbender::session()->set("mb_user_myGui",$guiList1);
+
    echo "<script language='javascript'>";
-   echo "window.open('../frames/login.php?".strip_tags (SID)."&name=".$_SESSION["mb_user_name"]."&password=".urlencode($_SESSION["mb_user_password"])."&mb_user_myGui=".$guiList1."','','');";
+   echo "window.open('../frames/login.php?".strip_tags (SID)."&name=".Mapbender::session()->get("mb_user_name")."&password=".urlencode(Mapbender::session()->get("mb_user_password"))."&mb_user_myGui=".$guiList1."','','');";
    echo "</script>";
 }
 if(isset($all) && $all == '1'){
@@ -381,8 +382,8 @@
 
 <?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";
 if(count($ownguis)>0){
 	$v = array();
@@ -472,7 +473,7 @@
 	   		"onclick='if (confirm(\"" . 
 			_mb("Please make sure you have made a backup of your application before using this feature! Continue?") . 
 			"\")) window.open(\"mod_editApplication.php?" . SID . "&" .
-	   		"guiID=" . $_SESSION["mb_user_gui"] . "&" .
+	   		"guiID=" . Mapbender::session()->get("mb_user_gui") . "&" .
 	   		"editApplicationId=" . $guiList1 . "\", " .
 	   		"\"edit application\", " .
 	   		"\"width=500,height=500,dependent\");'> \n";



More information about the Mapbender_commits mailing list