Файл: wpanel/enter.php
Строк: 30
<?php
require_once ('../inc/bd.php');
require_once ('../inc/fun.php');
$title = 'Вход в ukdpe';
include_once ('../inc/v.php');
####
$loginauto = html($_GET['l']);
$passauto = html($_GET['p']);
####
$login = html($_POST['log']);
$pass = html(md5($_POST['passwd']));
####
if (empty($login) || empty($pass))
{
####
echo '<div class="menu">';
echo '<form action="" method="POST">
Лoгин:<br/>
<input type="text" name="log" value="'.$loginauto.'"><br/>
Пapoль:<br/>
<input type="password" name="passwd" value="'.$passauto.'"><br/>
<input type="submit" value="Boйти">
</form></div>';
####
}
####
else
{
if ($login !== $adminlogin or $pass !== $setup['password']) {echo '<div class="err">Ошибка авторизации!</div>';}
else
{
$_SESSION['admin'] = $login;
$_SESSION['pwd'] = $pass;
go('panel.php?');
}
}
include_once ('../inc/n.php');
?>