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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jun 25 05:40:36 EDT 2009


Author: vera
Date: 2009-06-25 05:40:36 -0400 (Thu, 25 Jun 2009)
New Revision: 4189

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

Modified: trunk/mapbender/http/php/mod_newGui.php
===================================================================
--- trunk/mapbender/http/php/mod_newGui.php	2009-06-25 09:38:22 UTC (rev 4188)
+++ trunk/mapbender/http/php/mod_newGui.php	2009-06-25 09:40:36 UTC (rev 4189)
@@ -51,12 +51,12 @@
 	$res = db_prep_query($sql,$v,$t);
 	$sql = "INSERT INTO gui_mb_user (fkey_gui_id,fkey_mb_user_id,mb_user_type) ";
 	$sql .= "VALUES($1, $2, $3)";
-	$v = array($newGui,$_SESSION["mb_user_id"], 'owner');
+	$v = array($newGui,Mapbender::session()->get("mb_user_id"), 'owner');
 	$t = array('s','i','s');
 	$res = db_prep_query($sql,$v,$t);
 	require_once(dirname(__FILE__)."/mb_getGUIs.php");
-	$arrayGUIs = mb_getGUIs( $_SESSION["mb_user_id"]);
-	$_SESSION["mb_user_guis"] = $arrayGUIs;
+	$arrayGUIs = mb_getGUIs( Mapbender::session()->get("mb_user_id"));
+	Mapbender::session()->set("mb_user_guis",$arrayGUIs);
 	$guiCreated=true;
   }
 }



More information about the Mapbender_commits mailing list