Modification to complete the work on see #421
This commit is contained in:
parent
80ee4a4dfb
commit
2e1dda9665
|
@ -254,7 +254,7 @@ class m_admin {
|
||||||
$err->raise("admin",10);
|
$err->raise("admin",10);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$pass=stripslashes($pass);
|
//$pass=stripslashes($pass);
|
||||||
$pass=_md5cr($pass);
|
$pass=_md5cr($pass);
|
||||||
$db=new DB_System();
|
$db=new DB_System();
|
||||||
// vérification de l'inexistence du membre dans system.membres
|
// vérification de l'inexistence du membre dans system.membres
|
||||||
|
|
|
@ -71,7 +71,6 @@ class m_mem {
|
||||||
$err->log("mem","login",$username);
|
$err->log("mem","login",$username);
|
||||||
// $username=addslashes($username);
|
// $username=addslashes($username);
|
||||||
// $password=addslashes($password);
|
// $password=addslashes($password);
|
||||||
$password=stripslashes($password);
|
|
||||||
$db->query("select * from membres where login='$username';");
|
$db->query("select * from membres where login='$username';");
|
||||||
if ($db->num_rows()==0) {
|
if ($db->num_rows()==0) {
|
||||||
$err->raise("mem",1);
|
$err->raise("mem",1);
|
||||||
|
@ -82,7 +81,7 @@ class m_mem {
|
||||||
$db->query("UPDATE membres SET lastfail=lastfail+1 WHERE uid='".$db->f("uid")."';");
|
$db->query("UPDATE membres SET lastfail=lastfail+1 WHERE uid='".$db->f("uid")."';");
|
||||||
$err->raise("mem",1);
|
$err->raise("mem",1);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!$db->f("enabled")) {
|
if (!$db->f("enabled")) {
|
||||||
$err->raise("mem",2);
|
$err->raise("mem",2);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue