Maksamka,
смотри нормальный файл.. какого оно х
<?
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'])
{
if (isset($user)){
echo "<div class='nav1'><div align='right'><img src='/style/icons/icon_stranica.gif' alt='S' />
<a href='/info.php?id=$user[id]'>$user[nick]</a> | <a href='exit.php'><font color='#ff0000'>Выход</font></a></div></div>";
}else{
echo '<table style="width:100%" cellspacing="0" cellpadding="0">
<tr>
<td class="auts" style="vertical-align:top;width:50% ;">
<a href="/aut.php" title="Вход">
<center><img src="/style/icons/login.png" alt="Вход"/><span class="text1">Вход</span></center></a>
</td>
<td class="auts" style="vertical-align:top;width:50%">
<a href="/reg.php" title="Регистрация">
<center><img src="/style/icons/reg.png" alt="Регистрация"/>
<span class="text1">Регистрация</span></center></a>
</td>
</tr>
</table>';
}
echo "<div class='title'>";
echo "<center><a href='/online.php' title='онлайн' style='color:#cdcecf; text-decoration:none'><font color='#fee300'>Онлайн </font><font color='#ffffff'>".mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > ".(time()-600).""
, 0)."</font></a>";
echo "<font color='#fee300'> (</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>";
echo "</div>";
?><div class="nav1" style="text-align: center; overflow: hidden; height: 48px;" id="index-foto"><?
$q = query("SELECT `gallery_foto`.`id`, `gallery_foto`.`id_user`, `gallery_foto`.`id_gallery`, `user`.`nick` FROM `gallery_foto` INNER JOIN `user` ON `gallery_foto`.`id_user` = `user`.`id` AND `user`.`id` != '" . (isset($user) ? $user['id'] : 0) . "' WHERE `user`.`date_last` > " . (time() - 600) . " AND `gallery_foto`.`avatar` = '1' ORDER BY `user`.`date_last` DESC LIMIT 10"
;
while ($foto = mysql_fetch_assoc($q)) {
echo "<a href='/info.php?id=$foto[id_user]'><img class='avatar' src='/foto/foto50/$foto[id].jpg' alt='Photo Screen' /></a> ";
}
?></div><?
$q = mysql_query("select * from `user` ORDER BY `id` desc LIMIT 3;"
;
echo "<div class='title' ><img src='/style/icons/love.png' alt='*' /><b>Новички</b><img src='/style/icons/love.png' alt='*' /></div>";
echo "<table class='nav1' style='width:100%' cellspacing='1' cellpadding='1'><tr>";
while ($post = mysql_fetch_array($q)){
echo "<td style='width:10%'><center>";
echo ''.user::nick($post['id']).'';
echo online($post['id']).' <br />';
echo "</a></center></td>";
}
echo "</tr></table>";
//==================================================================///
?>
<style>
vip {
position: absolute;
bottom: 15px;
}
</style>
<?
$k_p = mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `status_vip`"
, 0);
echo "<center><div class='title'><img src='/vip/img/vip6.gif' alt='*' /> V.I.P. Персоны ($k_p) <img src='/vip/img/vip6.gif' alt='*' /></div></center>";
$q_status_vip = mysql_query("SELECT * FROM `user` WHERE `time_status_vip` > '".time()."' ORDER BY rand() DESC LIMIT 5"
;
echo "<div class='nav1'><center>";
while ($status_vip = mysql_fetch_array($q_status_vip))
{
echo " <a href='/info.php?id=$status_vip[id]'>";
echo status($status_vip['id']);
echo "</a>";
if ($status_vip['time_status_vip']>=1);
}
echo "</center></div>";
//================================================================//
$sexwars = mysql_fetch_assoc(mysql_query("SELECT * FROM `sexwars` WHERE `active` = '1' LIMIT 1"
);
if (isset($sexwars['id'])) {
?>
<div class="nav1" style="background-color: #ffedc8;">
<img src="/plugins/sexwar/images/mf-icon.png" /> <a href="/plugins/sexwar/wars.php?id=<?= $sexwars['id']?>">Война Полов</a>
<table style="width: 100%;">
<tr>
<td style="width: 50px;">
<a href="/plugins/sexwar/"><img src="/plugins/sexwar/images/icon.png" /></a>
</td>
<td style="padding: 2px;">
<div style="padding: 2px;">
Девушки <?= (100 - $sexwars['male'])?>%
</div>
<div style="position: relative; width: 100%; height: 4px;">
<div style="position: absolute; width: <?= (100-$sexwars['male'])?>%; height: 4px; background-color: #ffa8f4;"></div>
</div>
<div style="padding: 2px;">
Парни <?= (100 - $sexwars['female'])?>%
</div>
<div style="position: relative; width: 100%; height: 4px;">
<div style="position: absolute; width: <?= (100-$sexwars['female'])?>%; height: 4px; background-color: #96ed94;"></div>
</div>
</td>
</tr>
</table>
</div>
<?
}
include_once 'sys/inc/news_main.php'; // новости
include_once 'sys/inc/cenv.php'; // В центре внимания
include_once 'sys/inc/forum_new.php'; // вывод форума
include_once 'sys/inc/main_menu.php'; // новости
}else{
include_once 'style/themes/'.$set['set_them'].'/index.php'; // главная web темы
}
include_once 'sys/inc/tfoot.php';
?>