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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jun 25 04:27:52 EDT 2009


Author: vera
Date: 2009-06-25 04:27:52 -0400 (Thu, 25 Jun 2009)
New Revision: 4155

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

Modified: trunk/mapbender/http/php/mod_editUser.php
===================================================================
--- trunk/mapbender/http/php/mod_editUser.php	2009-06-25 08:25:58 UTC (rev 4154)
+++ trunk/mapbender/http/php/mod_editUser.php	2009-06-25 08:27:52 UTC (rev 4155)
@@ -195,8 +195,8 @@
 if (!isset($name) || $selected_user == 'new'){
   $name = "";
   $password = "";
-  $owner_id = $_SESSION["mb_user_id"];
-  $owner_name = $_SESSION["mb_user_name"];
+  $owner_id = Mapbender::session()->get("mb_user_id");
+  $owner_name = Mapbender::session()->get("mb_user_name");
   $description = "";
   $login_count = 0;
   $email = "";
@@ -224,7 +224,7 @@
    $t = array();
 	if (isset($myUser)) { 
    		$sql .= "WHERE mb_user_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_user_name ";
@@ -364,7 +364,7 @@
 if($selected_user == 'new' || !isset($selected_user)){
    echo "<input type='button' value='save'  onclick='validate(\"save\")'>";
 }
-if($_SESSION["mb_user_id"] == $owner_id && $selected_user != 'new' && $selected_user != '' ){
+if(Mapbender::session()->get("mb_user_id") == $owner_id && $selected_user != 'new' && $selected_user != '' ){
    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