Файл: adbio.ru/usres.php
Строк: 276
<?php
require_once '../core/system.php';
echo only_reg();
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'])."'"));
$symm = $ank[ubks] + $ank[ubkh] + $ank[ubkl] + $ank[ubkz];
$symms = $ank[speed] + $ank[vinos];
$symma = $ank[sila] + $ank[lovk] + $ank[zashit] + $ank[max_healh];
}else{
$_SESSION['err'] = "Игрок не найден";
header('Location: /');
exit();
}
$header = 'Игрок '.$ank['nick'];
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'>";
echo online($ank[id]);
echo " <b>$ank[nick]</b> <img src='/images/icon/level.png' alt=''/> $ank[level] ур.
<img src='/style/runi/$ank[avaruns].png' width='15' height='15' alt=''/> <img src='/style/runi/$ank[avarunh].png' width='15' height='15' alt=''/> <img src='/style/runi/$ank[avarunl].png' width='15' height='15' alt=''/> <img src='/style/runi/$ank[avarunz].png' width='15' height='15' alt=''/>";
if($ank['klan'] > "0")
{
echo "<br><img src='/images/icon/clan.png' alt=''/> Орден <b>$ank[name_klan] <font color=gray>$ank[prava_name]</font></b>";} echo "<br><p><img src='/style/avatar/".($ank['pol'] == 0 ? "zj" : "m")."/$ank[avatar].png' width='110' height='150' style='margin-right:10px;margin-top:3px;' alt=''/ align='left' ><br><img src='/images/icon/str.png' alt='str'/> Сила: $ank[sila]
<br>
<img src='/images/icon/vit.png' alt='vit'/> Здоровье: $ank[max_health]
<br>
<img src='/images/icon/agi.png' alt='agi'/> Ловкость: $ank[lovk]
<br>
<img src='/images/icon/def.png' alt='def'/> Защита: $ank[zashit]
<br>
<img src='/images/icon/mana.png' alt='mana'/> Мана: $ank[max_mana]<br>
<img src='/images/icon/train.png'> Параметры: $ank[param]<br>
<br><img src='/style/avatar/sila/$ank[avas].png' width='25' height='25' alt=''/> <img src='/style/avatar/health/$ank[avah].png' width='25' height='25' alt=''/> <img src='/style/avatar/lovk/$ank[aval].png' width='25' height='25' alt=''/> <img src='/style/avatar/zashit/$ank[avaz].png' width='25' height='25' alt=''/> <font color=orange> +$symm</font>
<br><br>
</p>";
echo "<div style='clear:both;'></div>
</div>";
echo "</div>";
if($user[id] == $ank[id]){
echo "<div class='mini-line'></div>";
echo "<div class='player menuList'>";
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 "</div>";
//echo "<div class='mini-line'></div>";
}else{
echo "</div>";
echo "<div class='mini-line'></div>";
echo "<div class='player menuList'>";
if($ank[idkon] > 0)echo "<li><p><img src='/style/kon/$ank[avakon].png' width='40' height='40' alt=''/ align='left' >Скакун ,,$ank[nick],, <br><img src='/images/icon/level.png' alt=''/> $ank[levelkon] ур. <font color=darkred>+ $symms</p></font></li>";
echo "<li><a href='/user/bashni.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>";
echo "</div>";
echo "<div class='mini-line'></div>";
}
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>";
echo "<li><a href='/user/train.php'><img src='/images/icon/train.png'>Тренировка</a></li>";
echo "<li><a href='/user/komplekt.php'><img src='/images/icon/arrow.png'>Мой комплект</a></li>";
if($ank[idkon] > 0)echo "<li><a href='/user/kon.php'><img src='/images/icon/konis.png'>Мой Скакун</a></li>";
echo "</div>";
echo "<div class='mini-line'></div>
<div class='player menuList'>
<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/almaz.png' alt='silver'/> Алмазы: ".number_format($ank[almaz],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>";
}else{
echo "<div class='player menuList'>";
echo "<a href='/duels.php?attack=$ank[id]'><img src='/images/icon/sumstat.png'>Вызвать на дуэль</a>";
////echo "<a href='/arka.php?attack=$ank[id]'><img src='/images/icon/arena.png'>Сразиться на арене</a>";
echo "<div class='mini-line'></div>";
///echo "<a href='/duels.php?attack=$ank[id]'><img src='/images/icon/sumstat.png'>Вызвать на дуэль</a>";
//echo "<div class='mini-line'></div>";
///if($ank[klan] == 0)if($user[prava_klan] > 3){echo "<a href='/klan/prig.php?id=$ank[id]'><img src='/images/icon/clan.png'>Пригласить в орден</a>";
//echo "<div class='mini-line'></div>";}
if($user[prava] == 245345)echo "<a href='/Administration/userrecs.php?id=$ank[id]'><img src='/images/icon/arrow.png'>Редактировать игрока</a>";
if($user[prava] == 5)echo "<a href='/Admin/userrecs.php?id=$ank[id]'><img src='/images/icon/arrow.png'>Редактировать игрока</a>";
echo "<div class='mini-line'></div>";
if($user[prava] > 3)if($ank[ban] > 0)echo "Под арестом!<a href='/moder/razban.php?id=$ank[id]'><img src='/images/icon/arrow.png'> Снять бан?</a>";
if($ank[prava] < $user[prava])if($user[prava] > 3)if($ank[ban] < 1){echo "<a href='/moder/ban.php?id=$ank[id]'><img src='/images/icon/arrow.png'>Забанить!</a>";
echo "</div>";
echo "<div class='mini-line'></div>";
echo "<div class='player'><img src='/images/icon/arrow.png'> IP: ".$ank['ip']." [<a href='/Admin/banip.php?id=$ank[id]'>бан</a>]</div>";}
}
echo "<div class='mini-line'></div>";
echo "<div class='player'>";
echo "<font color=gray> <img src='/images/icon/tournament.png'> Рейтинг арены: $ank[arka_reyt] <br>";
echo " <img src='/images/icon/tournament.png'> Рейтинг дуэлей: $ank[duel_rating] </font> ";
echo "</div></div></div></div></div></div></div>";
require_once H.'core/foot.php';
?>