Вход Регистрация
Файл: aut.php
Строк: 20
<?php

require 'system/sid.php';
require 
'system/config.php';
include 
'system/head.php';

// Если попытка повторной авторизиции
if (!empty($_SESSION['us']) && !empty($_SESSION['ps']))
{
    
header('Location: /?');
    die();
}

// Проверка авторизации
if (isset($_GET['enter']))
{
    include 
'system/user.php';
    
whorm(0'aut');
    if (!empty(
$_SESSION['us']) && !empty($_SESSION['ps'])) header('Location: index.php?good');
}

echo 
$div_title 'Вход' $div_end;

echo 
'<form method="POST" action="aut.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>
      Нет аккаунта? Пройди <a href="reg.php?">регистрацию</a>.
      ' 
$block '
      <a href="index.php?">Назад</a>'
;

include 
'system/foot.php';
?>
Онлайн: 1
Реклама