Файл: avtovhod.php
Строк: 19
<?php
include 'inc/mysql.php';
include 'inc/check.php';
include ("inc/gzip.php");
$pass = mysql_real_escape_string($_GET['password']);
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `account` WHERE `id`='".intval($_GET['id'])."' and `password`= '$pass' "),0)){
$acc=mysql_fetch_assoc(mysql_query("SELECT * FROM `account` WHERE `id`='".intval($_GET['id'])."' and `password`='$pass' "));
}else{
header ("Location: index.php?act=clear2");
exit;
}
if ($err){ foreach($err as $value){ echo "".$value."";
}
exit;
}else{
//if ($acc['id']==1 OR $acc['id']==2){
$_SESSION['id']=$acc['id'];
$_SESSION['login']=$acc['login'];
$_SESSION['password']=$acc['password'];
$_SESSION['auth']=1;
header ("Location: games.php?");
}
?>