Файл: adm_panel/banlist.php
Строк: 67
<?php
require_once '../sys/inc/start.php';
require_once '../sys/inc/compress.php';
require_once '../sys/inc/sess.php';
require_once '../sys/inc/settings.php';
require_once '../sys/inc/db_connect.php';
require_once '../sys/inc/ipua.php';
require_once '../sys/inc/fnc.php';
require_once '../sys/inc/adm_check.php';
require_once '../sys/inc/user.php';
user_access('adm_banlist', null, 'index.php?' . SID);
adm_check();
$set['title'] = 'Банлист';
require_once '../sys/inc/thead.php';
err();
aut();
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `ban` WHERE `time` > '$time'"), 0);
$k_page = k_page($k_post, $set['p_str']);
$page = page($k_page);
$start = $set['p_str'] * $page - $set['p_str'];
$q = mysql_query("SELECT * FROM `ban` WHERE `time` > '$time' ORDER BY `id` DESC LIMIT $start, $set[p_str]");
if ($k_post == 0) {
echo "<table class = 'foot'><tr><td class = 'null'>";
echo "<img src = '/style/icons/bullet_error.png' /> Нет нарушений";
echo "</td></tr></table>";
}
while ($ban = mysql_fetch_assoc($q)) {
$ank = get_user($ban['id_user']);
echo "<table class = 'foot'><tr><td class = 'icon14'>";
avatar($ank['id'], '48');
echo " </td><td class='null'>n";
user($ank['id']) . "n";
echo "<br />";
$user_ban = get_user($ban['id_ban']);
echo "Забанен до " . vremja($ban['time']) . ":<br />n";
echo "" . output_text($ban['prich']) . " ($user_ban[nick])<br />n";
if ((isset($access['ban_set']) || isset($access['ban_unset'])) && ($ank['level'] < $user['level'] || $user['level'] == 4)) {
echo "<a href='/adm_panel/ban.php?id=$ank[id]'>Подробно</a><br />n";
}
echo "</td></tr></table>n";
}
if ($k_page > 1) {
str("?", $k_page, $page);
}
if (user_access('adm_panel_show')) {
echo "<div class='foot'>n";
echo "«<a href='/adm_panel/'>Панель управления</a><br />n";
echo "</div>n";
}
require_once '../sys/inc/tfoot.php';