update
This commit is contained in:
@@ -23,7 +23,7 @@ abstract class UserValidator {
|
||||
$sql = "SELECT count(login) FROM wp_preserve WHERE login=:01";
|
||||
|
||||
$stmt = $db->prepare($sql)
|
||||
->bindParam("01", mysql_escape_string(strip_tags($login)) )
|
||||
->bindParam("01", strip_tags($login) )
|
||||
->execute();
|
||||
|
||||
$amout=$stmt->FetchRow();
|
||||
@@ -45,7 +45,7 @@ abstract class UserValidator {
|
||||
$sql = "SELECT count(email) FROM wp_preserve WHERE email=:01";
|
||||
|
||||
$stmt = $db->prepare($sql)
|
||||
->bindParam("01", mysql_escape_string(strip_tags($email)) )
|
||||
->bindParam("01", strip_tags($email) )
|
||||
->execute();
|
||||
|
||||
$amout=$stmt->FetchRow();
|
||||
@@ -60,8 +60,8 @@ abstract class UserValidator {
|
||||
$sql="SELECT count(login) FROM wp_preserve WHERE hash=:01 AND passwd=:02";
|
||||
|
||||
$stmt = $db->prepare($sql)
|
||||
->bindParam("01",mysql_escape_string(strip_tags($hash)) )
|
||||
->bindParam("02",mysql_escape_string(strip_tags($password)) )
|
||||
->bindParam("01",strip_tags($hash) )
|
||||
->bindParam("02",strip_tags($password) )
|
||||
->execute();
|
||||
|
||||
$amout=$stmt->FetchRow();
|
||||
|
||||
Reference in New Issue
Block a user