Файл: public_html/system/f.php
Строк: 287
<?
list($msec, $sec) = explode( chr(32), microtime() );
$online = mysql_num_rows( mysql_query('SELECT * FROM `users` WHERE `online` > ''.( time() - (300) ).''') );
$online24 = mysql_num_rows( mysql_query('SELECT * FROM `users` WHERE `online` > ''.( time() - (173800) ).''') );
$feed = mysql_result(mysql_query('SELECT COUNT(*) FROM `feed` WHERE `user` = "'.$user['id'].'"'),0);
if($user){
?>
<style>
/* bottom menu */
.bmenu{display:inline-block;//display:inline;//zoom:1;
min-width:88px;
padding-top:68px;
vertical-align:top;
text-decoration:none !important;
background-repeat:no-repeat;
background-position:50% 0;
background-size:68px auto}
.bm_home{background-image:url('http://epiwar.ru/img/profile.png');}
.bm_home.cur{background-image:url('http://epiwar.ru/img/profile.png');}
.bm_home.ntf{background-image:url('http://epiwar.ru/img/profile.png');}
.bm_profile{background-image:url('http://mwiz.mobi//static/img/bg-bmenu-profile-state1.png');}
.bm_profile.cur{background-image:url('http://epiwar.ru/img/home.png');}
.bm_profile.ntf{background-image:url('http://mwiz.mobi//static/img/bg-bmenu-profile-state3.png');}
.bm_clan{background-image:url('http://mwiz.mobi//static/img/bg-bmenu-clan-state1.png');}
.bm_clan.cur{background-image:url('http://epiwar.ru/img/clan.png');}
.bm_clan.ntf{background-image:url('http://epiwar.ru/img/clan.png');}
.bm_clan.off{background-image:url('http://mwiz.mobi//static/img/bg-bmenu-clan-state4.png');}
.bmenu .txt{display:block;max-width:98px;padding:3px 0;word-wrap:break-word;overflow:hidden;color:#778ea2;font-size:small;background-repeat:no-repeat;background-position:50% 50%;}
.bmenu.cur .txt{color:#6dd8d7;background-image:url('http://mwiz.mobi//static/img/bg-bmenu-hl-cur.png');}
.bmenu.ntf .txt{color:#7bff65;background-image:url('http://mwiz.mobi//static/img/bg-bmenu-hl-ntf.png');}
.bmenu.off .txt{color:#405466;}
.fs0{font-size:0;}
.mt5{margin-top:5px}
.cntrr{background-color:#000003;}
.cntrrs{background: #FFF;background-color:#00000d;}
.snowf_left{background-image:url('http://mwiz.mobi//static/img/bg-snowflake-left.png');background-repeat:no-repeat;background-position:100% 10px;}
.snowf_right{background-image:url('http://mwiz.mobi//static/img/bg-snowflake-right.png');background-repeat:no-repeat;background-position:0 10px;}
.w33i{width:34%;display:inline-block;//display:inline;//zoom:1;}
.ovh{overflow:hidden;}
</style>
<div class="fs0 cntrr cntr mt5">
<span class="w33i snowf_left"><a class="bmenu bm_home ntf" href="/"><span class="txt">Главная</span></a></span>
<span class="w33i snowf_right" style="width:30%"><span class="bl snowf_left"><a class="bmenu bm_profile cur" href="/user/"><span class="txt">Герой<?=(mysql_result(mysql_query('SELECT COUNT(*) FROM `inv` WHERE `user` = "'.$user['id'].'" AND `equip` = "0" AND `place` = "0" AND `new` = "0"'),0) > 0 ? '<font color='#30c030'>(+)</font> <img src="/style/img/doit.gif" width="10">':'')?></span></a></span></span>
<span class="w33i snowf_right"><span class="bl "><a href="/clan/" class="bmenu bm_clan ntf"><span class="txt" style="max-width:93px">
<? if($clan){
echo $clan['name'];
}else{ echo'Клан';}?></span></a></span>
</div>
</div>
<div class='cntrrs' style="word-wrap:break-word;">
<div><img src="/images/icon/race/<?=$user['r'].($user['online'] > (time() - 300) ? '':'-off')?>.png"> <?=$user['login']?><span class="float-right medium"><?=($user['save'] == 1 ? '<a href="/settings/">Настройки</a>':'<a href="/save/">Сохранить</a>')?></span></div>
<img src='/ava/<?=n_f ( $user
['level'])?>.png'width='5% alt='*'/>
<div class="center"><img src="/images/icon/up.png" alt="lvl"> <?=$user['level']?> | <img src="/images/icon/gold.png" alt="g"> <?=n_f($user['g'])?> | <img src="/images/icon/silver.png" alt="s"> <?=n_f($user['s'])?> |
<img src="/images/icon/relic.png" alt="krys"> <?=n_f($user['plat'])?></div>
<center>
<a class="btn22" href="/chat2.php"><img src="/images/icon/chat.png?v2"><font color="pink"> Таверна ( <?=n_f(mysql_result(mysql_query('SELECT COUNT(*) FROM `chat` WHERE `clan` <= "0"'),0)) ?> ) </font></a>
<a class="btn22" href="/forum.php"><img src="/images/icon/forum.png"><font color="green">Форум</font></a><br>
<a class="btn22" href="/common.php"><img src="/images/icon/common.png"><font color="orange">Общее</font></a>
<a class="btn22" href="/rating.php"><img src="/images/icon/chess_tower.png"><font color="lime">Рейтинг</font></a>
<a class="btn22" href="http://m.vk.com/biosphere_ava1"><font color="red">Мы в vk</font></center></a>
<center><a class="btn22" href="/common/refferal"><font color="gold">Реферальная Система</font></center></a>
<?
$skidka = mysql_fetch_array(mysql_query('SELECT * FROM `skilka` WHERE `zena` !=0'));
if($skidka['time'] < time()){
mysql_query("UPDATE `skilka` SET `zena` = '0', `time` = '0'");
}
if($skidka['time'] > time()){
echo "<center><a class='quality-4' href='/action/' class='btn'><span class='end'><span class='label'>".$skidka['nazvanie']." ".$skidka['zena']."%</a><span class='green'> (+)</span></span></br></a>";
echo "<span class='grey'>До конца:".(_time($skidka['time'] - time()))." </center>";
}
?>
<img src="http://btvar.ru/images/pims3.png" style="width:100%; margin-bottom: -1px;">
<div class="cntr">
<div class="mb10"></div>
<span class="small grey"><?=round((($sec+$msec)-$gtime),3)?> сек,<!-- 100 --> <?=$timep = date("H:i:s", time());?> | <a class="grey" href="/online/">В игре: <?=n_f($online)?> из <?=n_f(mysql_result(mysql_query('SELECT COUNT(*) FROM `users`'),0))?></a>
<br>Онлайн За сутки: <?=n_f($online24)?><br>
Кликов за сессию: <?=n_f($_SESSION['count'])?><br>
<?
echo'<a class="mb10" href="/ticket/"><font color="DimGray">Служба поддержки</a> <a class="mb10" href="/games.php"><font color="DimGray"> Еще игры</a>';
?>
<?
echo'<br>';
if($_SERVER['HTTP_HOST']=='admin.bitger.ru'){
if($user['access'] ==2){
?>
<a class="btn22" href="/.adm/"><img src="/images/icon/arrow.png"><font color="white"> админка</font></a>
<a class="btn22" href="/moder_chat/"><img src="/images/icon/arrow.png"><font color="red"> мд чат</font></a>
<a class="btn22" href="/.md/"><img src="/images/icon/arrow.png"><font color="white"> мд панель</font></a>
<?
}}
if($_SERVER['HTTP_HOST']=='moderator.mmars.ru'){
if($user['access'] == 1){
?>
<a class="btn22" href="/moder_chat/"><img src="/images/icon/arrow.png"><font color="red"> мд чат</font></a>
<a class="btn22" href="/.md/"><img src="/images/icon/arrow.png"><font color="white"> мд панель</font></a>
<?
}}
?>
<br>
</div>
<br>
</body>
</html>
<?
}else{
?>
</div><br>
<div class="center">
<br>
<span class="small grey">gen<?=round((($sec+$msec)-$gtime),3)?> сек,<!-- 100 --> <?=$timep = date("H:i:s", time());?> | В игре: <?=n_f($online)?>
<br>
</div>
<br>
</body>
</html>
<?
}
if($title =='Битва Титанов Революция'){
echo"<center><a href='http://statok.net/go/14883'><img src='http://statok.net/image/14883' alt='Statok.net' /></a></center>";
}else{
echo'<center><a href="http://statok.net/go/14883"><img src="http://statok.net/imageOther/14883" alt="Statok.net" /></a></center>';
}
ob_end_flush();
?>