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

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


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

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

Modified: trunk/mapbender/http/php/mod_editSelf.php
===================================================================
--- trunk/mapbender/http/php/mod_editSelf.php	2009-06-25 08:16:22 UTC (rev 4153)
+++ trunk/mapbender/http/php/mod_editSelf.php	2009-06-25 08:25:58 UTC (rev 4154)
@@ -196,8 +196,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 = "";
@@ -206,17 +206,17 @@
   $resolution = 72;
 }
 
-$selected_user = $_SESSION["mb_user_id"];
+$selected_user = Mapbender::session()->get("mb_user_id");
 
 /*HTML*****************************************************************************************************/
 
 echo "<form name='form1' action='" . $self ."' method='post'>";
-echo "<input type='hidden' name='selected_user' value='" . $_SESSION["mb_user_id"] . "'>";
+echo "<input type='hidden' name='selected_user' value='" . Mapbender::session()->get("mb_user_id") . "'>";
 echo "<table border='0'>";
 
 if(isset($selected_user) && $selected_user != 0){
    $sql = "SELECT * FROM mb_user WHERE mb_user_id = $1";
-   $v = array($_SESSION["mb_user_id"]);
+   $v = array(Mapbender::session()->get("mb_user_id"));
    $t = array('i');
    $res = db_prep_query($sql,$v,$t);
    if($row = db_fetch_array($res)){
@@ -229,7 +229,7 @@
       $phone = $row["mb_user_phone"];
       $department = $row["mb_user_department"];
       $resolution = $row["mb_user_resolution"];
-	  $owner_id = $_SESSION["mb_user_id"];
+	  $owner_id = Mapbender::session()->get("mb_user_id");
    	$edit = true;
    }
    else {
@@ -329,7 +329,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 != '' ){
+if(Mapbender::session()->get("mb_user_id") == $owner_id && $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