[Mapbender-commits] r6609 - trunk/mapbender/http/frames

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jul 22 10:33:00 EDT 2010


Author: verenadiewald
Date: 2010-07-22 14:33:00 +0000 (Thu, 22 Jul 2010)
New Revision: 6609

Modified:
   trunk/mapbender/http/frames/index.php
   trunk/mapbender/http/frames/login.php
Log:
added get params CRS and ZOOM

Modified: trunk/mapbender/http/frames/index.php
===================================================================
--- trunk/mapbender/http/frames/index.php	2010-07-22 08:34:34 UTC (rev 6608)
+++ trunk/mapbender/http/frames/index.php	2010-07-22 14:33:00 UTC (rev 6609)
@@ -95,7 +95,11 @@
 }
 $currentApplication = new gui($gui_id);
 echo $currentApplication->toHtml();
-$mapPhpParameters = htmlentities($urlParameters, ENT_QUOTES, CHARSET)."&mb_myBBOX=".$_REQUEST["mb_myBBOX"];
+$mapPhpParameters = htmlentities($urlParameters, ENT_QUOTES, CHARSET);
+$mapPhpParameters .= "&ZOOM=".$_REQUEST["ZOOM"];
+$mapPhpParameters .= "&CRS=".$_REQUEST["CRS"];
+$mapPhpParameters .= "&mb_myBBOX=".$_REQUEST["mb_myBBOX"];
+
 echo "<script type='text/javascript' src='../javascripts/map.php?".$mapPhpParameters."'></script>";
 
 ?>

Modified: trunk/mapbender/http/frames/login.php
===================================================================
--- trunk/mapbender/http/frames/login.php	2010-07-22 08:34:34 UTC (rev 6608)
+++ trunk/mapbender/http/frames/login.php	2010-07-22 14:33:00 UTC (rev 6609)
@@ -192,9 +192,13 @@
 					$myURL = "Location: http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/index.php?".strip_tags (SID)."&gui_id=".$arrayGUIs[0];
 				}
 				# params for the initial call
+				$myURL .= "&ZOOM=".$_REQUEST["ZOOM"];
+				$myURL .= "&CRS=".$_REQUEST["CRS"];
+				
 				if(isset($_REQUEST["mb_myBBOX"])){
 					$myURL .= "&mb_myBBOX=".$_REQUEST["mb_myBBOX"];
 				}
+				
 				session_write_close();
 				header ($myURL);
 				die;



More information about the Mapbender_commits mailing list