Файл: selemege.tk/index.php
Строк: 95
<?
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();
$qqqq=mysql_fetch_array(mysql_query("SELECT * FROM `truncate`"));
if (isset($user)&& $qqqq['time']<=time()){
if (isset($user)&& $qqqq['mail']==1)
mysql_query("TRUNCATE TABLE `mail`");
if (isset($user)&& $qqqq['jurnal']==1)
mysql_query("TRUNCATE TABLE `jurnal`");
if (isset($user)&& $qqqq['lenta']==1)
mysql_query("TRUNCATE TABLE `lenta`");
$timer=$time+=$qqqq[time_dat]*60*60*24*7;
mysql_query("UPDATE `truncate` SET `time` = '$timer' LIMIT 1");
}
include 'sys/inc/inc.ruler.php';
if (!$set['web'])
{
?>
<div class="title">
<center>
<a href="/online.php" title="онлайн" style="color:#cdcecf; text-decoration: none">
<font color="#fee300" size="2">Онлайн </font>
<font color="#ffffff"><?=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""), 0)?></font>
</a>
<font color="#fee300" size="2"> (</font>
<font color="#ffffff">+<?=mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > ".(time()-600)." AND `pereh` > '0'"), 0)?></font>
<font color="#fee300" size="2"> гостей )</font>
</center>
</div>
<div class='main_menu'>
<?
if (isset($user))
{
?>
<div align="right">
<img src="/style/icons/icon_stranica.gif" alt="DS" />
<?=user::nick($user['id'])?> | <a href="exit.php"><font color="#ff0000">Выход</font></a>
</div>
<?
}
else
{
?>
<div align="right">
<a href="/aut.php">Вход</a> | <a href="/reg.php">Регистрация</a>
</div>
<?
}
?></div><?
// новости
include_once 'sys/inc/news_main.php';
// главное меню
include_once 'sys/inc/main_menu.php';
include_once 'sys/inc/forum_nw.php';
}
else
{
// главная web темы
include_once 'style/themes/' . $set['set_them'] . '/index.php';
}
include_once 'sys/inc/tfoot.php';
?>