[Mapbender-commits] r2181 - in branches/2.4.5/http: javascripts php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Mar 5 10:55:49 EST 2008
Author: christoph
Date: 2008-03-05 10:55:49 -0500 (Wed, 05 Mar 2008)
New Revision: 2181
Modified:
branches/2.4.5/http/javascripts/mod_addWMS.php
branches/2.4.5/http/javascripts/mod_back.php
branches/2.4.5/http/javascripts/mod_center1.php
branches/2.4.5/http/javascripts/mod_coords.php
branches/2.4.5/http/javascripts/mod_coords_div.php
branches/2.4.5/http/javascripts/mod_copyright.php
branches/2.4.5/http/javascripts/mod_dependentDiv.php
branches/2.4.5/http/javascripts/mod_dependentIframe.php
branches/2.4.5/http/javascripts/mod_dragMapSize.php
branches/2.4.5/http/javascripts/mod_dynamicOverview.php
branches/2.4.5/http/javascripts/mod_featureInfo.php
branches/2.4.5/http/javascripts/mod_featureInfoTunnel.php
branches/2.4.5/http/javascripts/mod_forward.php
branches/2.4.5/http/javascripts/mod_getArea.php
branches/2.4.5/http/javascripts/mod_help.php
branches/2.4.5/http/javascripts/mod_highlightPOI.php
branches/2.4.5/http/javascripts/mod_insertKmlIntoDb.php
branches/2.4.5/http/javascripts/mod_insertLayerPreviewIntoDb.php
branches/2.4.5/http/javascripts/mod_key.php
branches/2.4.5/http/javascripts/mod_loadwmc.php
branches/2.4.5/http/javascripts/mod_measure.php
branches/2.4.5/http/javascripts/mod_navFrame.php
branches/2.4.5/http/javascripts/mod_pan.php
branches/2.4.5/http/javascripts/mod_perimeter.php
branches/2.4.5/http/javascripts/mod_repaint.php
branches/2.4.5/http/javascripts/mod_resize_mapsize.php
branches/2.4.5/http/javascripts/mod_sandclock.php
branches/2.4.5/http/javascripts/mod_sandclock2.php
branches/2.4.5/http/javascripts/mod_saveLayerPreview.php
branches/2.4.5/http/javascripts/mod_saveWmcKml.php
branches/2.4.5/http/javascripts/mod_savewmc.php
branches/2.4.5/http/javascripts/mod_scaleHint.php
branches/2.4.5/http/javascripts/mod_scaleSel.php
branches/2.4.5/http/javascripts/mod_scaleText.php
branches/2.4.5/http/javascripts/mod_scalebar.php
branches/2.4.5/http/javascripts/mod_selArea.php
branches/2.4.5/http/javascripts/mod_selArea1.php
branches/2.4.5/http/javascripts/mod_selectMapsize.php
branches/2.4.5/http/javascripts/mod_setBBOX1.php
branches/2.4.5/http/javascripts/mod_setBackground.php
branches/2.4.5/http/javascripts/mod_setBackground_all.php
branches/2.4.5/http/javascripts/mod_setPOI2Scale.php
branches/2.4.5/http/javascripts/mod_setTimeout.php
branches/2.4.5/http/javascripts/mod_tab.php
branches/2.4.5/http/javascripts/mod_toggleModule.php
branches/2.4.5/http/javascripts/mod_wfs_SpatialRequest.php
branches/2.4.5/http/javascripts/mod_zoomFull.php
branches/2.4.5/http/javascripts/mod_zoomIn1.php
branches/2.4.5/http/javascripts/mod_zoomOut1.php
branches/2.4.5/http/javascripts/wfs.js
branches/2.4.5/http/php/mod_help.php
Log:
replaced $_REQUEST[gui_id] by $gui_id
Modified: branches/2.4.5/http/javascripts/mod_addWMS.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_addWMS.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_addWMS.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,11 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
-
$sql = "SELECT e_requires, e_target FROM gui_element WHERE e_id = 'addWMS' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_back.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_back.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_back.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,6 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'back' AND fkey_gui_id = $1 ";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_center1.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_center1.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_center1.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,10 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'center1' AND fkey_gui_id = $1 ";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_coords.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_coords.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_coords.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,9 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'showCoords' AND fkey_gui_id = $1 ";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_coords_div.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_coords_div.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_coords_div.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,6 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'showCoords_div' AND fkey_gui_id = $1 ";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_copyright.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_copyright.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_copyright.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -20,7 +20,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
$e_id_css = 'copyright';
-$gui_id = $_REQUEST["gui_id"];
include '../include/dyn_js.php';
$con = db_connect($DBSERVER,$OWNER,$PW);
Modified: branches/2.4.5/http/javascripts/mod_dependentDiv.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_dependentDiv.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_dependentDiv.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,10 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_target FROM gui_element WHERE e_id = 'dependentDiv' AND fkey_gui_id = $1 ";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_dependentIframe.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_dependentIframe.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_dependentIframe.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,9 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_target FROM gui_element WHERE e_id = 'dependentIframe' AND fkey_gui_id = $1 ";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_dragMapSize.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_dragMapSize.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_dragMapSize.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,9 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_target FROM gui_element WHERE e_id = 'dragMapSize' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_dynamicOverview.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_dynamicOverview.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_dynamicOverview.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -20,7 +20,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
$e_id_css = 'dynamicOverview';
-$gui_id = $_REQUEST["gui_id"];
include '../include/dyn_js.php';
$con = db_connect($DBSERVER,$OWNER,$PW);
Modified: branches/2.4.5/http/javascripts/mod_featureInfo.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_featureInfo.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_featureInfo.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,10 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'featureInfo1' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_featureInfoTunnel.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_featureInfoTunnel.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_featureInfoTunnel.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,10 +18,6 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'featureInfoTunnel' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_forward.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_forward.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_forward.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,10 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'forward' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_getArea.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_getArea.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_getArea.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,10 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'getArea' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_help.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_help.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_help.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,10 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$con = db_connect(DBSERVER,OWNER,PW);
-db_select_db(DB,$con);
-$gui_id = $_REQUEST["gui_id"];
-
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'help' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_highlightPOI.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_highlightPOI.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_highlightPOI.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,10 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_target FROM gui_element WHERE e_id = 'highlightPOI' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_insertKmlIntoDb.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_insertKmlIntoDb.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_insertKmlIntoDb.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,8 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
include("../classes/class_kml.php");
-session_start();
-$gui_id = $_REQUEST["gui_id"];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -39,7 +37,7 @@
<?php
echo '<meta http-equiv="Content-Type" content="text/html; charset='.CHARSET.'">';
?>
-<title>MB2 - <?php echo $_REQUEST["gui_id"];?></title>
+<title>MB2 - <?php echo $gui_id;?></title>
<?php
$con = db_connect($DBSERVER,$OWNER,$PW);
Modified: branches/2.4.5/http/javascripts/mod_insertLayerPreviewIntoDb.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_insertLayerPreviewIntoDb.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_insertLayerPreviewIntoDb.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,12 +19,7 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
require_once(dirname(__FILE__)."/../classes/class_administration.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
-
-
function escByteA($binData) {
$search = array();
$replace = array();
Modified: branches/2.4.5/http/javascripts/mod_key.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_key.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_key.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_target FROM gui_element WHERE e_id = 'keyHandler' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_loadwmc.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_loadwmc.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_loadwmc.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -20,10 +20,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
require_once(dirname(__FILE__)."/../classes/class_wmc.php");
-$gui_id = $_REQUEST["gui_id"];
-
-$con = db_connect(DBSERVER, OWNER, PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'savewmc' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_measure.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_measure.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_measure.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,9 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'measure' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_navFrame.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_navFrame.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_navFrame.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,10 +19,8 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
include '../include/dyn_js.php';
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_target,e_src FROM gui_element WHERE e_id = 'navFrame' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_pan.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_pan.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_pan.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'pan1' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_perimeter.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_perimeter.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_perimeter.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,10 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'perimeter' AND fkey_gui_id = $1 ";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_repaint.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_repaint.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_repaint.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'repaint' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_resize_mapsize.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_resize_mapsize.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_resize_mapsize.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -21,9 +21,6 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect(DBSERVER,OWNER,PW);
-db_select_db(DB,$con);
$e_id_css = "resizeMapsize";
include("../include/dyn_js.php");
Modified: branches/2.4.5/http/javascripts/mod_sandclock.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_sandclock.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_sandclock.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,9 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'sandclock' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_sandclock2.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_sandclock2.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_sandclock2.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,9 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'sandclock2' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_saveLayerPreview.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_saveLayerPreview.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_saveLayerPreview.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'savewmc' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_saveWmcKml.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_saveWmcKml.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_saveWmcKml.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,10 +18,8 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
require_once(dirname(__FILE__)."/mod_savewmc.php");
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'savewmc' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_savewmc.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_savewmc.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_savewmc.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,8 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-
include("../include/dyn_js.php");
echo "mod_savewmc_target = '".$e_target."';";
Modified: branches/2.4.5/http/javascripts/mod_scaleHint.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_scaleHint.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_scaleHint.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,9 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_target FROM gui_element WHERE e_id = 'setScaleHint' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_scaleSel.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_scaleSel.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_scaleSel.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'scaleSelect' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_scaleText.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_scaleText.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_scaleText.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'scaleText' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_scalebar.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_scalebar.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_scalebar.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,6 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'scalebar' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_selArea.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_selArea.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_selArea.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'selArea1' AND fkey_gui_id = '".$gui_id."'";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_selArea1.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_selArea1.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_selArea1.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,9 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'selArea1' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_selectMapsize.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_selectMapsize.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_selectMapsize.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,9 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'selectMapsize' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_setBBOX1.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_setBBOX1.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_setBBOX1.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_target FROM gui_element WHERE e_id = 'setBBOX' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_setBackground.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_setBackground.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_setBackground.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'setBackground' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_setBackground_all.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_setBackground_all.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_setBackground_all.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -20,9 +20,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'setBackground_all' AND fkey_gui_id = $1 ";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_setPOI2Scale.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_setPOI2Scale.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_setPOI2Scale.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_target FROM gui_element WHERE e_id = 'setPOI2Scale' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array("s");
Modified: branches/2.4.5/http/javascripts/mod_setTimeout.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_setTimeout.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_setTimeout.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -20,7 +20,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
$e_id_css = 'timeout';
-$gui_id = $_REQUEST["gui_id"];
include '../include/dyn_js.php';
?>
Modified: branches/2.4.5/http/javascripts/mod_tab.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_tab.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_tab.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -20,7 +20,6 @@
/********** Configuration*************************************************/
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
$e_id_css = 'tabs';
include(dirname(__FILE__).'/../include/dyn_js.php');
Modified: branches/2.4.5/http/javascripts/mod_toggleModule.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_toggleModule.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_toggleModule.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -19,9 +19,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_target FROM gui_element WHERE e_id = 'toggleModule' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_wfs_SpatialRequest.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_wfs_SpatialRequest.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_wfs_SpatialRequest.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -20,10 +20,6 @@
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
import_request_variables("PG");
require_once("../../conf/wfs_default.conf");
-$con = db_connect(DBSERVER,OWNER,PW);
-db_select_db(DB,$con);
-
-$gui_id = $_REQUEST["gui_id"];
$e_id_css = "setSpatialRequest";
$wfs_conf_filename = "wfs_default.conf";
Modified: branches/2.4.5/http/javascripts/mod_zoomFull.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_zoomFull.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_zoomFull.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -2,9 +2,7 @@
#$Id$
#$Header: /cvsroot/mapbender/mapbender/http/javascripts/mod_zoomFull.php,v 1.8 2005/09/13 18:16:42 bjoern_heuser Exp $
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'zoomFull' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array("s");
Modified: branches/2.4.5/http/javascripts/mod_zoomIn1.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_zoomIn1.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_zoomIn1.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -18,9 +18,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'zoomIn1' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array('s');
Modified: branches/2.4.5/http/javascripts/mod_zoomOut1.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_zoomOut1.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/mod_zoomOut1.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -3,9 +3,6 @@
#$Header: /cvsroot/mapbender/mapbender/http/javascripts/mod_zoomOut1.php,v 1.8 2005/09/13 18:16:42 bjoern_heuser Exp $
require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
-$gui_id = $_REQUEST["gui_id"];
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'zoomOut1' AND fkey_gui_id = $1";
$v = array($gui_id);
$t = array("s");
Modified: branches/2.4.5/http/javascripts/wfs.js
===================================================================
--- branches/2.4.5/http/javascripts/wfs.js 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/javascripts/wfs.js 2008-03-05 15:55:49 UTC (rev 2181)
@@ -17,14 +17,9 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-session_start();
import_request_variables("PG");
require_once("../php/mb_validateSession.php");
-require_once("../../conf/mapbender.conf");
-$con = db_connect(DBSERVER,OWNER,PW);
-db_select_db(DB,$con);
-$gui_id = $_REQUEST["gui_id"];
$e_id_css = "wfs";
include '../include/dyn_js.php';
require_once("wfs_usemap.js");
Modified: branches/2.4.5/http/php/mod_help.php
===================================================================
--- branches/2.4.5/http/php/mod_help.php 2008-03-05 15:44:48 UTC (rev 2180)
+++ branches/2.4.5/http/php/mod_help.php 2008-03-05 15:55:49 UTC (rev 2181)
@@ -26,7 +26,6 @@
<script language="JavaScript" type="text/javascript">
<?php
$e_id_css = 'help';
-$gui_id = $_REQUEST["gui_id"];
include(dirname(__FILE__)."/../include/dyn_php.php");
if(!isset($mod_help_width)){
$mod_help_width = 1000;
More information about the Mapbender_commits
mailing list