Файл: titwar.ru/system/f.php
Строк: 92
<?
list($msec, $sec) = explode( chr(32), microtime() );
$online = mysql_num_rows( mysql_query('SELECT * FROM `users` WHERE `online` > ''.( time() - (60 * 5) ).''') );
if($user)
{
?>
<div class='max-line'></div>
<div class='list'>
<li><a href='/user/' class='menu_link'><img src='/images/icon/user.png' alt='*'/> My character</a></li>
<li><a href='/quest.php' class='menu_link'><img src='/images/icon/quest.png' alt='*'/> Quests </a></li>
<?php
if($clan) echo '<li><a href='/clan/' class="menu_link"><img src='/images/icon/clan.png' alt='*'/> My clan</a></li>';
?>
<li class='no_b'><a href='/' class='menu_link'><img src='/images/icon/arrow.png' alt=''/> Main page</a></li>
</div>
<div class='max-line'></div>
<div class='f'></font>
<span style='float: right;'><?=($user['save'] == 1 ? '<a href='/settings/'>Settings</a>':'<a href='/save/'>Save</a>')?></span><img src='/images/icon/user.png' alt=''/> <?=$user['login']?></b>
<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 align='center'><br>
<?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='/chat/'>Chat <?=($chatmessages > 0 ? '<font color='#30c030'>(+)</font>':'')?></a> | <a href='/forum/'>Forum</a> | <a href='/my/refferal/'>Referals</a><br><br>
<a href='/buy'><font color='#d67bfc'>Discount!</font></a><br>
<div class='separator'></div>
<small><font color='#909090'><?=round((($sec+$msec)-$gtime),3)?> sec | <?=date('H:i:s')?> |</font> <a href='/online/'>Online: <?=n_f($online)?></a></font></small><br/>
<?php
if($user['access'] == 1) echo '<br/><a href='/mod_panel/'>Admin Mode</a>';
?>
<?php
if($user['access'] == 2) echo '<br/><a href='/adm/'>Admin Mode</a>';
?>
</div><br/>
<?php
}
else
{
?>
<br/>
<div align='center'>
<small><font color='#909090'><?=round((($sec+$msec)-$gtime),3)?> sec | <?=date('H:i:s')?> | Online: <?=n_f($online)?></font></small>
</div><br/>
<?php
}
?>
</body></html>
<!-- titan's war
by Exdark 2014 -->
<?php
ob_end_flush();
?>