
07.04.2009, 00:45
|
|
Reservists Of Antichat - Level 6
Регистрация: 14.11.2007
Сообщений: 177
Провел на форуме: 1246854
Репутация:
622
|
|
WOWD Движок сайта WoW
PHP код:
function check()
{
if(isset($_COOKIE[$this->config['site_cookie']])){
list($cookie['user_id'], $cookie['password_hash']) = @unserialize(stripslashes($_COOKIE[$this->config['site_cookie']]));
if($cookie['user_id'] < 1)return false;
$res = $this->DB->selectRow('realmd', "SELECT * FROM account WHERE `id` = ?d", $cookie['user_id']);
if($cookie['password_hash'] == $res['sha_pass_hash']){
unset($res['password']);
$this->user = $res;
return true;
}else{
return false;
}
}else{
return false;
}
}
красивая дырень 
|
|
|