Просмотр архива


Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PclZip has a deprecated constructor in /home/usr/data/4elyabinets/mywap.ru/includes/classes/PclZip.php on line 190
image ROTOR CMS 4.5.4

admin/banlist.php (2.14 Kb)
<?php
#---------------------------------------------#
#      ********* RotorCMS *********           #
#           Author  :  Vantuz                 #
#            Email  :  visavi.net@mail.ru     #
#             Site  :  http://visavi.net      #
#              ICQ  :  36-44-66               #
#            Skype  :  vantuzilla             #
#---------------------------------------------#
require_once ('../includes/start.php');
require_once ('../includes/functions.php');
require_once ('../includes/header.php');
include_once ('../themes/header.php');

if (isset($_GET['start'])) {
	$start = abs(intval($_GET['start']));
} else {
	$start = 0;
}

if (is_admin(array(101, 102, 103))) {
	show_title('Список забаненых');

	$total = DB::run() -> querySingle("SELECT count(*) FROM `users` WHERE `users_ban`=? AND `users_timeban`>?;", array(1, SITETIME));

	if ($total > 0) {
		if ($start >= $total) {
			$start = 0;
		}

		$queryusers = DB::run() -> query("SELECT * FROM `users` WHERE `users_ban`=? AND `users_timeban`>? ORDER BY `users_timelastban` DESC LIMIT ".$start.", ".$config['reglist'].";", array(1, SITETIME));

		while ($data = $queryusers -> fetch()) {
			echo '<div class="b">';
			echo user_gender($data['users_login']).' <b>'.profile($data['users_login']).'</b> (Забанен: '.date_fixed($data['users_timelastban']).')</div>';

			echo '<div>До окончания бана осталось '.formattime($data['users_timeban'] - SITETIME).'<br />';
			echo 'Забанил: <b>'.profile($data['users_loginsendban']).'</b><br />';
			echo 'Причина: '.bb_code($data['users_reasonban']).'<br />';
			echo '<img src="/images/img/edit.gif" alt="image" /> <a href="zaban.php?act=edit&amp;uz='.$data['users_login'].'">Редактировать</a></div>';
		}

		page_strnavigation('banlist.php?', $config['banlist'], $start, $total);

		echo 'Всего забанено: <b>'.$total.'</b><br /><br />';

	} else {
		show_error('Пользователей еще нет!');
	}

	echo '<img src="/images/img/panel.gif" alt="image" /> <a href="index.php">В админку</a><br />';

} else {
	redirect('/index.php');
}

include_once ('../themes/footer.php');
?>

image Вернуться
image Категории

  HSDN — Рейтинг сайтов
Евгений Челябинский на сервере Проза.ру   Евгений Челябинский на сервере Стихи.ру

Хосты: 1589 | Хиты: 14256
На сайте: [0] | Все: [38]
Сайт существует: 12 лет, 5 месяцев, 29 дней