-
-
- ';
- if (User::isAuthorized()) {
- global $USER;
- echo str_replace(
- 'getAllUserData(), 'Информация о пользователе')
- );
- }
-
- //echo str_replace('query('select count(*) as count from d_users')[0]['count'];
- Pagination::execute($_REQUEST['page'], $count, 2);
- $limit = Pagination::getLimit();
-
- $arData = (DB::getInstance())->query('select * from d_users order by id desc limit ' . $limit);
-
- $arResult = [];
- foreach ($arData as $element) {
- //(new User($element['id']))->addToGroup(2);
- $arResult[$element['id']] = [
- 'id' => $element['id'],
- 'login' => $element['login'],
- //'password' => $element['password'],
- 'name' => $element['name'],
- 'email' => $element['email'],
- 'image' => $element['image'],
- 'token' => $element['token'],
- 'last_active' => $element['last_active'],
- 'groups' => array_map(function ($element) {
- return Roles::getAllRoles()[$element];
- }, (new User($element['id']))->getRolesObject()->getRoles()),
- //'groups_human' => User::getAllGroups(),
-
- ];
- }
- echo '';
-
- echo str_replace('
-
-
-
-
-
-
-
-
\ No newline at end of file