Вход Регистрация
Файл: anifun.ru/files/user.php
Строк: 13
<?
############################################
## By Holopsicon          
## https://psgame.net
############################################
##Модуль юзера.               
############################################
      
$user_id html($_COOKIE['user_id']);
        
$password html($_COOKIE['pas']);
        
$ac DB::$dbs->queryFetch("SELECT `id`,`name`,`pirat`,`password`,`lost_password`,`salt`,`pol`,`coin`,`time`,`game_time`,`email`,`ip`,`data_reg`,`script`,`server`,`is_mobile` FROM `account` WHERE `id` = ? and `password` = ? LIMIT 1", array($user_id,$password));
if (empty(
$ac)) {
#######если не верно удаляем куки
session_destroy();
SetCookie("user_id","");
SetCookie("pas","");
header ("Location: /login/login/");
exit;}

$USER_ID=$ac['id'];
$USER_NAME=$ac['name'];
$pirat=$ac['pirat'];
$USER_PASSWORD=$ac['password'];
$LOST_PASSWORD=$ac['lost_password'];
$USER_SALT=$ac['salt'];
$POL=$ac['pol'];
$COIN=$ac['coin'];
$TIME=$ac['time'];
$GAME_TIME=$ac['game_time'];
$EMAIL=$ac['email'];
$USER_IP=$ac['ip'];
$BROW $ac['browser'];
$DATA_REG=$ac['data_reg'];
$SCRIPTS=$ac['script'];
$US_SERVER=$ac['server'];
#$OAUTH=$ac['oauth'];
$IS_MOBILE=$ac['is_mobile'];

?>
Онлайн: 1
Реклама