Файл: plugins/page/users.list.php
Строк: 5
<?php
$title = 'Пользователи';
require (SYS.'head.php');
$all = core::count('users');
$pages = new pages($all, $set['user_pages']);
$query = $db->query("SELECT `time_reg`, `id` FROM `users` ORDER BY `id` DESC LIMIT $start, $set[user_pages]");
while ($list = $query->fetch_assoc())
{
$posts[] = [
'image' => user::photo($list['id']),
'title' => user::login($list['id']),
'post' => 'Регистрация: '.core::time($list['time_reg']),
];
}
if ($all == 0)
$posts[] = [
'title' => 'Нет пользователей.'
];
$smarty->assign('post', $posts);
$smarty->display('posts.tpl');
$pages->view('?');
require (SYS.'foot.php');