[Mapbender-commits] r6973 - in trunk/mapbender/http: . geoportal

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Sep 29 10:33:23 EDT 2010


Author: christoph
Date: 2010-09-29 14:33:23 +0000 (Wed, 29 Sep 2010)
New Revision: 6973

Added:
   trunk/mapbender/http/geoportal/
   trunk/mapbender/http/geoportal/mod_revertGuiSessionSettings.php
   trunk/mapbender/http/geoportal/mod_revertGuiSessionSettings_server.php
Log:
moved


Added: trunk/mapbender/http/geoportal/mod_revertGuiSessionSettings.php
===================================================================
--- trunk/mapbender/http/geoportal/mod_revertGuiSessionSettings.php	                        (rev 0)
+++ trunk/mapbender/http/geoportal/mod_revertGuiSessionSettings.php	2010-09-29 14:33:23 UTC (rev 6973)
@@ -0,0 +1,23 @@
+<?php
+# 
+#
+# Copyright (C) 2002 CCGIS
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+?>
+Mapbender.events.init.register(function () {
+        $.post("../x_geoportal/mod_revertGuiSessionSettings_server.php", {}, function () {
+        });
+});

Added: trunk/mapbender/http/geoportal/mod_revertGuiSessionSettings_server.php
===================================================================
--- trunk/mapbender/http/geoportal/mod_revertGuiSessionSettings_server.php	                        (rev 0)
+++ trunk/mapbender/http/geoportal/mod_revertGuiSessionSettings_server.php	2010-09-29 14:33:23 UTC (rev 6973)
@@ -0,0 +1,26 @@
+<?php
+# 
+#
+# Copyright (C) 2002 CCGIS
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+include("../classes/class_mb_exception.php");
+session_start();
+$e = new mb_exception("revert GUI session settings:");
+$e = new mb_exception("curr: " . $_SESSION["mb_user_gui"]);
+$e = new mb_exception("prev: " . $_SESSION["previous_gui"]);
+$_SESSION["mb_user_gui"] = $_SESSION["previous_gui"];
+session_write_close();
+?>



More information about the Mapbender_commits mailing list