<?



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

$online = mysql_num_rows( mysql_query('SELECT * FROM `users` WHERE `online` > \''.( time() - (300) ).'\'') );



if($user)
{
 
?>
<div class='line'></div>
<div class='main'>
<div class='menuList'>
  <li><a href='/user/'><img src='/images/icon/user.png' alt='*'/> Мой герой</a></li>
<?php

  if($clan) echo '<li><a  href=\'/clan/\'><img src=\'/images/icon/clan.png\' alt=\'*\'/> Мой клан</a></li>';
  
?>
  <li><a href='/'><img src='/images/icon/arrow.png' alt=''/> На главную</a></li>

</div></div>
<div class='line'></div>
<div class='foot'>
  <span style='float: right;'><?=($user['save'] == 1 ? '<a href=\'/settings/\'>Настройки</a>':'<a href=\'/save/\'>Сохранить</a>')?></span><img src='/images/icon/race/<?=$user['r'].($user['online'] > (time() - 300) ? '':'-off')?>.png' alt='*'/>
 <?=$user['login']?></b>
  <div align='center'><img src='/images/icon/level.png' alt='*'/> <?=$user['level']?> | <img src='/images/icon/gold.png' alt='*'/> <?=n_f($user['g'])?> |
  
  <img src='/images/icon/silver.png' alt='*'/> <?=n_f($user['s'])?>  </div>
</div>
<br/>
<div class="center">
<div class="dot-line2"></div>
<br><span class="grey">
<a href="/forum/">Форум</a> | <a href="/chat/">Чат</a> | <a href="/rating/">Рейтинг</a>
<div class="mb10"></div><a href="/feed">Лента комментариев</a></span><div class="mb10"></div>
<span class="medium grey"><a class="grey" href="/common/">Общее</a> | <a class="grey" href="https://vk.com/aanbek">Другие игры</a></span><br>
  <span class="small grey"><?=round((($sec+$msec)-$gtime),3)?>  сек,<!-- 100 --> <?=date('H:i:s')?> | <a class="grey" href="/online/">В игре: <?=n_f($online)?></a><br>Aanbek© 2020, 18+</span></div>




<?php

}
else
{

?>
<div class="center"><div class="mb10"></div>
<span class="medium grey"><a class="grey" href="/common/">Общее</a> | <a class="grey" href="https://vk.com/aanbek">Другие игры</a></span><br>
        <span class="small grey"><?=round((($sec+$msec)-$gtime),3)?> сек,<!-- 100 --> <?=date('H:i:s')?> | Онлайн: <?=n_f($online)?><br>Aanbek© 2020, 18+</span></div>

</body>
</html>
<?php

}

?>

</body></html>

<?php

ob_end_flush();

?>