Файл: user/index.php
Строк: 844
<?php
require_once '../core/system.php';
echo only_reg();
$header = 'Игрок';
if (isset($_GET['id']) && mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '".intval($_GET['id'])."'"),0) == true){
$ank = mysql_fetch_assoc(mysql_query("SELECT * FROM `user` WHERE `id` = '".intval($_GET['id'])."'"));
if($ank['bonus_sila'] > time()) {
$ank['sila'] += 300;
$ank['max_health'] += 300;
$ank['lovk'] += 300;
$ank['zashit'] += 300;
$ank['max_mana'] += 300;
}
}else{
$_SESSION['err'] = "Игрок не найден";
header('Location: /');
exit();
}
require_once H.'core/head.php';
$k_bashni = mysql_result(mysql_query("SELECT COUNT(*) FROM `bashni` WHERE `id_user` = '$ank[id]'"),0);
if($k_bashni == 0)$status = 'Боец';
if($k_bashni > 0)$status = 'Супер Боец';
if($k_bashni > 9)$status = 'Гладиатор';
if($k_bashni > 19)$status = 'Титан';
if($k_bashni > 29)$status = ($ank['pol'] == 0 ? "Ангел" : "Архангел");
if($k_bashni > 39)$status = 'Повелитель';
if($k_bashni > 49)$status = ($ank['pol'] == 0 ? "Королева" : "Король");
if($k_bashni > 99)$status = ($ank['pol'] == 0 ? "Богиня" : "Бог");
echo "<div class='player'>";
if ($ank['storona'] == '0') {?><img src="/images/icon/0.png" height="11" alt="a"/> <?php }
if ($ank['storona'] == '1') {?><img src="/images/icon/1.png" height="11" alt="d"/> <?php }
echo online($ank[id]);
echo " <b><span class='red'>$ank[nick]<span class='red'></b> <img src='/images/icon/level.png' alt=''/> $ank[level] ур. ";
if($ank[prava] == 5 ){
echo "<b>";
echo " |<span class='red'> Администратор</span>";
echo "</b>";
}
if($ank[prava] == 7 ){
echo "<b>";
echo " |<span class='red'> Создатель</span>";
echo "</b>";
}
if($ank[prava] == 4 ){
echo "<b>";
echo " |<span class='blue'> Модератор</span>";
echo "</b>";
}
if($ank[ban] == 1 ){
echo "<b>";
echo " |<span class='red'> Забанен</span>";
echo "</b>";
}
if($ank[prava] == 3){
echo "<b>";
echo " |<span class='orange'> VIP</span>";
echo "</b>";
}
echo "<br>Последнее действие: <span class='dgreen'>[".vremja($ank[online])."]</span><br/>";
echo 'Использует: '.($ank['user_agent'] != NULL ? '<img src="/images/'.$ank['user_agent'].'.png" />' : 'Мобильный').' <br/>';
if($ank['clan_id'] != 0) {
include '../clan/sys.php';
$r = mysql_fetch_assoc(mysql_query("SELECT `name` FROM `clans` WHERE `id` = '".$ank['clan_id']."'"));
echo '<br /><img src="/images/icon/clan/'.$ank['storona'].'.png" />
<a href="/clan/clan.php?id='.$ank['clan_id'].'">'.htmlspecialchars($r['name']).'</a>,
'.clan_prava($ank['clan_prava']);
}
if($ank[idrunz] != 0 || $ank[idrunl] != 0 || $ank[idrunh] != 0 || $ank[idruns] != 0) echo '<br/>';
if($ank[idrunz] == 1) {echo "<img src='/style/runi/1.png' width='15' height='15'/> ";}
if($ank[idrunz] == 2) {echo "<img src='/style/runi/2.png' width='15' height='15'/> ";}
if($ank[idrunz] == 3) {echo "<img src='/style/runi/3.png' width='15' height='15'/> ";}
if($ank[idrunz] == 4) {echo "<img src='/style/runi/4.png' width='15' height='15'/> ";}
if($ank[idrunz] == 5) {echo "<img src='/style/runi/5.png' width='15' height='15'/> ";}
if($ank[idrunl] == 1) {echo "<img src='/style/runi/1.png' width='15' height='15'/> ";}
if($ank[idrunl] == 2) {echo "<img src='/style/runi/2.png' width='15' height='15'/> ";}
if($ank[idrunl] == 3) {echo "<img src='/style/runi/3.png' width='15' height='15'/> ";}
if($ank[idrunl] == 4) {echo "<img src='/style/runi/4.png' width='15' height='15'/> ";}
if($ank[idrunl] == 5) {echo "<img src='/style/runi/5.png' width='15' height='15'/> ";}
if($ank[idrunh] == 1) {echo "<img src='/style/runi/1.png' width='15' height='15'/> ";}
if($ank[idrunh] == 2) {echo "<img src='/style/runi/2.png' width='15' height='15'/> ";}
if($ank[idrunh] == 3) {echo "<img src='/style/runi/3.png' width='15' height='15'/> ";}
if($ank[idrunh] == 4) {echo "<img src='/style/runi/4.png' width='15' height='15'/> ";}
if($ank[idrunh] == 5) {echo "<img src='/style/runi/5.png' width='15' height='15'/> ";}
if($ank[idruns] == 1) {echo "<img src='/style/runi/1.png' width='15' height='15'/> ";}
if($ank[idruns] == 2) {echo "<img src='/style/runi/2.png' width='15' height='15'/> ";}
if($ank[idruns] == 3) {echo "<img src='/style/runi/3.png' width='15' height='15'/> ";}
if($ank[idruns] == 4) {echo "<img src='/style/runi/4.png' width='15' height='15'/> ";}
if($ank[idruns] == 5) {echo "<img src='/style/runi/5.png' width='15' height='15'/> ";}
echo "</div>";
echo "<div class='player'>";
if(!empty($ank[ava_img])){
echo "<span class='dred'>Установлен VIP аватар </span>";
echo "<a href='/user/avatar.php?id=$ank[id]'><img src='/images/avas/us/$ank[ava_img]' width='116' height='154' style='margin-right:10px;float:left;' alt=''/></a> ";
}else{
echo "<a href='/user/avatar.php?id=$ank[id]'><img src='/style/avatar/".($ank['pol'] == 0 ? "zj" : "m")."/$ank[avatar].png' width='116' height='154' style='margin-right:10px;float:left;' alt=''/></a> ";
}
echo "</div>";
$pets_param = $ank[silapets] + $ank[vinoslpets] + $ank[healthpets];
$ank_param = $ank[sila] + $ank[max_health] + $ank[lovk] + $ank[zashit] + $pets_param;
echo "<img src='/images/icon/str.png' alt='str'/> Сила: $ank[sila] (<span class='dgreen'>+0</span>)(<span class='orange'>+$ank[umensila]%</span>)
<br>
<img src='/images/icon/vit.png' alt='vit'/> Здоровье: $ank[max_health] (<span class='orange'>+$ank[umenmax_health]%</span>)
<br>
<img src='/images/icon/agi.png' alt='agi'/> Ловкость: $ank[lovk] (<span class='orange'>+$ank[umenlovk]%</span>)
<br>
<img src='/images/icon/def.png' alt='def'/> Защита: $ank[zashit] (<span class='orange'>+$ank[umenzashit]%</span>)
<br>
<img src='/images/icon/2hit.png'> Сумма: $ank_param (<span class='dgreen'>+$pets_param</span>)
<br>
<img src='/images/icon/mana.png' alt='mana'/> Мана: $ank[max_mana] (<span class='orange'>+$ank[umenmax_mana]%</span>)
<br>
";
echo "<br>
<div class='player'>";
if($ank[umensila] == 5){echo "<img src='/images/ability/1.1.png' width='25' height='25'/> ";}
if($ank[umensila] == 10){echo "<img src='/images/ability/1.1.png' width='25' height='25'/> ";}
if($ank[umensila] == 15){echo "<img src='/images/ability/1.1.png' width='25' height='25'/> ";}
if($ank[umensila] == 20){echo "<img src='/images/ability/1.2.png' width='25' height='25'/> ";}
if($ank[umensila] == 25){echo "<img src='/images/ability/1.2.png' width='25' height='25'/> ";}
if($ank[umensila] == 30){echo "<img src='/images/ability/1.2.png' width='25' height='25'/>";}
if($ank[umensila] == 35){echo "<img src='/images/ability/1.2.png' width='25' height='25'/> ";}
if($ank[umensila] == 40){echo "<img src='/images/ability/1.3.png' width='25' height='25'/> ";}
if($ank[umensila] == 45){echo "<img src='/images/ability/1.3.png' width='25' height='25'/> ";}
if($ank[umensila] == 50){echo "<img src='/images/ability/1.3.png' width='25' height='25'/> ";}
if($ank[umensila] == 55){echo "<img src='/images/ability/1.3.png' width='25' height='25'/>";}
if($ank[umensila] == 60){echo "<img src='/images/ability/1.4.png' width='25' height='25'/> ";}
if($ank[umensila] == 65){echo "<img src='/images/ability/1.4.png' width='25' height='25'/> ";}
if($ank[umensila] == 70){echo "<img src='/images/ability/1.4.png' width='25' height='25'/> ";}
if($ank[umensila] == 75){echo "<img src='/images/ability/1.4.png' width='25' height='25'/> ";}
if($ank[umensila] == 80){echo "<img src='/images/ability/1.5.png' width='25' height='25'/> ";}
if($ank[umensila] == 85){echo "<img src='/images/ability/1.5.png' width='25' height='25'/> ";}
if($ank[umensila] == 90){echo "<img src='/images/ability/1.5.png' width='25' height='25'/> ";}
if($ank[umensila] == 95){echo "<img src='/images/ability/1.5.png' width='25' height='25'/> ";}
if($ank[umensila] == 100){echo "<img src='/images/ability/1.6.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 5){echo "<img src='/images/ability/2.1.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 10){echo "<img src='/images/ability/2.1.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 15){echo "<img src='/images/ability/2.1.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 20){echo "<img src='/images/ability/2.2.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 25){echo "<img src='/images/ability/2.2.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 30){echo "<img src='/images/ability/2.2.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 35){echo "<img src='/images/ability/2.2.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 40){echo "<img src='/images/ability/2.3.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 45){echo "<img src='/images/ability/2.3.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 50){echo "<img src='/images/ability/2.3.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 55){echo "<img src='/images/ability/2.3.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 60){echo "<img src='/images/ability/2.4.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 65){echo "<img src='/images/ability/2.4.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 70){echo "<img src='/images/ability/2.4.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 75){echo "<img src='/images/ability/2.4.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 80){echo "<img src='/images/ability/2.5.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 85){echo "<img src='/images/ability/2.5.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 90){echo "<img src='/images/ability/2.5.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 95){echo "<img src='/images/ability/2.5.png' width='25' height='25'/> ";}
if($ank[umenmax_health] == 100){echo "<img src='/images/ability/2.6.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 5){echo "<img src='/images/ability/3.1.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 10){echo "<img src='/images/ability/3.1.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 15){echo "<img src='/images/ability/3.1.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 20){echo "<img src='/images/ability/3.2.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 25){echo "<img src='/images/ability/3.2.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 30){echo "<img src='/images/ability/3.2.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 35){echo "<img src='/images/ability/3.2.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 40){echo "<img src='/images/ability/3.3.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 45){echo "<img src='/images/ability/3.3.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 50){echo "<img src='/images/ability/3.3.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 55){echo "<img src='/images/ability/3.3.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 60){echo "<img src='/images/ability/3.4.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 65){echo "<img src='/images/ability/3.4.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 70){echo "<img src='/images/ability/3.4.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 75){echo "<img src='/images/ability/3.4.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 80){echo "<img src='/images/ability/3.5.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 85){echo "<img src='/images/ability/3.5.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 90){echo "<img src='/images/ability/3.5.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 95){echo "<img src='/images/ability/3.5.png' width='25' height='25'/> ";}
if($ank[umenlovk] == 100){echo "<img src='/images/ability/3.6.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 5){echo "<img src='/images/ability/4.1.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 10){echo "<img src='/images/ability/4.1.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 15){echo "<img src='/images/ability/4.1.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 20){echo "<img src='/images/ability/4.2.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 25){echo "<img src='/images/ability/4.2.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 30){echo "<img src='/images/ability/4.2.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 35){echo "<img src='/images/ability/4.2.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 40){echo "<img src='/images/ability/4.3.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 45){echo "<img src='/images/ability/4.3.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 50){echo "<img src='/images/ability/4.3.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 55){echo "<img src='/images/ability/4.3.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 60){echo "<img src='/images/ability/4.4.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 65){echo "<img src='/images/ability/4.4.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 70){echo "<img src='/images/ability/4.4.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 75){echo "<img src='/images/ability/4.4.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 80){echo "<img src='/images/ability/4.5.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 85){echo "<img src='/images/ability/4.5.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 90){echo "<img src='/images/ability/4.5.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 95){echo "<img src='/images/ability/4.5.png' width='25' height='25'/> ";}
if($ank[umenzashit] == 100){echo "<img src='/images/ability/4.6.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 5){echo "<img src='/images/ability/5.1.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 10){echo "<img src='/images/ability/5.1.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 15){echo "<img src='/images/ability/5.1.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 20){echo "<img src='/images/ability/5.2.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 25){echo "<img src='/images/ability/5.2.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 30){echo "<img src='/images/ability/5.2.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 35){echo "<img src='/images/ability/5.2.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 40){echo "<img src='/images/ability/5.3.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 45){echo "<img src='/images/ability/5.3.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 50){echo "<img src='/images/ability/5.3.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 55){echo "<img src='/images/ability/5.3.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 60){echo "<img src='/images/ability/5.4.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 65){echo "<img src='/images/ability/5.4.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 70){echo "<img src='/images/ability/5.4.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 75){echo "<img src='/images/ability/5.4.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 80){echo "<img src='/images/ability/5.5.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 85){echo "<img src='/images/ability/5.5.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 90){echo "<img src='/images/ability/5.5.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 95){echo "<img src='/images/ability/5.5.png' width='25' height='25'/> ";}
if($ank[umenmax_mana] == 100){echo "<img src='/images/ability/5.6.png' width='25' height='25'/>";}
echo "</div><div style='clear:both;'></div>";
if($ank[idkon] != 0){
echo "<span class='dred'>Лошадь: </span><br/>";
echo "<img src='/style/koni/$ank[idkon].png' style='margin-right:10px; alt=''/><br/>";
}
echo "<div class='block_dashed'><span class='$ank[status_c]'>$ank[status]</span></div>";
$kompls = mysql_query("SELECT * from `kompl_us` where `id_us` = '".$user['id']."' order by `id` desc");
if(mysql_num_rows($kompls) == 0){
echo'На вас нет снаряжения<br/>';
}
if($user[id] == $ank[id]){
echo "<div class='mini-line'></div><div class='player menuList'>";
if($ank['petschek'] == 0){
echo "<div class='player'><img src='/images/icon/pit.png'> <span class='orange'>$ank[petsname]</span></div>";
}
if($ank['petschek'] == 1){
echo "<br><div class='player'><img class='float-left' src='/pets/$ank[pets]'height='35' ><img src='/images/icon/pit.png'><span class='orange'>$ank[petsname]</span> (<span class='dgreen'>+$pets_param</span>)</br><img src='/images/icon/level.png' alt=''/>Уровень: (<span class='red'>скоро</span>)</div>";
}
echo "<div class='mini-line'></div><li><a href='/pets/index.php'><img src='/images/icon/hellworld.png'>Мой питомец</a></li>";
echo "<li><a href='/user/bashni.php?id=$ank[id]'><img src='/images/icon/tournament.png'>Башни</a></li>";
echo "<li><a href='/user/newmsg.php'><img src='/images/icon/mail.png'>Почта</a></li>";
echo "<li><a href='/user/set_status.php'><img src='/images/icon/ok.png'>Статус</a></li>";
echo "</div>";
echo "<div class='mini-line'></div>";
}else{
echo "</div>";
echo "<div class='player menuList'>";
echo "<div class='mini-line'></div>";
if($ank['petschek'] == 0){
echo "<div class='player'> <img src='/images/icon/pit.png'> <span class='orange'> $ank[petsname]</span></div>";
}
if($ank['petschek'] == 1){
echo "<br><div class='player'><img class='float-left' src='/pets/$ank[pets]'height='35' ><img src='/images/icon/pit.png'><span class='orange'>$ank[petsname]</span> (<span class='dgreen'>+$pets_param</span>)</br><img src='/images/icon/level.png' alt=''/>Уровень: (<span class='red'>скоро</span>)</div>";
}
echo "<div class='mini-line'></div><li><a href='/user/bashni.php?id=$ank[id]'><img src='/images/icon/tournament.png'>Башни $ank[nick]</a></li>";
echo "<div class='mini-line'></div><li><a href='/user/zamok.php?id=$ank[id]'><img src='/images/icon/tournament.png'>Замки $ank[nick]</a></li>";
echo "<li><a href='/user/mail.php?id=$ank[id]'><img src='/images/icon/mail.png'>Отправить Почту</a></li>";
if($user['clan_id'] <>0 and $user['clan_prava'] >= 3 and $ank['clan_id'] ==0 and $ank['storona'] ==$user['storona']){echo "<li><a href='/clan/asdf.php?id=$ank[id]'><img src='/images/icon/arrow.png'>Пригласить в отряд</a></li>";}
echo "</div>";
echo "<div class='mini-line'></div>";
}
/*
if($user[id] == $ank[id]){
echo "<div class='player menuList'>";
}
*/
echo '<div class="panel gray-panel"><div class="panel-inner">';
if($user[id] == $ank[id]){
echo "<div class='dot-line'></div>";
echo "<div class='player menuList'>";
echo "<li><a href='/anketa.php?id=$ank[id]'><img src='/images/icon/arena.png'>Анкета</a></li>";
if (!empty($user['umensila']))
{
$sila = true;
}
if (!empty($user['umenlovk']))
{
$lovk = true;
}
if (!empty($user
['umenmax_health']))
{
$max_health = true;
}
if (!empty($user['umenzashit']))
{
$zashit = true;
}
if (!empty($user
['umenmax_mana']))
{
$max_mana = true;
}
echo "<li><a href='/user/umen.php'><img src='/images/icon/smith.png'>Умения: <span class='white'>("; echo ($sila + $lovk + $max_mana + $zashit + $max_health); echo "/5)</span></a></li>";
echo "<li><a href='/user/train.php'><img src='/images/icon/train.png'>Тренировка</a></li>";
echo "<li><a href='/rukzak.php'><img src='/images/icon/tournament.png'>Рюкзак <span class='white'></span></a></li>";
echo "<li><a href='/mod/instalscript/metro/rukzak-metro.php'><img src='/images/icon/smith.png'>Рюкзак Подземелья <span class='white'></span></a></li>";
echo "</div>";
echo "<div class='mini-line'></div>
<div class='block_zero'>
<img src='/images/icon/gold.png' alt='gold'/> Золото: ".number_format($ank[gold],NULL,NULL,"'")."
<br>
<img src='/images/icon/silver.png' alt='silver'/> Серебро: ".number_format($ank[silver],NULL,NULL,"'")."
<br>
<img src='/images/icon/kamni.png' alt='silver'/> Камни: ".number_format($ank[kamni],NULL,NULL,"'")."
<br>
<img src='/images/icon/exp.png' alt='exp'/> Опыт: $ank[exp]/$exp <span class='grey'>(".round(100/($exp/($ank[exp]+1)))."%)</span>
<br>
</div>";
echo "<div class='mini-line'></div>";
}else{
echo "<div class='player menuList'>";
echo "<li><a href='/anketa.php?id=$ank[id]'><img src='/images/icon/arena.png'>Анкета</a></li>";
echo "<li><a href='/arena.php?attack=$ank[id]'><img src='/images/icon/arena.png'>Атаковать</a></li>";
if($user[prava] == 7)echo "<li><a href='/adminka/user2.php?id=$ank[id]'><img src='/images/icon/arrow.png'>Редактировать</a></li>";
if($ank[prava] < $user[prava])if($user[prava] >= 4)echo "<li><a href='/moder/ban.php?act=ban&id=$ank[id]'><img src='/images/icon/arrow.png'>Забанить игрока</a></li>";
if($user['prava'] >= 4)echo "<li> <a href='/adminka/viewIP.php?act=view&ip=".$ank['ip']."'> <img src='/images/icon/arrow.png'> Проверить на мульт-аккаунты </a> </li>";
if($ank[prava] < $user[prava])if($user[prava] == 7)echo "<li><a href='/adminka/banip.php?id=$ank[id]'><img src='/images/icon/arrow.png'>IP бан</a></li>";
echo "</div><div class='mini-line'></div>";
}
if($ank[liga] > 0 && $ank[liga] < 500){
echo"<div class='player'><img class='float-left' src='/images/league/l1.png' width='41' height='35'/><div class='blue'>Лига новичков</div> Рейтинг: <b>$ank[liga]</b></br></div><div class='mini-line'></div>";
}
if($ank[liga] > 499 && $ank[liga] < 1500){
echo"<div class='player'><img class='float-left' src='/images/league/l2.png' width='41' height='35'/><div class='blue'>Лига опытных</div> Рейтинг: <b>$ank[liga]</b></br></div><div class='mini-line'></div>";
}
if($ank[liga] > 1499 && $ank[liga] < 3000){
echo"<div class='player'><img class='float-left' src='/images/league/l3.png' width='41' height='35'/><div class='blue'>Лига гладиаторов</div> Рейтинг: <b> $ank[liga]</b></br></div><div class='mini-line'></div>";
}
if($ank[liga] > 2999 && $ank[liga] < 10000){
echo"<div class='player'><img class='float-left' src='/images/league/l4.png' width='41' height='35'/><div class='blue'>Лига героев</div> Рейтинг: <b> $ank[liga]</b></br></div><div class='mini-line'></div>";
}
if($ank[liga] > 9999 && $ank[liga] < 100000){
echo"<div class='player'><img class='float-left' src='/images/league/l5.png' width='41' height='35'/><div class='blue'>Лига богов</div> Рейтинг: <b>$ank[liga]</b></br></div><div class='mini-line'></div>";
}
echo "<div class='player'>";
echo "<img src='/images/icon/tournament.png'> Статус: <b>$status</b> ($k_bashni)<br>";
echo "<img src='/images/icon/sumstat.png'> Рейтинг дуэлей: $ank[duel_rating]";
echo "</div></div></div></div></div></div></div>";
require_once H.'core/foot.php';
?>