[Mapbender-commits] r2174 - branches/2.4.5/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Mar 5 10:27:48 EST 2008
Author: christoph
Date: 2008-03-05 10:27:48 -0500 (Wed, 05 Mar 2008)
New Revision: 2174
Modified:
branches/2.4.5/http/javascripts/map.php
Log:
removed obsolete code, refactoring
Modified: branches/2.4.5/http/javascripts/map.php
===================================================================
--- branches/2.4.5/http/javascripts/map.php 2008-03-05 15:25:25 UTC (rev 2173)
+++ branches/2.4.5/http/javascripts/map.php 2008-03-05 15:27:48 UTC (rev 2174)
@@ -24,7 +24,6 @@
ini_set('session.bug_compat_42',0);
ini_set('session.bug_compat_warn',0);
-session_start();
header('Content-type: application/x-javascript');
echo "var mb_nr = '".session_id()."';";
@@ -38,15 +37,13 @@
include("map.js");
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
-
$mb_sql = "SELECT DISTINCT e_js_file, e_id, e_src, e_target, e_pos ";
-$mb_sql .= "FROM gui_element WHERE e_public = 1 AND fkey_gui_id = $1 ORDER BY e_pos";
-$v = array($_REQUEST["gui_id"]);
+$mb_sql .= "FROM gui_element WHERE e_public = 1 AND fkey_gui_id = $1 ";
+$mb_sql .= "ORDER BY e_pos";
+$v = array($gui_id);
$t = array("s");
$mb_res = db_prep_query($mb_sql, $v, $t);
-//$mb_cnt = 0;
+
while($row_js = db_fetch_array($mb_res)){
if($row_js["e_js_file"] != ""){
$e_id = $row_js["e_id"];
More information about the Mapbender_commits
mailing list