[Mapbender-commits] r4215 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jun 25 07:07:27 EDT 2009
Author: vera
Date: 2009-06-25 07:07:27 -0400 (Thu, 25 Jun 2009)
New Revision: 4215
Modified:
trunk/mapbender/http/javascripts/mod_setPOI2Scale.php
Log:
session var angepasst
Modified: trunk/mapbender/http/javascripts/mod_setPOI2Scale.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_setPOI2Scale.php 2009-06-25 11:05:35 UTC (rev 4214)
+++ trunk/mapbender/http/javascripts/mod_setPOI2Scale.php 2009-06-25 11:07:27 UTC (rev 4215)
@@ -1,51 +1,51 @@
-<?php
-# $Id$
-# http://www.mapbender.org/index.php/mod_setPOI2Scale.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.
-
-require_once(dirname(__FILE__)."/../php/mb_validatePermission.php");
-echo "var mod_setPOI2Scale_target = '".$e_target[0]."';";
-include(dirname(__FILE__) . "/../include/dyn_js.php");
-
-?>
-
-try{
- if (mod_setPOI2Scale_defScale){}
-}
-catch(e){
- mod_setPOI2Scale_defScale = 5000;
-}
-
-eventInit.register(function () {
- mod_setPOI2Scale();
-});
-
-function mod_setPOI2Scale(){
- var my_target = mod_setPOI2Scale_target.split(",");
- var myPOI = "<?php echo $_SESSION['mb_myPOI2SCALE'] ?>";
- if(myPOI && myPOI != ""){
- var coord = myPOI.split(",");
- if(coord.length == 2){
- coord[2] = mod_setPOI2Scale_defScale;
- }
- for(var i=0; i<my_target.length; i++){
- if(myPOI != ""){
- mb_repaintScale(my_target[i], coord[0], coord[1], coord[2]);
- }
- }
- }
-}
+<?php
+# $Id$
+# http://www.mapbender.org/index.php/mod_setPOI2Scale.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.
+
+require_once(dirname(__FILE__)."/../php/mb_validatePermission.php");
+echo "var mod_setPOI2Scale_target = '".$e_target[0]."';";
+include(dirname(__FILE__) . "/../include/dyn_js.php");
+
+?>
+
+try{
+ if (mod_setPOI2Scale_defScale){}
+}
+catch(e){
+ mod_setPOI2Scale_defScale = 5000;
+}
+
+eventInit.register(function () {
+ mod_setPOI2Scale();
+});
+
+function mod_setPOI2Scale(){
+ var my_target = mod_setPOI2Scale_target.split(",");
+ var myPOI = "<?php echo Mapbender::session()->get("mb_myPOI2SCALE") ?>";
+ if(myPOI && myPOI != ""){
+ var coord = myPOI.split(",");
+ if(coord.length == 2){
+ coord[2] = mod_setPOI2Scale_defScale;
+ }
+ for(var i=0; i<my_target.length; i++){
+ if(myPOI != ""){
+ mb_repaintScale(my_target[i], coord[0], coord[1], coord[2]);
+ }
+ }
+ }
+}
More information about the Mapbender_commits
mailing list