Файл: inc/ent.php
Строк: 45
<?
if(isset($_POST['img_code']) and $_SESSION['codes'] == $_POST['img_code']) $_SESSION['is_auth'] = 1;
if(!empty($_SESSION['codes']) and empty($_SESSION['is_auth']))
{
if(preg_match("#panel#",$_SERVER['REQUEST_URI']))
$_GET['mode'] = 'enter';
else
{
header('location: panel.php?mode=enter');
exit;
}
}
If (!defined("anybody")){
if (!isset($_USER)){
echo '<center><form action="" method="get"><br/>
Логин:<br/>
<input type="text" name="login" class="do_button" maxlength="'.lenght_login.'" value=""/><br/>
Пароль:<br/>
<input type="text" name="password" class="do_button" maxlength="'.lenght_password.'" value=""/><br/>
<input type="submit" class="button" value="Вход" />
</center>';
if ($_SERVER['PHP_SELF']=="/odm/admin.php" | $_SERVER['PHP_SELF']=="/odm/moder.php")
{
include '../inc/foot.php';}
else {
include 'inc/foot.php';}
}
}
/*
if(empty($_SESSION['time']))
$_SESSION['time'] = time() + 5400;
if($_SESSION['time'] < time())
//session_destroy();
*/
/*
If ($_USER['login']!=='razer' && $_USER['login']!=='razer62' && $_USER['login']!=='tecktonik' && $_USER['login']!=='ilan' && $_USER['login']!=='xaker' && $_USER['login']!=='xakep' && $_USER['login']!=='electro')
{
if(isset($_POST['codes']) || !$_SESSION['vv_code'])
{
$_SESSION['vv_code']=$_POST['codes'];
}
if (($_SESSION['vv_code']!=$_SESSION['code']) || !$_SESSION['vv_code'])
{
header('Location: panel.php?mode=enter');
}
}
*/
?>