Файл: tankon.mobi/tanks/info.php
Строк: 670
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
include_once '../sys/inc/thead.php';
err();
aut();
include_once 'function.php';
if (isset($user))$ank['id']=$user['id'];
if (isset($_GET['id']))$ank['id']=intval($_GET['id']);
$coes = mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id`='".$ank['id']."'"));
if ($coes==0){header ("Location: /profile");}
$ank=get_user($ank['id']);
$tankss_code = mysql_fetch_array(mysql_query("SELECT * FROM `tanks` WHERE `id`='".$ank['id']."'"));
$tank_lins = mysql_fetch_array(mysql_query("SELECT * FROM `tanks_magazin` WHERE `id`='".$tankss_code['tank']."'"));
$avatar = mysql_fetch_array(mysql_query("SELECT * FROM `tanks_ava` WHERE `id`='".$tankss_code['ava']."'"));
$uctu=mysql_fetch_array(mysql_query("SELECT * FROM `collective_user` WHERE `id_user` = '$ank[id]'"));
$uct=mysql_fetch_array(mysql_query("SELECT * FROM `collective` WHERE `id` = '$uctu[id_collective]'"));
if(isset($_GET['inct']) && $mcu['status']<=3 && isset($mc) && $tankss_code['clan']==0 && $tankss_code['level']>=3){
if(mysql_result(mysql_query("SELECT COUNT(`id`) FROM `collective_invite` WHERE `id_user` = '".$ank['id']."'"), 0)==0){
if($mc['users']>=$mc['users_max']){err_game("В клане нет свободных мест!");}
else {
mysql_query("INSERT INTO `collective_invite` SET `id_user` = '$ank[id]', `id_collective` = '$mc[id]', `id_who` = '$tanks_code[id]', `time` = '$time'");
err_game("Приглашение выслано!");}
}else{err_game("".($ank['pol']==1?'Этому танкисту':'Танкистке')." уже выслано приглашение");}
}
if ($user['id']!=$ank['id']) {
if($tankss_code['boy']>=50 && $tankss_code['boy']<=99 && $tankss_code['help_user']<1){
$helps='Помыть танк';
if(isset($_GET['help'])){
mysql_query("UPDATE `tanks` SET `help_user` = '1', `rating` = `rating`+'2500' WHERE `id_u` = '$tankss_code[id]'");
$soob_help="Игрок с ником [url=http://tankon.mobi/profile?id=".$tanks_code['id']."]".$us_code['nick']."[/url] помыл вам танк, [imgs]http://tankon.mobi/images/icons/exp.png[/imgs] +2500 опыта!";
mysql_query("INSERT INTO `kolhoz_mail` (`id_user`, `id_kont`, `msg`, `time`, `type`) values('$ank[id]', '0', '".my_esc($soob_help)."', '$time', 'to')");
$soob_you_help="Вы помогли игроку с ником [url=http://tankon.mobi/profile?id=".$ank['id']."]".$ank['nick']."[/url], [imgs]http://tankon.mobi/images/icons/exp.png[/imgs] +2500 опыта!";
mysql_query("INSERT INTO `kolhoz_mail` (`id_user`, `id_kont`, `msg`, `time`, `type`) values('$tanks_code[id]', '0', '".my_esc($soob_you_help)."', '$time', 'to')");
mysql_query("UPDATE `tanks` SET `rating` = `rating`+'2500' WHERE `id_u` = '$tanks_code[id]'");
mysql_query("UPDATE `zadan` SET `nachalo`=`nachalo`+'1' WHERE `id_user`='".$user['id']."' AND `type`='10'");
header("Location:/profile?id=".$ank['id']."");
}
}
elseif($tankss_code['boy']>=100 && $tankss_code['boy']<=149 && $tankss_code['help_user']<2){
$helps='Осмотреть и смазать танк';
if(isset($_GET['help'])){
$soob_help="Игрок с ником [url=http://tankon.mobi/profile?id=".$tanks_code['id']."]".$us_code['nick']."[/url] осмотрел, а потом смазал вам танк, [imgs]http://tankon.mobi/images/icons/exp.png[/imgs] +5000 опыта!";
mysql_query("INSERT INTO `kolhoz_mail` (`id_user`, `id_kont`, `msg`, `time`, `type`) values('$ank[id]', '0', '".my_esc($soob_help)."', '$time', 'to')");
$soob_you_help="Вы помогли игроку с ником [url=http://tankon.mobi/profile?id=".$ank['id']."]".$ank['nick']."[/url], [imgs]http://tankon.mobi/images/icons/exp.png[/imgs] +5000 опыта!";
mysql_query("INSERT INTO `kolhoz_mail` (`id_user`, `id_kont`, `msg`, `time`, `type`) values('$tanks_code[id]', '0', '".my_esc($soob_you_help)."', '$time', 'to')");
mysql_query("UPDATE `tanks` SET `help_user` = '2', `rating` = `rating`+'5000' WHERE `id_u` = '$tankss_code[id]'");
mysql_query("UPDATE `tanks` SET `rating` = `rating`+'5000' WHERE `id_u` = '$tanks_code[id]'");
mysql_query("UPDATE `zadan` SET `nachalo`=`nachalo`+'1' WHERE `id_user`='".$user['id']."' AND `type`='10'");
header("Location:/profile?id=".$ank['id']."");
}
}
elseif($tankss_code['boy']>=150 && $tankss_code['boy']<=199 && $tankss_code['help_user']<3){
$helps='Заправить танк';
if(isset($_GET['help'])){
mysql_query("UPDATE `tanks` SET `help_user` = '3', `fuel` = `fuel`+'100', `rating` = `rating`+'7500' WHERE `id_u` = '$tankss_code[id]'");
$soob_help="Игрок с ником [url=http://tankon.mobi/profile?id=".$tanks_code['id']."]".$us_code['nick']."[/url] заправил ваш танк на [imgs]http://tankon.mobi/tanks/images/fuel.png[/imgs] 100 топлива, [imgs]http://tankon.mobi/images/icons/exp.png[/imgs] +7500 опыта!";
mysql_query("INSERT INTO `kolhoz_mail` (`id_user`, `id_kont`, `msg`, `time`, `type`) values('$ank[id]', '0', '".my_esc($soob_help)."', '$time', 'to')");
$soob_you_help="Вы помогли игроку с ником [url=http://tankon.mobi/profile?id=".$ank['id']."]".$ank['nick']."[/url], [imgs]http://tankon.mobi/images/icons/exp.png[/imgs] +7500 опыта!";
mysql_query("INSERT INTO `kolhoz_mail` (`id_user`, `id_kont`, `msg`, `time`, `type`) values('$tanks_code[id]', '0', '".my_esc($soob_you_help)."', '$time', 'to')");
mysql_query("UPDATE `tanks` SET `rating` = `rating`+'7500' WHERE `id_u` = '$tanks_code[id]'");
mysql_query("UPDATE `zadan` SET `nachalo`=`nachalo`+'1' WHERE `id_user`='".$user['id']."' AND `type`='10'");
header("Location:/profile?id=".$ank['id']."");
}
}
elseif($tankss_code['boy']>=200 && $tankss_code['help_user']<4){
$helps='Устранить неисправности';
if(isset($_GET['help'])){
$soob_help="Игрок с ником [url=http://tankon.mobi/profile?id=".$tanks_code['id']."]".$us_code['nick']."[/url] устранил неисправности на вашем танке, [imgs]http://tankon.mobi/images/icons/exp.png[/imgs] +10000 опыта!";
mysql_query("INSERT INTO `kolhoz_mail` (`id_user`, `id_kont`, `msg`, `time`, `type`) values('$ank[id]', '0', '".my_esc($soob_help)."', '$time', 'to')");
$soob_you_help="Вы помогли игроку с ником [url=http://tankon.mobi/profile?id=".$ank['id']."]".$ank['nick']."[/url], [imgs]http://tankon.mobi/images/icons/exp.png[/imgs] +10000 опыта!";
mysql_query("INSERT INTO `kolhoz_mail` (`id_user`, `id_kont`, `msg`, `time`, `type`) values('$tanks_code[id]', '0', '".my_esc($soob_you_help)."', '$time', 'to')");
mysql_query("UPDATE `tanks` SET `help_user` = '4', `rating` = `rating`+'10000' WHERE `id_u` = '$tankss_code[id]'");
mysql_query("UPDATE `tanks` SET `rating` = `rating`+'10000' WHERE `id_u` = '$tanks_code[id]'");
mysql_query("UPDATE `zadan` SET `nachalo`=`nachalo`+'1' WHERE `id_user`='".$user['id']."' AND `type`='10'");
header("Location:/profile?id=".$ank['id']."");
}
}
else{$helps=0;}
}
if(isset($_GET['del_teh']) && $tanks_code['status']>1){
mysql_query("UPDATE `tanks` SET `tehpodd` = '0' WHERE `id_u` = '$ank[id]'");
header("Location:/profile?id=".$ank['id']."");
}
if(isset($_GET['teh']) && $tanks_code['status']>1){
mysql_query("UPDATE `tanks` SET `tehpodd` = '1' WHERE `id_u` = '$ank[id]'");
header("Location:/profile?id=".$ank['id']."");
}
if(isset($_GET['del_mod']) && $tanks_code['status']>1){
mysql_query("UPDATE `tanks` SET `status` = '0' WHERE `id_u` = '$ank[id]'");
header("Location:/profile?id=".$ank['id']."");
}
if(isset($_GET['mod']) && $tanks_code['status']>1){
mysql_query("UPDATE `tanks` SET `status` = '1' WHERE `id_u` = '$ank[id]'");
header("Location:/profile?id=".$ank['id']."");
}
if(isset($_GET['sn_ban']) && $tanks_code['status']>0){
echo'<table><tbody><tr><td class="w50"><a class="simple-but border" href="/profile?id='.$ank['id'].'&sn_ban&ok">
<span><span>Снять</span></span></a></td>
<td class="w50"><a class="simple-but border" href="/profile?id='.$ank['id'].'">
<span><span>Не снимать</span></span></a></td>
</tr></tbody></table></div></div></div>';
if(isset($_GET['ok'])){
mysql_query("UPDATE `tanks` SET `bans`='0' WHERE `id` = '".$ank['id']."'");
mysql_query("INSERT INTO `tanks_admin` (`ban`,`user`,`act`) VALUES ('".$user['id']."','".$ank['id']."','снял бан')");
header("Location:/profile?id=".$ank['id']."");}
}
echo '<div class="trnt-block p5" style="margin-bottom:5px;">';
echo''.ansc($ank['id']).'';
if(mysql_result(mysql_query("SELECT COUNT(`id`) FROM `collective_user` WHERE `id_user` = '$ank[id]'"),0)!=0){
$uctu=mysql_fetch_array(mysql_query("SELECT * FROM `collective_user` WHERE `id_user` = '$ank[id]'"));
$uct=mysql_fetch_array(mysql_query("SELECT * FROM `collective` WHERE `id` = '$uctu[id_collective]'"));
$uctu['statuss_name']='Новобранец';
if($uctu['status']==1){$info_cl='Командир';}
elseif($uctu['status']==2){$info_cl='Зам. командира';}
elseif($uctu['status']==3){$info_cl='Вербовщик';}
elseif($uctu['status']==4){$info_cl=($ank['pol']==1?'Солдат':'Медсестра');}
elseif($uctu['status']>4){$info_cl='Новобранец';}
if ($uctu['status']!=1 && $mcu['status']<=2 && $mcu['id_collective']==$uctu['id_collective']){
echo' - <a href="/adm_clan?id='.$ank['id'].'"><span class="blue">'.$info_cl.'</span></a>';}else{
echo' - <span class="green1">'.$info_cl.'</span>';
}
}
echo '</div>';
if($helps!='NULL' && $user['id']!=$ank['id']){
echo'<a class="simple-but red" href="/profile?id='.$ank['id'].'&help"><span><span>'.$helps.'</span></span></a></div>';
}
if ($tankss_code['tank']>0){
echo '<div class="trnt-block p5" style="margin-bottom:5px;"><div class="cntr">';
echo '<div class="cntr medium green2 bold"><span><span>'.$tank_lins['name'].'</span></span></div>';
echo'<table><tbody><tr><td>';
if($_SESSION['style']=='web.css'){echo'<div class="medium bold mb10 white">';}else{echo'<div class="white small sh_b bold mb10">';}
echo'
<img src="/images/levels.png" width="14" height="14"> '.$tankss_code['leveltank'].' уровень<br>
<img src="/tanks/images/atack.png" width="14" height="14"> '.atack($tankss_code['id']).' атака<br>
<img src="/tanks/images/bron.png" width="14" height="14"> '.bron($tankss_code['id']).' броня<br>
<img src="/tanks/images/toch.png" width="14" height="14"> '.toch($tankss_code['id']).' точность<br>
<img src="/tanks/images/proch.png" width="14" height="14"> '.proch($tankss_code['id']).' прочность</div></td>
<td class="ta_r">
<div class="clrb"></div><a class="blck thumb fr" href="medals?id='.$tankss_code['id'].'"><img alt="avatar" src="/images/medal.png"><span class="mask1"> </span></a>';
if ($user['id']==$ank['id']){echo'<div class="clrb"></div><a class="blck thumb fr" href="avatars"><img alt="avatar" src="/images/avatar/'.$avatar['screen'].'"><span class="mask1"> </span><div class="clrb"></div></a>';}
else{echo'<div class="clrb"></div><a href="/avafoto?id='.$ank['id'].'"><div class="blck thumb fr"><img alt="avatar" src="/images/avatar/'.$avatar['screen'].'"><span class="mask1"> </span><div class="clrb"></div></a>';}
echo'</td></tr></tbody></table>';
if($_SESSION['style']=='web.css'){echo '<img width="220px" height="220px" src="/web/tanks/'.$tank_lins['screen'].'">';}
else{echo '<img width="170px" height="170px" src="/web/tanks/'.$tank_lins['screen'].'">';}
}
else {
echo '<div class="trnt-block p5" style="margin-bottom:5px;"><img style="max-width:390px;width:100%;border-radius:7px;" w:id="logo" src="/images/notank.png"/>
<div class="small bold cD2 sh_b pb5 pt5"><center>У игрока '.$ank['nick'].' нет танка.</center></div>';
}
$modul= mysql_query("SELECT * FROM `tanks_sclad` where `user`='".$ank['id']."' AND `tank`='".$tankss_code['tank']."' ORDER BY id DESC LIMIT 8");
echo'<center>';
while($moduls= mysql_fetch_array($modul)) {
echo'<img class="block_m" height="30" width="30" style="margin-left:3px;" src="/images/magazin/'.$moduls['screen'].'">';
}
echo'</center>';
echo'</div></div></span>';
if ($user['id']!=$ank['id']) {echo '<div class="bot"><table style="margin-bottom:-10px;"><tbody><tr>';
if ($tanks_code['status']>=1 && $tankss_code['bans']==0){echo'<td class="w50 pr1"><a class="simple-but border" href="/ban?id='.$ank[id].'"><span><span>Выдать бан</span></span></a></td>';}
if ($tanks_code['status']>=1 && $tankss_code['bans']>=1){echo'<td class="w50 pr1"><a class="simple-but border" href="/profile?id='.$tankss_code['id'].'&sn_ban"><span><span>Снять бан</span></span></a></td>';}
echo'<td class="w100 pr1"><a class="simple-but border" href="mail?new_msg='.$ank['id'].'"><span><span>Отправить сообщение</span></span></a></td>';
echo'</tr></tbody></table></div>';
if(isset($_GET['pokup'])){
?>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
function calculateBonuses() {
var coinPrice = parseFloat($('#unitpayForm #coinPrice').val());
var coins = parseInt($('#unitpayForm #coins').val());
if (isNaN(coins) || isNaN(coinPrice) || coins <= 0) {
$('#unitpayForm #sum').val('');
return;
}
var price = coins * coinPrice;
if (price > 15000) {
price = 15000;
}
$('#unitpayForm #sum').val(price);
}
$('#unitpayForm input#coins').keyup(function () {
calculateBonuses();
});
calculateBonuses();
$('#unitpayForm').submit(function(){
var sum = parseFloat($('#unitpayForm #sum').val());
if (isNaN(sum) || sum <= 0 || sum > 15000) {
alert('Неверная сумма платежа');
return false;
}
});
});
</script>
<?
echo'<div class="trnt-block" style="margin-bottom:5px;margin-top:5px;"><div class="wrap-content"><form id="unitpayForm" action="https://unitpay.ru/pay/2755-da19b" method="post"><label for="account"></label>
<label class="white" for="coins">Введите колл-во рублей:<br></label><input type="hidden" id="sum" name="sum" value=""><input type="hidden" id="coinPrice" name="coinPrice" value="1">
<input class="greensmall" type="text" id="coins" name="coins" value="100" required="required"><input type="hidden" name="account" required="required" value="'.$tankss_code['id'].'" id="account">
<input type="hidden" name="desc" value="Покупка рублей"><input class="simple-but mb0 inbl" style="height:28px" type="submit" value="Оплатить"></form>
</div></div></div>';
echo'<div class="bot" ><td class="w100 pr1"><a class="simple-but border" href="/profile?id='.$tankss_code['id'].'"><span><span>Скрыть</span></span></a></td></div>';
}else{echo'<table style="margin-bottom:-10px;"><tbody><tr><div class="bot"><td class="w100 pr1"><a class="simple-but border" href="/profile?id='.$tankss_code['id'].'&pokup"><span><span>Купить рубли</span></span></a></td></div></tr></tbody></table>';}
echo'<table><tbody><tr><div class="bot"><td class="w100 pr1"><a class="simple-but border" href="/presents?id='.$tankss_code['id'].'&do"><span><span>Подарить подарок</span></span></a></td></div></tr></tbody></table>';}
if ($user['id']==$ank['id']) {
echo'<div class="bot"><td class="w100 pr1"><a class="simple-but border" href="/eki"><span><span>Экипаж</span></span></a></td></div>';
echo'<div class="bot"><td class="w100 pr1"><a class="simple-but border" href="/spec"><span><span>Спецзадания</span></span></a></td></div>';
}
/*Подарки*/
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_gifts` WHERE `id_user` = '".$ank['id']."' "), 0)!=0){
$podar= mysql_query("SELECT * FROM `kolhoz_gifts` where `id_user`='".$ank['id']."' ORDER BY id DESC LIMIT 5");
echo '<a href="/presents?id='.$ank['id'].'"><div class="trnt-block p5" style="margin-bottom:3px;"><div class="small bold white sh_b pb5 pt5 cntr"><div class="inbl"><center>';
while($podars= mysql_fetch_array($podar)) {
$giftsa=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_gift` WHERE `id` = '$podars[id_gift]'"));
echo'<img class="block_m" height="45" width="45" style="border-radius:10px;margin-left:3px;" src="/images/gifts/'.$giftsa['id'].'.png">';
}
echo'</center></div></div></div></a>';}
/**/
/*Медали*/
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `tanks_medal` WHERE `id_user` = '".$ank['id']."'"), 0)!=0){
$medal= mysql_query("SELECT * FROM `tanks_medal` where `id_user`='".$ank['id']."' ORDER BY id DESC LIMIT 5");
echo '<div class="trnt-block p5" style="margin-bottom:3px;"><div class="small bold white sh_b pb5 pt5"><center>';
while($medals= mysql_fetch_array($medal)) {
$tank_linss = mysql_fetch_array(mysql_query("SELECT * FROM `tanks_magazin` WHERE `id`='".$medals['tank']."'"));
echo'<img class="block_m" height="45" width="45" style="border-radius:10px;margin-left:3px;" src="images/medals/'.$medals['screen'].'" title="'.$medals['name'].' на '.$tank_linss['name'].'">';
}
echo'</center></div></div>';}
/**/
$stats_pob=$tankss_code['win']+$tankss_code['lose']+$tankss_code['nich'];
echo '<div class="trnt-block" style="margin-bottom:5px;">
<div class="small bold white sh_b p5 pt5">
<img src="images/icons/exp.png"> Уровень: '.$tankss_code['level'].'<br> ';
echo'<img src="images/pobeda.png"> <font color="#9ACD32">Побед: <b>'.$tankss_code['win'].'</b></font >
<br><img src="images/lose.png"> <font color="#B22222">Проигрышей: <b>'.$tankss_code['lose'].'</b></font >
<br><img src="images/nich.png"> <font color="#FFA500">Ничьих: <b>'.$tankss_code['nich'].'</b></font >
<br><img src="images/bat.png"><font color="#1874CD"> Боёв: <b>'.$stats_pob.'</b></font >
<br><img src="images/zahod.png"> Заходил'.($ank['pol']==1?'':'а').': <b>'.vremja($ank['date_last']).'</b><br><img src="images/regas.png"> Дата рег: <b>'.vremja($ank['date_reg']).'</b>
';
if(isset($_GET['friend'])){if(mysql_result(mysql_querll("SELECT COUNT(`id`) FROM `kolhoz_friends` WHERE `id_user` = '$user[id]' AND `id_ank` = '$ank[id]'"),0)==0){if(mysql_result(mysql_querll("SELECT COUNT(`id`) FROM `kolhoz_blacklist` WHERE `id_user` = '$user[id]' AND `id_ank` = '$ank[id]'"),0)!=0)mysql_querll("DELETE FROM `kolhoz_blacklist` WHERE `id_user` = '$user[id]' AND `id_ank` = '$ank[id]'"); mysql_querll("INSERT INTO `kolhoz_friends` SET `id_user` = '$user[id]', `id_ank` = '$ank[id]'");}
else mysql_querll("DELETE FROM `kolhoz_friends` WHERE `id_user` = '$user[id]' AND `id_ank` = '$ank[id]'"); echo mysql_error(); }
elseif(isset($_GET['blacklist'])) {if(mysql_result(mysql_querll("SELECT COUNT(`id`) FROM `kolhoz_blacklist` WHERE `id_user` = '$user[id]' AND `id_ank` = '$ank[id]'"),0)==0){if(mysql_result(mysql_querll("SELECT COUNT(`id`) FROM `kolhoz_friends` WHERE `id_user` = '$user[id]' AND `id_ank` = '$ank[id]'"),0)!=0)mysql_querll("DELETE FROM `kolhoz_friends` WHERE `id_user` = '$user[id]' AND `id_ank` = '$ank[id]'"); mysql_querll("INSERT INTO `kolhoz_blacklist` SET `id_user` = '$user[id]', `id_ank` = '$ank[id]'");}
else mysql_querll("DELETE FROM `kolhoz_blacklist` WHERE `id_user` = '$user[id]' AND `id_ank` = '$ank[id]'"); echo mysql_error(); }
if($ank['id']!=$user['id']){
echo "<br><img alt='' width='20' height='20' src='/images/icons/ignore.png'> <a href='profile?id=$ank[id]&blacklist'><span>".(mysql_result(mysql_query("SELECT COUNT(`id`) FROM `kolhoz_blacklist` WHERE `id_user` = '$user[id]' AND `id_ank` = '$ank[id]' LIMIT 1"),0)==0?"Добавить в ЧС":"Убрать из ЧС")."</span></a>";
echo "<br><img alt='' width='20' height='20' src='/images/icons/favorite.png'> <a href='profile?id=$ank[id]&friend'><span>".(mysql_result(mysql_query("SELECT COUNT(`id`) FROM `kolhoz_friends` WHERE `id_user` = '$user[id]' AND `id_ank` = '$ank[id]' LIMIT 1"),0)==0?"Добавить в друзья":"Убрать из друзей")."</span></a>";
}
if ($user['id']==$ank['id']) {
echo'<br><img src="/images/icons/exp.png"> Опыт: <b>'.$tanks_code['rating'].'</b>';
echo'<br><img src="/tanks/images/icons/silver.png"> Серебра: <b>'.$tanks_code['serebro'].'</b>';
}if($tanks_code['status']>0){echo'<br><img src="/tanks/images/icons/silver.png"> <a href="/adm_user?id='.$ank['id'].'">Редактировать игрока</a>';}
if($tanks_code['status']==2 && $tankss_code['status']==0){echo'<br><img src="/images/icons/favorite.png"> <a href="/profile?id='.$tankss_code['id'].'&mod">Дать модератора</a>';}if($tanks_code['status']==2 && $tankss_code['status']>0){echo'<br><img src="/images/icons/favorite.png"> <a href="/profile?id='.$tankss_code['id'].'&del_mod">Снять модератора</a>';}
if($tanks_code['status']==2 && $tankss_code['tehpodd']==0){echo'<br><img src="/images/icons/favorite.png"> <a href="/profile?id='.$tankss_code['id'].'&teh">Дать тех.поддержку</a>';}if($tanks_code['status']==2 && $tankss_code['tehpodd']!=0){echo'<br><img src="/images/icons/favorite.png"> <a href="/profile?id='.$tankss_code['id'].'&del_teh">Снять тех.поддержку</a>';}
if(isset($mc) && $mcu['status']<=3 && $mc['users']<=$mc['users_max'] && isset($mc) && $tankss_code['clan']==0)echo "<br><img width='16' height='16' src='/images/prof_clan.png'> ".($tankss_code['level']>=3?"<a href='profile?id=$ank[id]&inct'>":"<span>")."Пригласить в клан".($tankss_code['level']>=3?"</a>":"</span> <span class='minor'>(уровень ниже 3-тего)</span>")."";
$time=time();
$keys_vbane=time_left($tankss_code['bans']-$time);
if($tankss_code['bans']>1){
echo'<br><img src="/tanks/images/ban.png"> В бане еще: ';
echo'<b>'.$keys_vbane.'</b>, причина '.$tankss_code['prich_ban'].'';
}
if($tankss_code['bans']==1){
echo'<br><img src="/tanks/images/ban.png"> В бане ';
echo'<b>навсегда</b>, причина '.$tankss_code['prich_ban'].'';
}
if ($tanks_code['status']>=1){
echo'<br><img src="/tanks/images/ban.png"> IP: <b>'.$ank['ip'].'</b><br>';
if ($user['id']!=$ank['id']) {
$mult=mysql_query("SELECT * FROM `user` WHERE `ip`='".$ank['ip']."' AND `id`!='".$ank['id']."' AND `id`>'1'");
while($multi= mysql_fetch_array($mult)) {
echo'<a href="/profile?id='.$multi['id'].'">'.$multi['nick'].'</a>,';
}
}}
echo'</div>
</div>
</div>
</div> </div>
</div></div>
</div>
</div></div>
</div></span></span></span>
</div>
</div>
</div>
</div>
</div>
</div>';
include_once 'foots.php';
?>