Citation :
function auth($l,$p,$zid=0)
{
$r = false;
$w = sprintf('valide=1 AND email="%s" AND pass="%s"',addslashes($l),addslashes($p));
$m = $this->l->select_hash('pau_membres',$w); $this->info = $m[0];
if(is_array($this->info)) $r = $this->refresh($zid);
else $this->kill(1);
return($r);
}
|