Файл: vsime.com/system/includes/bans_akt.php
Строк: 59
<?
if (!isset($ban_page))
{
if (mysqli_result("SELECT COUNT(*) FROM `users_ban` WHERE `id_comm` = '0' AND `id_user` = '$user[id]' AND `type` = 'block' AND `forever` = '1' AND `show` = '1'")!=0)
{
ex_head();
$ban = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `users_ban` WHERE `id_comm` = '0' AND `id_user` = '$user[id]' AND `type` = 'block' AND `show` = '1' AND `forever` = '1' ORDER BY `id` DESC LIMIT 1"));
$time_text = "навсегда";
$ban_give = profile($ban['id_ank']);
echo "<div class='mod_grad'>n";
echo "Ваш ник был заблокирован модератором n";
echo profile_icon($ban_give['id']).profile_nick($ban_give['id'], 1).profile_medal($ban_give['id']);
echo " $time_text<br />n";
echo "Причина: ".output_text($ban['msg'], $ban_give['id'])."<br />n";
echo "<a href='/logout.php'>Выход</a>n";
echo "</div>n";
ex_foot();
}
if (mysqli_result("SELECT COUNT(*) FROM `users_ban` WHERE `id_comm` = '0' AND `id_user` = '$user[id]' AND `type` = 'block' AND `time_ban` > '$time' AND `show` = '1'")!=0)
{
$max_time_ban = mysqli_result("SELECT MAX(`time_ban`) FROM `users_ban` WHERE `id_comm` = '0' AND `id_user` = '$user[id]' AND `type` = 'block' AND `time_ban` > '$time' AND `show` = '1' LIMIT 1");
$ban = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `users_ban` WHERE `id_comm` = '0' AND `id_user` = '$user[id]' AND `time_ban` = '$max_time_ban' AND `type` = 'block' AND `time_ban` > '$time' AND `show` = '1' LIMIT 1"));
$time_ban = ($ban['time_ban']-$ban['time'])/3600;
if ($time_ban > 0)$time_text = " $time_ban ч."; else $time_text = "всегда";
$ban_give = profile($ban['id_ank']);
$ban['time_left'] = last_vremja($ban['time_ban']-$time, 1, 1, 1);
ex_head();
echo "<div class='mod_grad'>n";
echo "Ваш ник был заблокирован модератором n";
echo profile_icon($ban_give['id']).profile_nick($ban_give['id'], 1).profile_medal($ban_give['id']);
echo " на$time_text<br />Во время действия блока Вы не сможете пользоваться возможностями сайта.<br />n";
echo "Причина: ".output_text($ban['msg'], $ban_give['id'])."<br />n";
echo "Осталось $ban[time_left]<br />n";
echo "<a href='/logout.php'>Выход</a>n";
echo "</div>n";
ex_foot();
}
}
?>