[Mapbender-commits] r1807 - branches/mapbender_sld/http/sld

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Nov 15 10:51:05 EST 2007


Author: mschulz
Date: 2007-11-15 10:51:05 -0500 (Thu, 15 Nov 2007)
New Revision: 1807

Modified:
   branches/mapbender_sld/http/sld/sld_config.php
Log:
Added copyright and license

Modified: branches/mapbender_sld/http/sld/sld_config.php
===================================================================
--- branches/mapbender_sld/http/sld/sld_config.php	2007-11-15 15:47:49 UTC (rev 1806)
+++ branches/mapbender_sld/http/sld/sld_config.php	2007-11-15 15:51:05 UTC (rev 1807)
@@ -1,4 +1,22 @@
 <?php
+# $Id$
+# http://www.mapbender.org/index.php/SLD
+# 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.
+
 /**
  * This file contains some global configuration variables for the sld-editor
  *
@@ -10,12 +28,12 @@
 
 session_start();
 
-$SLD_MAIN = "sld_main.php?".SID;
-$SLD_FUNCTION_HANDLER = "sld_function_handler.php";
 include_once(dirname(__FILE__)."/sld_parse.php");
 
 // this should come from mapbender.conf
-$MAPBENDER_URL = "http://".$_SERVER["HTTP_HOST"]."/mapbender_sld/http";
+$SLD_MAIN = "sld_main.php?".SID;
+$SLD_FUNCTION_HANDLER = "sld_function_handler.php";
+$MAPBENDER_URL = "http://".$_SERVER["HTTP_HOST"].dirname($_SERVER['PHP_SELF']);
 
 function char_encode($s){
 	if(CHARSET == 'UTF-8'){
@@ -24,13 +42,17 @@
 	return $s;
 }
 
-if (isset($_REQUEST["wms_id"]) && isset($_REQUEST["gui_id"]) && isset($_REQUEST["layer_name"]))
+if (isset($_REQUEST["wms_id"]) && isset($_REQUEST["gui_id"]))
 {
 	$_SESSION["sld_wms_id"] = $_REQUEST["wms_id"];
-	$_SESSION["sld_layer_name"] = $_REQUEST["layer_name"];
 	$_SESSION["sld_gui_id"] = $_REQUEST["gui_id"];
 }
 
+if (isset($_REQUEST["layer_name"]))
+{
+	$_SESSION["sld_layer_name"] = $_REQUEST["layer_name"];
+}
+
 if (isset($_SESSION["sld_wms_id"]) && isset($_SESSION["sld_layer_name"]))
 {
 	$layer_name = $_SESSION["sld_layer_name"];


Property changes on: branches/mapbender_sld/http/sld/sld_config.php
___________________________________________________________________
Name: svn:keywords
   + HeadURL Id LastChangedBy LastChangedDate LastChangedRevision



More information about the Mapbender_commits mailing list