Файл: modules/community/includes/administration.php
Строк: 42
<?php
/**
* This file is part of JohnCMS Content Management System.
*
* @copyright JohnCMS Community
* @license https://opensource.org/licenses/GPL-3.0 GPL-3.0
* @link https://johncms.com JohnCMS Project
*/
declare(strict_types=1);
use IlluminatePaginationLengthAwarePaginator;
use JohncmsUsersUser;
defined('_IN_JOHNCMS') || die('Error: restricted access');
/**
* @var PDO $db
* @var JohncmsSystemLegacyTools $tools
* @var JohncmsSystemUsersUser $user
* @var JohncmsSystemViewRender $view
*/
/** @var LengthAwarePaginator $users */
$users = (new User())
->approved()
->where('rights', '>=', 1)
->orderBy('rights', 'desc')
->paginate($user->config->kmess);
$nav_chain->add(__('Administration'));
echo $view->render(
'users::users',
[
'pagination' => $users->render(),
'title' => __('Administration'),
'page_title' => __('Administration'),
'total' => $users->total(),
'list' => $users->items(),
]
);