<?
//tdgsbtr
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();
include H.'/newyeartree/novgod.php';
/*вывод лидеров*/
echo"<div class='my'><center><img src='/style/icons/love.png' alt='' class=''/> <a href='/user/liders/'><font color=#8b4513><b>Лидеры Сайта</b></font></a></div>";
$k_lider = mysql_result(mysql_query("SELECT COUNT(*) FROM `liders` WHERE `time` > '$time'"
,0);
$liders = mysql_fetch_assoc(mysql_query("SELECT * FROM `liders` WHERE `time` > '$time' ORDER BY rand()LIMIT 1"
);
if ($k_lider > 0){
echo '<div class="nav1">';
$lider = get_user($liders['id_user']);
echo status($lider['id']);
echo group($lider['id']) , ' <a href="/info.php?id=' . $lider['id'] . '">' . $lider['nick'] . '</a> ';
echo medal($lider['id']) , online($lider['id']) , '<br />';
if ($liders['msg'])echo output_text($liders['msg']) . '<br />';
echo '</div>'; }
/*end*/
echo "<div class='nav2'><center>
";
echo "<img src='/style/icons/love.png' alt='*' /> VIP Person ";
echo "</div>";
include_once 'sys/inc/vip_users.php'; // vip пользователи
echo "<div class='my'>
";
if (isset($user)){
$chas=date("H",time());
if($chas<0){$chas=round($chas+24);}
if($chas>=23 ||$chas<=4){echo "<center><b><font color="#0000FF">Доброй ночи, ".user::nick($user['id'])." !</font></b></center>";}
if($chas>=5 && $chas<=10){echo "<center><b><font color="#990000">Доброе утро, ".user::nick($user['id'])." !</font></b></center>";}
if($chas>=11 && $chas<=17){echo "<center><b><font color="#CC6600">Добрый день, ".user::nick($user['id'])." !</font></b></center>";}
if($chas>=18 && $chas<=22){ echo "<center><b><font color="#009900">Приятного вечера, ".user::nick($user['id'])." !</center></b></right>";}
}
echo "</div>";
if (!$set['web'])
{
?>
<div class="title">
<center>
<a href="/online.php" title="онлайн" style="color:#cdcecf; text-decoration: none">
<font color="#8B1A1A" size="2">Онлайн </font>
<font color="#8B1A1A"><?=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""
, 0)?></font>
</a>
<font color="#8B1A1A" size="2"> (</font>
<font color="#8B1A1A">+<?=mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > ".(time()-600)." AND `pereh` > '0'"
, 0)?></font>
<font color="#8B1A1A" size="2"> гостей )</font>
</center>
</div>
<?
echo "<div class='nav1'>
";
if (isset($user)){
echo "<div class='bzx4'>
<img src='/style/icons/love.png' alt='*'> <a href='/info.php?id=$user[id]' class = 'open' color = '#fff;'>Моя страница</a> <a href='exit.php' class = 'open'>Выход</a></div>";
}else{
echo "<div class='uts4'>Добро пожаловать, Гость!</div><div class='bzx4' ><img src='/style/icons/userz.png' alt='*'> <a href='aut.php' class = 'open'>Вход</a> <a href='/reg.php' class = 'open'>Регистрация</a></div>";
}
echo "</div>";
//include_once H.'sys/inc/main_notes.php';
include_once 'sys/inc/news_main.php'; // новости
include_once 'sys/inc/forum_nw.php'; // 3 темы форума для wap темы
include_once 'sys/inc/main_menu.php'; // главное меню
?>
<form action="/plugins/search/?search" method="post" class="mess">
<input type="text" name="search" style="width: 70%" value="" placeholder="Люди, Форум, Файлы, Дневники.."/>
<input type="submit" style="width: auto" value="Искать"/><br />
</form>
<?
}else{
include_once 'style/themes/'.$set['set_them'].'/index.php'; // главная web темы
?>
<form action="/plugins/search/?search" method="post" class="mess">
<input type="text" name="search" style="width: 70%" value="" placeholder="Люди, Форум, Файлы, Дневники.."/>
<input type="submit" style="width: auto" value="Искать"/><br />
</form>
<?
}
include_once 'sys/inc/tfoot.php';
?>