Файл: monster.php
Строк: 112
<?
define('PROTECTOR', 1);
include('files/db.php');
include($path.'files/auth.php');
if ($user_id==0){
header('location: index.php');exit;
}
$textl='Охота на монстра';
include($path.'files/core.php');
if($udata['lvl']<=10){$lvlm=10;}
elseif($udata['lvl']>10 and $udata['lvl']<=20){$lvlm=20;}
elseif($udata['lvl']>20 and $udata['lvl']<=30){$lvlm=30;}
elseif($udata['lvl']>30 and $udata['lvl']<=40){$lvlm=40;}
elseif($udata['lvl']>40 and $udata['lvl']<=50){$lvlm=50;}
$lk=$lvl/10;
$boss=mysql_fetch_array(mysql_query("SELECT * FROM `boss` WHERE `id`='".$lk."'"));
$time=date('H');
$boi=mysql_num_rows(mysql_query("SELECT * FROM `boss_reit` WHERE `usr`='".$udata['id']."'"));
include($path.'files/head.php');
include($path.'files/zag.php');
echo '<table width=100%>
<tr>
<td width=35%>
<a href=game.php><div style="background: #882222; border-radius: 7px 0 0 7px" class="m p bts bbs brs bls" align=center>Главная</div></a>
</td><td>';
echo '<a href=?><div class="line bts brs bls bbs p m" style="border-radius: 0 7px 7px 0">
<font color=#ffffff>Охота на монстра</font>
</div></a></td></tr></table>';
echo '<div class="m p bat bts bbs bls brs">';
if(isset($_GET['reit']))
{
echo '<center><table width=99%>';
echo '<tr>';
echo '<td>';
echo '<center><a href=?reit=10><div style="background:#553322; background: linear-gradient(15deg,#332211,#994433)" class="p m bts bbs bls brs">10</div></a></center>';
echo '</td>';
echo '<td>';
echo '<center><a href=?reit=20><div style="background:#553322; background: linear-gradient(-15deg,#332211,#994433)" class="p m bts bbs bls brs">20</div></a></center>';
echo '</td>';
echo '<td>';
echo '<center><a href=?reit=30><div style="background:#553322; background: linear-gradient(15deg,#332211,#994433)" class="p m bts bbs bls brs">30</div></a></center>';
echo '</td>';
echo '<td>';
echo '<center><a href=?reit=40><div style="background:#553322; background: linear-gradient(-15deg,#332211,#994433)" class="p m bts bbs bls brs">40</div></a></center>';
echo '</td>';
echo '<td>';
echo '<center><a href=?reit=50><div style="background:#553322; background: linear-gradient(15deg,#332211,#994433)" class="p m bts bbs bls brs">50</div></a></center>';
echo '</td>';
echo '</tr></table>';
$reit=mysql_query("SELECT * FROM `boss_reit` WHERE `boss`='".mysql_real_escape_string($_GET['reit'])."' ORDER BY `time` ASC");
while($re=mysql_fetch_array($reit))
{
$us=mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id`='".$re['usr']."'"));
}
}
elseif(isset($_GET['boi']))
{
echo '<center><img src=img/mob/138.jpg><br>
<font color=#ff2222>Ужас Сидонии</font> <img src=img/main/p10.png>'.$lvlm.'</center>';
if($time>=2 and $time<=23)
{
echo '<center><a href=?att><div style="background:#553322; background: linear-gradient(-15deg,#332211,#994433); width: 70%" class="p m bts bbs bls brs">бой</div></a></center>';
}
else
{
if($boi==0)
{
echo '<center><div style="background:#553322; background: linear-gradient(-15deg,#332211,#994433); width: 70%" class="p m bts bbs bls brs">15:00-23:59</div></center>';
}
else
{
echo '<center><div style="background:#553322; background: linear-gradient(-15deg,#332211,#994433); width: 70%" class="p m bts bbs bls brs">Закрыто</div></center>';
}
}
}
else
{
echo '<center><img src=img/mob/138.jpg><br>
<font color=#ff2222>Ужас Сидонии</font> <img src=img/main/p10.png>'.$lvlm.'</center>';
echo '<center><table width=70%>';
echo '<tr>';
echo '<td>';
echo '<center><a href=?reit><div style="background:#553322; background: linear-gradient(15deg,#332211,#994433)" class="p m bts bbs bls brs">рейтинг</div></a></center>';
echo '</td>';
echo '<td>';
if($time>=2 and $time<=23)
{
echo '<center><a href=?boi><div style="background:#553322; background: linear-gradient(-15deg,#332211,#994433)" class="p m bts bbs bls brs">бой</div></a></center>';
echo '</td>';
}
else
{
if($boi==0)
{
echo '<center><div style="background:#553322; background: linear-gradient(-15deg,#332211,#994433)" class="p m bts bbs bls brs">15:00-23:59</div></center>';
echo '</td>';
}
else
{
echo '<center><div style="background:#553322; background: linear-gradient(-15deg,#332211,#994433)" class="p m bts bbs bls brs">Закрыто</div></center>';
echo '</td>';
}
}
echo '</tr>';
echo '</table></center>';
}
echo '</div></div>';
include('files/down.php');
?>