Файл: web2/aut.php
Строк: 69
<?
if (isset($user))
echo "<div class='user_nick'>$user[nick]</div>";
else
echo "<div class='user_nick'>Гость</div>";
?>
<div class='user_menu'>
<?
if (isset($user))
{
if (!isset($user) && !isset($_GET['id'])){header("Location: /index.php?".SID);}
if (isset($user))$ank['id']=$user['id'];
echo "<div class='avatar'>";
avatar($ank['id']);
echo "</div>";
include_once H.'sys/inc/umenu.php';
echo "<br />n";
echo "
<div id='inf'>
<span class="ank_n">Баллы:</span> <span class="ank_d">$user[balls]</span><br />n";
echo "<span class="ank_n">Рейтинг:</span> <span class="ank_d">$user[rating]</span><br />n";
if ($user['level']>0)
{
if ($user['ip']!=0)echo "<span class="ank_n">IP:</span> <span class="ank_d">".long2ip($user['ip'])."</span><br />n";
if ($user['ua']!=NULL)echo "<span class="ank_n">UA:</span> <span class="ank_d">$user[ua]</span><br />n";
if (opsos($user['ip']))echo "<span class="ank_n">Пров:</span> <span class="ank_d">".opsos($user['ip'])."</span></div><br />";
}
}
else
{
echo "
<div class='form'>
<form method='post' action='/'>n";
echo "Логин:<br /><input type='text' name='nick' maxlength='32' /><br />n";
echo "Пароль (<a href='/pass.php'>Забыли</a>):<br /><input type='password' name='pass' maxlength='32' /><br />n";
echo "<input type='submit' value='Войти' />n";
echo "</form>";
echo "<a href='/reg.php'><b>Регистрация</b></a><br /></div>";
}
?>
</div>