Modification to complete the work on see #421

This commit is contained in:
Pierre Gilles Mialon 2006-04-26 16:12:08 +00:00
parent 80ee4a4dfb
commit 2e1dda9665
2 changed files with 2 additions and 3 deletions

View File

@ -254,7 +254,7 @@ class m_admin {
$err->raise("admin",10);
return false;
}
$pass=stripslashes($pass);
//$pass=stripslashes($pass);
$pass=_md5cr($pass);
$db=new DB_System();
// vérification de l'inexistence du membre dans system.membres

View File

@ -71,7 +71,6 @@ class m_mem {
$err->log("mem","login",$username);
// $username=addslashes($username);
// $password=addslashes($password);
$password=stripslashes($password);
$db->query("select * from membres where login='$username';");
if ($db->num_rows()==0) {
$err->raise("mem",1);
@ -82,7 +81,7 @@ class m_mem {
$db->query("UPDATE membres SET lastfail=lastfail+1 WHERE uid='".$db->f("uid")."';");
$err->raise("mem",1);
return false;
}
}
if (!$db->f("enabled")) {
$err->raise("mem",2);
return false;