Файл: aut.php
Строк: 101
<?php
require_once 'sys/inc/start.php';
require_once 'sys/inc/compress.php';
require_once 'sys/inc/sess.php';
require_once 'sys/inc/settings.php';
require_once 'sys/inc/db_connect.php';
require_once 'sys/inc/ipua.php';
require_once 'sys/inc/fnc.php';
$show_all = true;
require_once 'sys/inc/user.php';
user::only_unreg();
$set['title'] = 'Авторизация';
require_once 'sys/inc/thead.php';
title();
if (isset($_GET['pass']) && $_GET['pass'] = 'ok') {
msg('Пароль отправлен вам на E-mail');
}
if ($set['guest_select'] == '1') {
msg("Авторизуйтесь пожалуйста");
echo "<div class = 'err'>Технические работы</div>";
}
if ((!isset($_SESSION['refer']) || $_SESSION['refer'] == NULL) && isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != NULL && !preg_match('#mail.php#', $_SERVER['HTTP_REFERER'])) {
$_SESSION['refer'] = str_replace('&', '&', preg_replace('#^http://[^/]*/#', '/', $_SERVER['HTTP_REFERER']));
}
//echo "<font color='razd'><b>Войти через:</b></font>";
//echo '<script src="//ulogin.ru/js/ulogin.js"></script><div id="uLogin" data-ulogin="display=panel;fields=first_name,last_name,city,sex,photo,photo_big;providers=vkontakte,odnoklassniki,mailru,facebook,yandex;hidden=;redirect_uri=http%3A%2F%2F'.$_SERVER['HTTP_HOST'].'/loginAPI.php"></div>';
echo "<form method = 'post' class = 'razd' action = '/login.php'>";
echo "Введите Ваши данные авторизации<br />";
echo "<div class = 'inputs'>";
echo "<span class = 'add-on'>";
echo "<i data-placement = 'left' data-original-title = 'Логин'><img src = '/style/img/iUser.png' /></i>";
echo "<label class = 'element-invisible' for = 'mod-login-username'>Логин</label>";
echo "</span>";
echo "<input tabindex = '1' title = 'Введите логин' id = 'keyboardInputInitiator0' name = 'nick' aria-required = 'true' aria-invalid = 'false' required = 'required' maxlength = '32' class = 'keyboardInput invalid input-medium' type = 'login' />";
echo "</div><br /><div class = 'inputs'><span class = 'add-on'>";
echo "<i title = '' data-placement = 'left' data-original-title = 'Пароль'><img src = '/style/img/iLock.png' /></i>";
echo "<label class = 'element-invisible' for = 'mod-login-username'>Пароль</label>";
echo "</span>";
echo "<input tabindex = '1' title = 'Введите пароль' name = 'pass' maxlength = '32' aria-required = 'true' aria-invalid = 'false' required = 'required' class = 'keyboardInput invalid input-medium' type = 'password' />";
echo "</div><br />";
echo "<label><input type = 'checkbox' name = 'aut_save' value='1' />Не выходить из системы<br /></label>n";
echo "<button class = 'action'>";
echo "<div class = 'label'>Войти</div><br />";
echo "</button></form>";
echo "<div class = 'razd'>";
echo "<a href = '/reg.php' class = 'button left'><span class = 'icon icon3' /><span class = 'label'>Создать профиль</span></a>";
echo "<a href = '/pass.php' class = 'button right'><span class = 'label'>Забыли пароль?</span></a>";
echo "</div>";
require_once 'sys/inc/tfoot.php';