Файл: index.php
Строк: 208
<?
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/thead.php';
echo "<div style='position:relative;'>";
$l=mysql_query("SELECT * FROM `logo` WHERE `active` = '1' LIMIT 1");
while($logo=mysql_fetch_array($l)){
echo "<center><img src='/system_panel/logo/icon/$logo[id].png' alt='' style='height:$logo[height]px;width:$logo[width]px;'/></center>";
}
$p=mysql_query("SELECT * FROM `patch` WHERE `active` = '1' LIMIT 1");
while($patch=mysql_fetch_array($p)){
echo "<img src='/system_panel/patch/icon/$patch[id].png' alt='".htmlspecialchars($patch['name'])."' style='position:absolute;width:40px;$patch[position]:7px;top:5px'/>";
}
echo "</div>";
$b="<td class='fblock'>";
$d="<div class='gmenu'>";
$g="".mysql_result(mysql_query("SELECT COUNT(*) FROM `guests` WHERE `date_last` > ".(time()-600)." AND `pereh` > '0'"), 0)."";
$u="".mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` >".(time()-1200).""),0)."";
$on=$g+$u;
echo "<div class='title'><table>$b <a href='/users'>Сейчас на ".$_SERVER['HTTP_HOST']." $on чел.</a></td></table></div>";
if (isset($user))
{
title();
} else {
echo "<div class='gmenu'>";
echo "<table style='width:100%' cellspacing='0' cellpadding='0'><tbody><tr>";
echo "<td class='webpanel'><a href='aut.php'><img src='/style/login.png' alt=''> <b>Вход</b></a></td>";
echo "<td class='webpanel'><a href='reg.php'><img src='/style/lock.png' alt=''> <b>Регистрация</b></a></td></tr></tbody></table></div>";
}
if ($user['index4']!=0 || !isset($user)){
include_once 'sys/inc/inc.ruler.php';
}
include 'sys/inc/advice.php';
echo "<a href='/info/'>$d<img src='/style/ii/dnev.png'> Путеводитель по сайту</div></a>";
echo "</div></a>";
echo "<a href='/mods/dating/'>$d <img src='/style/ii/zn.png'> Знакомства</a> <span class='cnt'>[";
@include_once 'mods/dating/count.php';
echo "]</span></div></a>";
echo "<a href='/minichat/'>$d <img src='/style/ii/chat.png'> Мини-чат [";
@include 'minichat/count.php';
echo "]</div></a>";
include_once 'sys/inc/minichat_new_post.php';
echo "<a href='/mods/contests/'>$d<img src='/style/ii/albom.png'> Конкурсы krasavo.ru [";
@include H.'mods/contests/count.php';
echo "]</div> </a>n";
echo "<a href='/weddings/'>$d<img src='/style/ii/zags.png'> Свадьбы </div></a>";
echo "<a href='/photo_battle/'>$d<img src='/style/ii/duel.png'> Фото баттлы [";
@include H.'photo_battle/count.php';
echo "]</div> </a>n";
echo "<a href='/mods/wealth'>$d<img src='/style/ii/doska.png'> Топ 10 искателей </div></a>";
echo "<a href='/forums/'>$d <img src='/style/ii/forum.png'> Форум [";
@include 'forums/count.php';
echo "]</div></a>";
include_once 'sys/inc/forums_new_thems.php';
echo "<a href='/besedka/'>$d <img src='/style/ii/bes.png'> Беседка [";
@include 'besedka/count.php';
echo "]</div></a>";
include_once 'sys/inc/besed_new_post.php';
echo "<a href='/jokes/'>$d<img src='/style/ii/anek.png'> Анекдоты <span class='cnt'>[";
@include H.'jokes/count.php';
echo "]</span></div></a>";
echo "<a href='/otvet'>$d<img src='/style/ii/otv.png'> Ответы [";
@include_once 'otvet/count.php';
echo "]</div></a>";
include_once 'sys/inc/otvet_new_vopros.php';
echo "<a href='/mods/gangs'>$d<img src='/style/ii/klan.png'> Банды <span class='cnt'>[";
@include H.'mods/gangs/count.php';
echo "]</span></div></a>n";
echo "<a href='/notice/'>$d<img src='/style/ii/dnev.png'> Люди пишут <span class='cnt'>[";
@include H.'notice/count.php';
echo "]</span></div> </a>n";
echo "<a href='/status/'>$d<img src='/style/ii/status.png'> Статусы <span class='cnt'>[";
@include H.'status/count.php';
echo "]</span></div></a>";
echo "<a href='/foto/'>$d<img src='/style/ii/konk.png'> Фото галерея <span class='cnt'>[";
@include H.'foto/count.php';
echo "]</span></div> </a>n";
echo "<a href='/mp3/'>$d<img src='/style/ii/muzlo.png'> Поиск музыки <span class='cnt'>[7мл. ~]</span></div></a>";
echo "<a href='/shared_zone/'>$d<img src='/style/ii/obmen.png'> Зона обмена <span class='cnt'>[";
@include H.'shared_zone/count.php';
echo "]</span></div></a>n";
echo "<a href='/group/'>$d<img src='/style/ii/klan.png'> Группы <span class='cnt'>[";
@include H.'group/count.php';
echo "]</span></div> </a>n";
echo "<a href='/garem/'>$d<img src='/style/ii/top10.png'> Рейтинги гаремов <span class='cnt'> [";
@include H.'garem/count.php';
echo "] </span></div></a>";
echo "<a href='/sivor'>$d<img src='/style/ii/sivor.png'> Сыворотка правды </div> </a>";
echo "<a href='/angrm/'>$d<img src='/style/star.png'> Анаграмма <span class='cnt'> [";
@include H.'angrm/count.php';
echo "] </span></div></a>";
echo "<a href='/games/pianica/'>$d<img src='/style/star.png'> Пьяница </div></a>";
echo "<a href='/mods/fund/'>$d<img src='/style/ii/fond.png'> Фонд ".$_SERVER['HTTP_HOST']."</div></a>";
if (isset($user))echo "<a href='/mods/ticket'>$d<img src='/style/ii/my_sait.png'> Тех. Поддержка</div></a>";
rekl(3);
echo "<div class='title'><table>$b<a href='/pages/reklama.php'>Реклама</a></td>$b<a href='/pravila/'>Правила</a></td></table></div>";
include 'top.php';
echo "</body></html>";
?>