svn commit: r102 - trunk/mapbender/http/javascripts/mod_center1.php

arnulf at osgeo.org arnulf at osgeo.org
Wed Apr 19 10:26:27 EDT 2006


Author: arnulf
Date: 2006-04-19 14:26:27+0000
New Revision: 102

Modified:
   trunk/mapbender/http/javascripts/mod_center1.php   (contents, props changed)

Log:
code cleaned, added prepared statements

Modified: trunk/mapbender/http/javascripts/mod_center1.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_center1.php?view=diff&rev=102&p1=trunk/mapbender/http/javascripts/mod_center1.php&p2=trunk/mapbender/http/javascripts/mod_center1.php&r1=101&r2=102
==============================================================================
--- trunk/mapbender/http/javascripts/mod_center1.php	(original)
+++ trunk/mapbender/http/javascripts/mod_center1.php	2006-04-19 14:26:27+0000
@@ -1,6 +1,6 @@
 <?php
-#$Id: mod_center1.php,v 1.9 2005/09/13 18:16:42 bjoern_heuser Exp $
-#$Header: /cvsroot/mapbender/mapbender/http/javascripts/mod_center1.php,v 1.9 2005/09/13 18:16:42 bjoern_heuser Exp $
+# $Id$
+# http://www.mapbender.org/index.php/ReCenter
 # Copyright (C) 2002 CCGIS 
 #
 # This program is free software; you can redistribute it and/or modify
@@ -23,8 +23,10 @@
 
 $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 = '".$gui_id."'";
-$res = db_query($sql);
+$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');
+$res = db_prep_query($sql, $v, $t);
 $cnt = 0;
 while($row = db_fetch_array($res)){ 
 	$e_src = $row["e_src"];




More information about the Mapbender_commits mailing list