Файл: index.php
Строк: 97
<?
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();
if (!$set['web'])
{
?>
<div class="title">
<center>
<a href="/online.php" title="онлайн" style="color:#cdcecf; text-decoration: none">
<font color="#fff" size="2">Онлайн </font>
<font color="#fff"><?=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""), 0)?></font>
</a>
<font color="#fff" size="2"> (</font>
<font color="#fff">+<?=mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > ".(time()-600)." AND `pereh` > '0'"), 0)?></font>
<font color="#fff" size="2"> гостей )</font>
</center>
</div>
<table class="index_link" cellspacing="0" cellpadding="0"><tr>
<?
if (isset($user))
{
?>
<td class='link'>
<img src="/style/themes/default/user.png" alt="" />
<?=user::nick($user['id'])?>
</td>
<td class='link'>
<img src="/style/themes/default/logout.png" alt="" />
<a href="exit.php"><font color="#ff0000">Выход</font></a>
</td>
<?
}
else
{
?>
<td class='link'>
<img src="/style/themes/default/vh.png" alt="" />
<a href="/aut.php">Вход</a>
</td>
<td class='link'>
<img src="/style/themes/default/reg.png" alt="" />
<a href="/reg.php">Регистрация</a>
</td>
<?
}
?></tr></table><?
if (user_access('adm_panel_show'))
{
?>
<div class="admin">
<a href="/plugins/admin/"><img src="/style/icons/adm.gif" alt="DS" /> Админ кабинет</a>
<?
include_once H.'plugins/admin/count.php';
?>
</div>
<?
}
// новости
include_once 'sys/inc/news_main.php';
// главное меню
include_once 'sys/inc/main_menu.php';
}
else
{
// главная web темы
include_once 'style/themes/' . $set['set_them'] . '/index.php';
}
include_once 'sys/inc/tfoot.php';
?>