[*] новые фичи 3
This commit is contained in:
1 parent
7fc566430f
commit
259575f2b1
8 files changed
+316
-119
No files matched your search
@@ -62,14 +62,15 @@
|
||||
|
||||
//echo str_replace('<table style="', '<table style="width:100%;', SystemFunctions::arrayToTable(Cache::getCacheInfo(), 'Информация о кэше'));
|
||||
|
||||
$count = (int)(DB::getInstance())->query('select count(*) as count from d_users')[0]['count'];
|
||||
$count = (int)(DB::getInstance())->query('select count(*) as count from 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);
|
||||
$arData = (DB::getInstance())->query('select * from 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'],
|
||||
@@ -80,6 +81,8 @@ $arData = (DB::getInstance())->query('select * from d_users order by id desc lim
|
||||
'image' => $element['image'],
|
||||
'token' => $element['token'],
|
||||
'last_active' => $element['last_active'],
|
||||
'groups' => array_map(function($element){ return User::getAllGroups()[$element]; }, (new User($element['id']))->getGroups()),
|
||||
//'groups_human' => User::getAllGroups(),
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user