[Mapbender-commits] r1972 - branches/2.5/http/frames

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jan 16 06:38:48 EST 2008


Author: christoph
Date: 2008-01-16 06:38:48 -0500 (Wed, 16 Jan 2008)
New Revision: 1972

Modified:
   branches/2.5/http/frames/login.php
Log:
prepared statements

Modified: branches/2.5/http/frames/login.php
===================================================================
--- branches/2.5/http/frames/login.php	2008-01-16 11:36:47 UTC (rev 1971)
+++ branches/2.5/http/frames/login.php	2008-01-16 11:38:48 UTC (rev 1972)
@@ -152,8 +152,10 @@
 	}	
 	if($_SESSION["mb_user_id"]){
 		if($row["mb_user_login_count"] < $loginMax){
-			$sql_del_cnt =  "UPDATE mb_user SET mb_user_login_count = 0 WHERE mb_user_id = " . $_SESSION['mb_user_id'];
-			db_query($sql_del_cnt);
+			$sql_del_cnt =  "UPDATE mb_user SET mb_user_login_count = 0 WHERE mb_user_id = $1";
+			$v = array($_SESSION['mb_user_id']);
+			$t = array("i");
+			db_prep_query($sql_del_cnt, $v, $t);
 			require_once(dirname(__FILE__)."/../php/mb_getGUIs.php");
 			$arrayGUIs = mb_getGUIs($row["mb_user_id"]);
 			$_SESSION["mb_user_guis"] = $arrayGUIs;



More information about the Mapbender_commits mailing list