<?php
include "inc/user.php";
include "inc/connect.php";
if (isset($_GET['id']) && mysql_result(mysql_query("SELECT COUNT(*) FROM `boss` WHERE `id` = '".intval($_GET['id'])."'"),0) == true){
$boss = mysql_fetch_assoc(mysql_query("SELECT * FROM `boss` WHERE `id` = '".intval($_GET['id'])."'"));
}else{
header('Location: /');
}
$boss_param = $boss[sila] + $boss[health] + $boss[lovk] + $boss[zashit];
$user_param = $user['str'] + $user['mp'] + $user['hp'] + $user['def'] ;
$title = '<title>'.$boss['name'].'</title>';
include_once 'inc/h.php';
echo "<div class='f'>";
echo " <title>".$boss['name']."
</title><div class='sblue-panel'>
<div class='panel-inner-2'>
<div class='pl10'>
<center><img src='/img/boss/".$boss[image].".png' width ='20%'/></center>
<b><center>$boss[name]</b><br></span><br><img src='https://img1.vten.ru/images/icons/strength.png'> Сила: $boss[sila]<br><img src='https://img0.vten.ru/images/icons/health.png'> Здоровье: $boss[health]<br><img src='https://img2.vten.ru/images/icons/crit.png'> Ловкость: $boss[lovk]<br><img src='https://img1.vten.ru/images/icons/armor.png'> Защита: $boss[zashit]<br>";
echo "<br><br><a class='btn' href='/cavewar/?id=$boss[id]'><span class='end'><span class='label'>Атаковать</span></span></a><br><br></center></div></div></div>";
include_once 'inc/f.php';?>