Файл: system/f.php
Строк: 104
<?
list($msec, $sec) = explode( chr(32), microtime() );
$online = mysql_num_rows( mysql_query('SELECT * FROM `users` WHERE `online` > ''.( time() - (600* 300) ).''') );
if($user)
{
?>
<div class="separ3"></div><a href="/user/" class="menu_link"><img src='/xaos/style2/<?=$user['r']?>.png' alt='' style='padding:1px'/> Герой</a>
<?php
if($clan) echo '<a href='/clan/' class="menu_link"><img src='http://213.239.195.28/xaos/16x16/tower.png' alt='' style='padding:1px'/> '.$clan['name'].'</a>';
?>
<a href="/" class="menu_link"><img src="http://213.239.195.28/xaos/16x16/arrow_undo.png" alt="" style="padding:1px"/> На главную</a>
<div class="separbott"></div><div class="butt_bott"><img src="http://213.239.195.28/xaos/16x16/sword.png" alt="" style="width:16px"/> <?=$user['level']?> ур.
<?
?>
<img src="http://213.239.195.28/xaos/icons/exp2.png" alt="" style="width:16px"/> <?=numi($user['exp'])?> / <?=numi($exp)?> опыт
<?
?>
<img src="http://213.239.195.28/xaos/16x16/purse.png" alt=""/> <?=numi($user['money'])?> монет <img src="http://213.239.195.28/xaos/16x16/diamond.png" alt=""/> <?=numi($user['k'])?> кристаллов <img src="http://213.239.195.28/xaos/style2/money.png" alt=""/> <?=numi($user['gold'])?> золотых</div></div>
<?
if($user['save'] < 1) { echo "<center><a href='/save/'><font color='#999111'>Сохранить героя +10 золота</font></a></center>";}
?>
<div style="text-align:center;padding:4px;color:#a5a5a5;padding-top:12px;font-size:16px">
<a href='/forum/sub/1/' style='font-size:16px;color:khaki'>Новости</a> | <a href='/chat/' style='font-size:16px;color:khaki'>Чат <?=($chatmessages > 0 ? '+':'')?></a> | <a href='/forum/' style="font-size:16px;color:khaki">Форум+</a> |<a href="/" style="color:skyblue;font-size:16px"> <? if($user['action'] == 0) { echo "Акция";}?></a>
<div style="text-align:center;padding:4px;color:#a5a5a5;padding-top:10px;font-size:14px"><div style="color:violet;font-size:10px">
<? if($user['dexp'] == 0) { ?>
<?=($dexp ? 'Акция Тройной опыт ещё '._times($dexp['time'] - time()):'')?>
<?}?>
</div>
<div style="padding:4px"></div><div style="font-size:12px"><?=round((($sec+$msec)-$gtime),1)?> сек., <?=date('H:i:s')?>, <a href="/online/" style="font-size:12px;color:khaki">Онлайн</a> <span style="color:#a5a5a5"> <?=$online?> </span></div>
<div style="font-size:12px"><a href="" style="font-size:12px;color:#a5a5a5">Соглашение</a> | <a href="" style="font-size:12px;color:#a5a5a5">Правила</a> | <a href="" style="font-size:12px;color:#a5a5a5">Справка</a></div><div style="font-size:12px"><a href="http://evigames.ru" style="font-size:12px;color:#a5a5a5">EVIGAMES</a> © 2014, 18+</div><a href="" style="font-size:14px;color:#a5a5a5">выход</a><div style="padding-top:12px"><a href="http://vk.com/xaosgame"><img src="http://xaos.mobi/soc_vk1.png" alt="" style="width:24px;height:24px;border:1px solid #131313;border-radius:4px"/></a> <a href="http://ok.ru/group/56962537685036"><img src="http://xaos.mobi/soc_ok1.png" alt="" style="width:24px;height:24px;border:1px solid #131313;border-radius:4px"/></a></div></div>
</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;
}
?>
<?php
if($user['access'] > 0) echo '<a href='/adm/'>Панель управления</a>';
?>
</div><br/>
<?php
}
else
{
?>
<div align='center'>
<div class="separbott"></div><div class="butt_bott"><div style="text-align:center">Сейчас в бою <?=$online?> героя!</div></div>
<div style="color:#a5a5a5">
<div style="font-size:12px"><?=round((($sec+$msec)-$gtime),3)?> сек., <?=date('H:i:s')?>, <div style="font-size:12px"><a href="http://evigames.ru" style="font-size:12px;color:#a5a5a5">EVIGAMES</a> © 2014, 18+</div><div style="padding-top:12px">
<a href="http://vk.com/xaosgame"><img src="http://xaos.mobi/soc_vk1.png" alt="" style="width:24px;height:24px;border:1px solid #131313;border-radius:4px"/></a> <a href="http://ok.ru/group/56962537685036"><img src="http://xaos.mobi/soc_ok1.png" alt="" style="width:24px;height:24px;border:1px solid #131313;border-radius:4px"/></a></div></div>
<?php
}
?>
<?
?>
<?php
ob_end_flush();
?>