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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jun 25 04:06:09 EDT 2009


Author: vera
Date: 2009-06-25 04:06:08 -0400 (Thu, 25 Jun 2009)
New Revision: 4150

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

Modified: trunk/mapbender/http/php/mod_editGroup.php
===================================================================
--- trunk/mapbender/http/php/mod_editGroup.php	2009-06-25 07:53:15 UTC (rev 4149)
+++ trunk/mapbender/http/php/mod_editGroup.php	2009-06-25 08:06:08 UTC (rev 4150)
@@ -112,9 +112,9 @@
 }
 if (!isset($name) || $selected_group == 'new'){
   $name = "";
-  $owner_id = $_SESSION["mb_user_id"];
-  $owner_name = $_SESSION["mb_user_name"];
-  $description = "";
+  $owner_id = Mapbender::session()->get("mb_user_id");
+  $owner_name = Mapbender::session()->get("mb_user_name");
+	$description = "";
 }
 
 /*HTML*****************************************************************************************************/
@@ -134,7 +134,7 @@
    $t = array();
    if (isset($myGroup)) { 
 		$sql .= "WHERE mb_group_owner = $1";
-		array_push($v, $_SESSION["mb_user_id"]);
+		array_push($v, Mapbender::session()->get("mb_user_id"));
 		array_push($t, "i");
    }
    $sql .= " ORDER BY mb_group_name ";
@@ -200,7 +200,7 @@
 if($selected_group == 'new' || !isset($selected_group)){
    echo "<input type='button' value='save'  onclick='validate(\"save\")'>";
 }
-if($_SESSION["mb_user_id"] == $owner_id && $selected_group != 'new' && $selected_group != '' ){
+if(Mapbender::session()->get("mb_user_id") == $owner_id && $selected_group != 'new' && $selected_group != '' ){
    echo "<input type='button' value='save'  onclick='validate(\"update\")'>";
    echo "<input type='button' value='delete'  onclick='validate(\"delete\")'>";
 }



More information about the Mapbender_commits mailing list