<?php
list($msec, $sec) = explode( chr(32), microtime() );

$online = mysql_num_rows( mysql_query('SELECT * FROM `users` WHERE `online` > \''.( time() - (300) ).'\'') );
$f1 = mysql_query('SELECT * FROM `inv` WHERE `user` = "'.$user['id'].'" AND `item` = "78"');
$f1 = mysql_fetch_array($f1);  
?>
<div class="line"></div>
<div class="player menuList">
<?if($user['w_6']!=$f1['id'] && $user['level'] >4){?>
<li><a href="/user/"><img src="/images/icon/user.png" alt="">Мой герой<span class="green"> (+)</span></a></li>
<?}else{?>
<li><a class="grey"><img src="/images/icon/user.png" alt="">Мой герой</a></li><?}?>
<li class="noBorder"><a href="/"><img src="/images/icon/arrow.png" alt="">На главную</a></li>
</div>
<div class="line"></div>
<div class="foot">
<div>
<img src="/images/icon/race/<?=$user['r']?>.png" alt=""> <?=$user['login'];?>
<?if($user['save']==0){?>
<span class="float-right medium"><a class="dgreen" href="/save/">Сохранить</a></span>
<?}else{?>
<span class="float-right medium"><a class="grey">Настройки</a></span>
<?}?>
</div>
<div class="center"><img src="/images/icon/level.png" alt="lvl"> <?=$user['level']?> 
| <img src="/images/icon/gold.png" alt="g"> <?=$user['g'];?> 
| <img src="/images/icon/silver.png" alt="s"> <?=$user['s'];?>
</div>
</div>
</div>
<div class="center">
<?if($user['save']==1 && $user['level']<10){?>
<div class="share_box shb_pic_event">
<div class="shb_end"><div class="shb_text">
<a href="/novicebonus/">Бонусные комплекты</a></div></div></div>
<div class="dot-line2"></div>
<?}?>
<br><div class="mb10"></div><span class="small grey"><?=round((($sec+$msec)-$gtime),3)?> сек,<!-- 100 --> <?=date('H:i:s')?> | <a class="grey">В игре: <?=n_f($online)?></a><br>Aanbek© 2020, 18+</span></div>