File size: 1.78Kb
<?
include_once 'sys/inc/start.php';
include_once 'sys/inc/compress.php';
include_once 'sys/inc/sess.php';
include_once 'sys/inc/home.php';
include_once 'sys/inc/settings.php';
include_once 'sys/inc/db_connect.php';
include_once 'sys/inc/ipua.php';
include_once 'sys/inc/fnc.php';
include_once 'sys/inc/user.php';
include_once 'sys/inc/icons.php'; // Иконки главного меню
include_once 'sys/inc/thead.php';
title();
err();
?>
<div class="online_menu">
<center>
<a href="/user/online.php" text-decoration: none">
На сайте:
<?=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""), 0)?>
</a> /
<a href="/user/visit.php">+<?=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` >'".$ftime."'"),0)?> чел.</a>
</center>
</div>
<?
if (isset($user))
{
echo "<div class='nav1' style='text-align: center;'><table><tr><td><img width='80px' src='/style/user/s.png'></td> <td><font size=2> Доброго времени суток. Вы авторизированны как - $user[nick]</font></td></tr></table></div>";
// главное меню
include_once 'sys/inc/main_menu.php';
} else {
echo "<div class='nav1' style='text-align: center;'><table><tr><td><img width='80px' src='/style/user/s.png'></td> <td><font size=2> Доброго времени суток. Вы вошли как - Гость</font></td></tr></table></div>";
echo "<div class='mess' style='text-align: center;padding:6px;'><img width='50px' src='/style/img/w128h1281385326539caution.png'> Доступ к меню сайта разрешён только авторизированным пользователям!</div>";
}
include_once 'sys/inc/tfoot.php';
?>