Файл: public_html/user/login.php
Строк: 22
<?php
require '../system/sid.php';
require '../system/config.php';
include '../system/head.php';
if (!empty($_SESSION['us']) && !empty($_SESSION['ps']))
{
header('Location: /user/login.php');
die();
}
if (isset($_GET['enter']))
{
include '../system/user.php';
whorm(0, 'aut');
if (!empty($_SESSION['us']) && !empty($_SESSION['ps'])) header('Location: /user/profile.php');
}
echo $div_title . 'Вход' . $div_end;
echo '<form method="POST" action="/user/login.php?enter">
<label>ID или Ник:</label>
<br/>
<input type="text" name="us"/>
<br/>
<label>Пароль: (<a href="retpass.php?">Забыли пароль?</a>)</label>
<br/>
<input type="password" name="ps"/>
<br/>
<input type="submit" name="enter" value="Войти"/>
</form>';
echo '<div class="menu2"><a class="ssyl2" href="/user/registration.php"> Регистрация</a></div>';
include '../system/foot.php';
?>