Файл: app/admin/list/banned.php
Строк: 13
<?php
Core::only('level', 1);
$smarty->header('Заблокированные');
$all = $db->query("SELECT `id` FROM `users_block` WHERE `time_ban` > '" . time() ."'")->rowCount();
$pages = new Pages($all, $config['pages']);
$query = $db->query("SELECT * FROM `users_block` WHERE `time_ban` > '" . time() ."' ORDER BY `id` DESC LIMIT " . $start . ", " . $config['pages']);
while ($list = $query->fetch())
{
$posts[] = [
'image' => User::photo($list['id_profile']),
'title' => User::login($list['id_profile']). ' ' . Lang::word('выдал') . ' ' . User::login($list['id_user']),
'post' => Filter::output($list['text']),
'time' => Core::time($list['time'])
];
}
if ($all == 0)
$posts[] = [
'title' => Lang::word('Нет пользователей.')
];
$smarty->assign([
'post' => $posts
]);
$smarty->display('posts.tpl');
$pages->view('?');
$smarty->footer();