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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jan 19 05:02:45 EST 2010


Author: christoph
Date: 2010-01-19 05:02:44 -0500 (Tue, 19 Jan 2010)
New Revision: 5336

Modified:
   trunk/mapbender/http/php/mb_validateSession.php
Log:
assume login if gui id and user id are set in session, you can call your current app by http://<your installation>/frames/index.php

Modified: trunk/mapbender/http/php/mb_validateSession.php
===================================================================
--- trunk/mapbender/http/php/mb_validateSession.php	2010-01-19 09:16:25 UTC (rev 5335)
+++ trunk/mapbender/http/php/mb_validateSession.php	2010-01-19 10:02:44 UTC (rev 5336)
@@ -47,6 +47,10 @@
 		$gui_id = $_REQUEST["gui_id"];
 		$e = new mb_notice("gui id set to gui_id: " . $gui_id);
 	}
+	elseif (Mapbender::session()->get("mb_user_gui") !== false) {
+		$gui_id = Mapbender::session()->get("mb_user_gui");
+		$e = new mb_notice("gui id set to gui_id: " . $gui_id);
+	}
 	else {
 		$e = new mb_notice("mb_validateSession.php: gui_id not set in script: " . $_SERVER["PHP_SELF"]);
 	}



More information about the Mapbender_commits mailing list