Файл: aut.php
Строк: 77
<?
require 'sys/inc/start.php';
require 'sys/inc/compress.php';
require 'sys/inc/sess.php';
require 'sys/inc/home.php';
require 'sys/inc/settings.php';
require 'sys/inc/db_connect.php';
require 'sys/inc/ipua.php';
require 'sys/inc/fnc.php';
$show_all=true; // показ для всех
require 'sys/inc/user.php';
only_unreg();
require 'sys/inc/thead.php';
echo "<div style='position:relative;'>";
$l=mysql_query("SELECT * FROM `logo` WHERE `active` = '1' LIMIT 1");
while($logo=mysql_fetch_array($l)){
echo "<center><img src='/system_panel/logo/icon/$logo[id].png' alt='' style='height:$logo[height]px;width:$logo[width]px;'/></center>";
}
$p=mysql_query("SELECT * FROM `patch` WHERE `active` = '1' LIMIT 1");
while($patch=mysql_fetch_array($p)){
echo "<img src='/system_panel/patch/icon/$patch[id].png' alt='".htmlspecialchars($patch['name'])."' style='position:absolute;width:40px;$patch[position]:7px;top:5px'/>";
}
echo "</div>";
$o="".mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""), 0)."";
$g="".mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > ".(time()-600)." AND `pereh` > '0'"), 0)."";
$v=$o+$g;
echo "<div class='title'><center>Сейчас на сайте <a href='/online.php'>($v человек)</a></center></div>";
if (isset($_GET['pass']) && $_GET['pass']='ok')
msg('Пароль отправлен вам на E-mail');
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 "<center>";
include_once 'sys/inc/snami.php';
echo "</center>";
echo "<div class='forum2'>Krasavo.RU <a href='/info/KrasavO.Ru.apk'><b>Приложение</b> <font color='green'>for Android</font></a></div>";
echo "<form method='post' action='/login.php'><center>
Логин (Ник):<br /><input type='text' name='nick' maxlength='32' style='width:95%;background:url(/style/user.png) no-repeat right;'/><br />
Пароль:<br /><input type='password' name='pass' maxlength='32' style='width:95%;background:url(/style/key.png) no-repeat right;'/><br />
<label><input type='checkbox' name='aut_save' value='1' /> Запомнить меня</label><br />
<input type='submit' value='Войти на Krasavo.RU' style='width:95%'/>
</center></form>";
echo "<table style='width:100%' cellspacing='0' cellpadding='0'><tbody><tr>";
echo "<td style='vertical-align:top;border:1px solid silver;background:whitesmoke;width:20%'><a style='padding:4px;display:block;text-align:center;'href='pass.php'>Забыли пароль?</a></td>";
echo "<td style='vertical-align:top;border:1px solid silver;background:whitesmoke;width:20%'><a style='padding:4px;display:block;text-align:center;'href='reg.php'>Регистрация</a></td></tbody></tr></table>";
require 'sys/inc/tfoot.php';
?>