<? //by rine(Andrey Arapov) & BEPDuKT(Aleksey Ivanov) site: dizkod.ru
include_once('config/config.php');
$user=new Users();
$aut=Base::filter($_GET[aut]);
if(!empty($aut))
{
$login=Base::filter($_GET['login']);
$password=Base::filter($_GET['pass']);
}else{
if($_COOKIE[user] == 1)
{
$login=Base::filter($_COOKIE['login']);
$password=Base::filter($_COOKIE['password']);
}else{
$login=Base::filter($_POST['login']);
$password=Base::filter($_POST['password']);
}
}
$set=$user->check($login,$password);
$user->set($set,$login,$password);
?>