Файл: colxoz.ru/system/f.php
Строк: 79
<?
list($msec, $sec) = explode( chr(32), microtime() );
$online = mysql_num_rows( mysql_query('SELECT * FROM `users` WHERE `online` > ''.( time() - 300).''') );
if($user)
{
?>
<div class='max-line'></div>
<div class='list'>
<li><a href='/user/' class='menu_link'><img src='/images/icon/user.png' alt='*'/> Герой</a></li>
<?php
if($clan) echo '<li><a href='/clan/' class="menu_link"><img src='/images/icon/clan.png' alt='*'/> Клан</a></li>';
?>
<li class='no_b'><a href='/' class='menu_link'><img src='/images/icon/arrow.png' alt=''/> Главная</a></li>
</div>
<div class='max-line'></div>
<div class='f'>
<span style='float: right;'><?=($user['save'] == 1 ? '<a href='/settings/'>Настройки</a>':'<a href='/save/'>Сохранить</a>')?></span><img src='/images/icon/user.png' alt=''/> <?=$user['login']?><br>
<div align='center'><img src='/images/icon/level.png' alt='*'/> <?=$user['level']?> | <img src='/images/icon/silver.png' alt='*'/> <?=n_f($user['s'])?> | <img src='/images/icon/gold.png' alt='*'/> <?=n_f($user['g'])?></div>
</div>
<div class='separator'></div>
<br/>
<div align='center'>
<?php
$chatmessages = 0;
$countchatmessages = mysql_num_rows(mysql_query('SELECT * FROM `chat` WHERE `clan` = '0' AND `to` = ''.$user['id'].'' AND `read` = '0''));
if($chat > 0) $chatmessages += $chat;
if($clan)
{
$countclanchatmessages = mysql_num_rows(mysql_query('SELECT * FROM `chat` WHERE `clan` = ''.$clan['id'].'' AND `to` = ''.$user['id'].'' AND `read` = '0''));
if($clanchat > 0) $chatmessages += $clanchat;
}
?>
<a href='/forum/sub/1/'>Новости</a> | <a href='/chat/'>Чат <?=($chatmessages > 0 ? '<font color='#30c030'>(+)</font>':'')?></a> | <a href='/forum/'>Форум</a> | <a href='/common/'>Общее</a></font>
<div class='separator'></div>
<small><font color='#909090'>Colxoz.Ru | <?=date('H:i:s')?> |<font color='#909090'> <a href='/online/'><font color='#909090'>В игре: <?=n_f($online)?> из <?=n_f(mysql_result(mysql_query('SELECT COUNT(*) FROM `users`'),0))?></a></font></small><br><small>Все права защищены. © 2014-2015</small>
<?php
if($user['access'] > 0) echo '<br/><a href='/adm/'>Админка</a>';
if($user['access'] > 0) echo '<br/><a href='/moder_chat.php'>Админ-чат</a>';
?>
</div>
<?php
}
else
{
?>
<br/>
<div align='center'>
<small><font color='#909090'><?=round((($sec+$msec)-$gtime),3)?> сек | <?=date('H:i:s')?> | В игре: <?=n_f($online)?></small><br><small>Все права защищены. © 2014-2015</font></small>
</div>
<?php
}
?>
<div align='center'>
</div>
</body></html>
<!-- titan's war
by Exdark 2014 -->
<?php
ob_end_flush();
?>