Файл: public_html/modules/user.php
Строк: 179
<?php
include_once ('../core/base.php');
falseauth();
?>
<style>
.example3 .examples_text-1 {
display: block;
position: absolute;
font-size: 20px;
left: 0;
bottom: 76%;
width: 100%;
height: 10%;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: #fff;
padding: 0px;
}
.example3 {
display: inline-block;
position: relative;
width: 100%;
}
.example3 .examples_text-9 {
display: block;
position: absolute;
font-size: 24px;
left: 0;
bottom: 40%;
width: 98%;
height: 5%;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: #fff;
}
.dummy {
width: auto;
text-align: center;
margin-left: auto;
margin-right: auto;
}
</style>
<?
$id = fl($_GET['id']);
$a = $base -> query("SELECT * FROM `users` WHERE `id` = '".$id."' LIMIT 1") -> fetch_assoc();
if($a['alliance_id'] != 0)
{
$allianceInfo = $db->query("SELECT * FROM `alliances` WHERE `id` = '".$a['alliance_id']."'")->fetch_object();
}
if($a == 0) header('Location: /');
$header = $a['login'];
include_once ('../core/head.php');
if(isset($_GET['abuse'])){
if(isset($_REQUEST['success'])){
$abuse['abuse'] = fl($_POST['abuse']);
$abuse['comment'] = fl($_POST['comment']);
$abuse['time'] = time();
$abuse['id_user'] = fl($u['id']);
$abuse['id_abuse'] = fl($a['id']);
$abuse['success'] = '0';
if($a['id'] == $u['id']) error('Нельзя отправлять жалобу на самого себя');
else {
$base -> query("INSERT INTO `abuse` SET
`id_user` = '".$abuse['id_user']."',
`id_abuse` = '".$abuse['id_abuse']."',
`comment` = '".$abuse['comment']."',
`abuse` = '".$abuse['abuse']."',
`success` = '".$abuse['success']."',
`time` = '".$abuse['time']."'
");
error('Жалоба успешно отправлена администрации');
}
}
echo '<div class="b">';
echo 'Жалоба на игрока <b class="txt">'.$a['login'].'</b> <br/>';
echo 'Выберите причину: <br/>';
echo '<form method="POST" action="">';
echo '<select name="abuse">';
echo '<option value="0">Реклама/Спам/Флуд</option>';
echo '<option value="1">Оскорбление</option>';
echo '<option value="2">Обман</option>';
echo '<option value="3">Багоюзерство</option>';
echo '<option value="4">Продажа аккаунта/клана</option>';
echo '</select>';
echo 'Комментарий к жалобе: <br/>';
echo '<textarea name="comment" placeholder="Введите комментарий к жалобе..."></textarea>';
echo '<input type="submit" name="success" value="Отправить">';
echo '</form>';
echo '</div>';
echo '<div class="line"></div>';
echo '<a class="link bradius" href="/user/'.$a['id'].'/"> Вернуться к игроку </a>';
include_once ('core/foot.php');
die();
}
$all = get_max_health($a['id']) + get_max_energy($a['id']) + get_power($a['id']) + get_block($a['id']);
//////////////////////////////////
if($a['admin'] == 1) $adm = '<span class="sup">агент поддержки</span>';
elseif($a['admin'] == 2) $adm = '<span class="mod">модератор</span>';
elseif($a['admin'] == 3) $adm = '<span class="adm">администратор</span>';
else $adm = 'пользователь';
/////////////////////////////////
if($a['save'] == 1){
if($a['demonstime'] >= time()) echo '
<img src="/images/win-d.png" width="100%">';
echo '
<div class="b"><div class = "title">
<center><big>'.$a['login'].' '.$a['level'].' ур.</big></div></center>
';
?>
<table class="dummy">
<tr>
<td class="1"><div class="slot">
<? echo"".getWearedItem($a['id'],'head')." ";?> </td>
<td colspan="2" rowspan="4">
<div class="pic_shd">
<?
echo getAvatar($id);
?>
</div></td>
<td class="1"><div class="slot">
<? echo"".getWearedItem($a['id'],'weapon')." ";?>
</td></td>
</tr><tr>
<td class="1"><div class="slot">
<? echo"".getWearedItem($a['id'],'body')." ";?>
</td>
</td>
<td class="1"><div class="slot">
<? echo"".getWearedItem($a['id'],'boots')." ";?>
</td>
</td>
</tr><tr>
<td class="1"><div class="slot">
<img src="/1-1-1.png" width="40" height="37" alt=""/> </td>
<td class="1"><div class="slot">
<img src="/1-2-0.png" width="40" height="37" alt=""/> </td>
</tr><tr>
<td class="1"><div class="slot">
<img src="/1-3-0.png" width="40" height="37" alt=""/> </td>
<td class="1"><div class="slot">
<img src="/1-4-1.png" width="40" height="37" alt=""/> </td>
</tr> </table>
<?
}
echo '
<div class="menu"><table>
<tr>
<td class="menu-link">
<a href="#"><img src="/images/str.png" width="50px"/> <br>'.get_power($a['id']).'</a>
</td>
<td class="menu-link">
<a href="#"><img src="/images/health.png" width="44px" /><br> '.get_health($a['id']).'</a>
</td>
<td class="menu-link">
<a href="#"><img src="/images/def.png" width="40px" /> <br>'.get_block($a['id']).'</a>
</td>
</tr>
</table>
</div>
</div>
</div>
';
if(isset($allianceInfo))
{
$allianceRanks = [null, 'унтер-офицер', 'младший офицер', 'старший офицер', 'генерал', 'глава'];
echo"<a href = '/alliance/info/".$allianceInfo->id."'><div class = 'ram-two'><div class = 'rang-".$a['alliance_rank']."'>";
echo '<img src="/images/users.png" width="32px"> '.$allianceInfo->name.' '.$allianceInfo->level.' ур. </div></div></a>
';
}
/*
echo'
<center><big><div class = "title">
'.($a['side'] == 'dark' ? '<img src="/images/bt-tirione.png" width="25px"> Тирионец':'<img src="/images/bt-fariase.png" width="25px"> Фариасец').' <br/>
</big></div></center></div>';
*/
if($a['save'] == 0 && $a['id'] == $u['id'])echo '<center><div class="b">Вы не сохранены</div></center> <div class="line"></div>';
$aban = $base -> query("SELECT * FROM `ban` WHERE `id_user` = '".$a['id']."' AND `time_ban` > '".time()."' ORDER BY `id` DESC LIMIT 1") -> fetch_assoc();
if($aban['id']){
if($aban['blocked'] == 'all') $banned = 'заблокирован';
else $banned = 'забанен';
echo '<div class="b txt">';
echo '<center><font color="red"><big> Игрок '.$banned.' за нарушение правил сайта. </big></font> <br/><br/>';
echo 'Выдан: '.tm($aban['time']).' <br/>';
echo 'Окончание: '.tm($aban['time_ban']).' <br/>';
echo 'Заблокировал(а): '.who($aban['id_ban']).' <br/>';
echo 'Причина: '.fl($aban['reason']).'';
echo '</div></center>';
echo '<div class="line"></div>';
}
echo"</div>";
if($a['id'] != $u['id'])echo"<div class = 'b-mini'>";
if($a['id'] != $u['id']) echo '<a class="clicker " href="/mail/new/'.$a['id'].'"> Отправить письмо </a>';
if($a['id'] != $u['id'] && $a['alliance_id'] == 0 && $u['alliance_rank'] >= 4 && $u['alliance_id'] > 0 && $a['level'] > 9) {
?>
<a class="clicker " href="/alliance/invite/<?=$a['id'];?>"> Пригласить в альянс</a>
<?
}
echo"</div>";
if($a['id'] == $u['id']){
echo'<center><div class="menu"><div class="menu-link"><table>';
echo'<td class="menu-link">';
echo'<a href="/settings"><img src="/images/icons/settings.jpg" width="35" height="35" alt=""><br> Настройки</a>';
echo'</td><center><td class="menu-link">';
echo'<a href="/mail"><img src="/images/icons/mail.png" width="45" height="35" alt=""><br> Почта</a></center>';
echo'</td>';
echo'<td class="menu-link">';
echo'<a href="/quit"><img src="/images/icons/out.png" width="35" height="35" alt=""><br> Выход</a>';
echo'</td></tr></table></div></div></center></div>';
} else {
echo '
<center><div class = "b-mini"><a class="clicker _gold" href="/user/'.$a['id'].'/abuse/"> Пожаловаться </a></center><div>';
}
if($u['admin'] >= 1) echo '<div class="b">IP: '.$a['ipus'].'<br>UA: '.$a['ua'].'</div>';
if($a['id'] != $u['id']){
if($u['admin'] > 1){
echo'<center><div class ="b-mini"><a href = "/access/banned/block/'.$a['id'].'" class = "clicker _gold">Наказание игрока</a></center></div>';
}
}
include_once ('../core/foot.php');
?>