Файл: msmenu/msindex.php
Строк: 126
<?php
echo '<div>
</div>
<div>
</div>
<center>
<img src="../img/bf5nv5.jpg" alt=""/>
</center>';
if($user['admin'] == 1 ||$user['admin'] == 2){
echo '<a class="btnl" href="../Link:ILinkListener-MsAdmin;"><img src="../img/admin_caticon_1.png" width="24" height="24" alt=""/> Комната администрации</a>';
}
echo '
<a class="btnl" href="../Link:questsList"><img src="/img/dozor.png" width="24" height="24" alt=""/> Гарнизон</a>
<a class="btnl" href="../Link:OnTheHunt"><img src="../img/msles.png" alt="" width="24" height="24" /> Тёмный лес</a>';
if($user['dozor_time'] < time()) $msdozor_time = '<img width="24" height="24" src="/img/plus.png" class="fr"/>'; else $msdozor_time = ''.time_left($user['dozor_time']-time()).'';
if($user['level'] >= 11)echo '<a class="btnl" href="../Link:ILinkListener-MsDozor;"><img src="/img/lamp.png" alt="" width="24" height="24" /> Верхний Дозор<span class="fr">'.$msdozor_time.'</span><div class="cb"></div></a>';
$msarena_col = mysql_result(mysql_query("SELECT COUNT(*) FROM `ms_arena_start`"), 0);
if($msarena_col > 0) $msarena = $msarena_col;
if($user['level'] >= 20)echo '<a class="btnl" href="../Link:ILinkListener-MsArenaStart;"><img src="/img/tournament.png" alt="" width="24" height="24" /> Арена
<span class="fr">'.$msarena.'</span>
<div class="cb"></div>
</a>';
echo '<a class="btnl" href="../Link:ILinkListener-MsTasks;"><img src="/img/tacks.png" alt="" width="24" height="24" /> Задания<div class="cb"></div></a>';
/*
echo '<a class="btnl" href="../">
<img src="/img/library.png" alt="" width="24" height="24" />
Библиотека
<span class="fr"></span>
</a>';
*/
if($user['traning_time_life'] < time() && $user['traning_time_regeneration'] < time() && $user['traning_time_attack'] < time() && $user['traning_time_shield'] < time() && $user['traning_time_rage'] < time()){
$mstraning_type = '<img width="24" height="24" src="/img/plus.png" class="fr"/>';
}
if($user['level']>=13)echo '<a class="btnl" href="../Link:ILinkListener-Traning;">
<img src="/img/trainings.png" alt="" width="24" height="24" />
Тренировки '.$mstraning_type.'
<span class="fr"></span>
</a>';
$msidscrolls_yes = mysql_fetch_array(mysql_query("SELECT * FROM `ms_upscrolls` WHERE `user` = '".$user['id']."' ORDER BY `id` ASC LIMIT 1"));
if($msidscrolls_yes['time'] < time() && $msidscrolls_yes['id']){
$msscr_type = '<img width="24" height="24" src="/img/plus.png" class="fr"/>';
}else{
$msscr_type = '';
}
echo '<a class="btnl" href="../Link:MsCraft">
<img src="/img/smith.png" alt="" width="24" height="24" />
Квартал ремесленников '.$msscr_type.'
<div class="cb"></div>
</a>';
echo '<a class="btnl" href="../Link:ILinkListener-Progress;">
<img src="/img/records.png" width="24" height="24" alt=""/>
Игровой прогресс
</a>';
echo '<table cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td style="padding-top: 0px;" colspan="1">
<a class="btni" style="padding:8px; display:block; margin:0; border-radius:0; text-align: left;" href="../Link:ILinkListener-MsSms;">
<img alt="" src="/img/ruby.png" width="24" height="24"/> Рубины
</a>
</td>
<td style="width: 40px; padding:0px 0 0 1px;">
<a href="../Link:ILinkListener-MsAction;">
<img alt="" src="/img/share.png" />
</a>
</td>
</tr></table>';
echo '<a class="btnl" href="../Link:ILinkListener-MsСommunication;">
<img src="/img/tavern.png" alt="" width="24" height="24" />
Таверна
</a>';
echo '<div class="content">
<img src="/img/pattern-left.png" alt="" />
<span>Маресмерон</span>
<img src="/img/pattern-right.png" alt="" />
</div>';
?>