mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
wip
This commit is contained in:
parent
c545d3735b
commit
35e99bf01d
@ -116,6 +116,7 @@ class TestController extends CompatController
|
|||||||
{
|
{
|
||||||
$type = $this->params->shiftRequired('type');
|
$type = $this->params->shiftRequired('type');
|
||||||
$objectId = $this->params->shift('object_id');
|
$objectId = $this->params->shift('object_id');
|
||||||
|
$limit = $this->params->shift('limit');
|
||||||
|
|
||||||
$roles = Json::decode(file_get_contents(Icinga::app()->getConfigDir() . '/' . 'roles.json'));
|
$roles = Json::decode(file_get_contents(Icinga::app()->getConfigDir() . '/' . 'roles.json'));
|
||||||
|
|
||||||
@ -131,6 +132,9 @@ class TestController extends CompatController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$query->columns('id');
|
$query->columns('id');
|
||||||
|
if ($limit) {
|
||||||
|
$query->limit((int) $limit);
|
||||||
|
}
|
||||||
|
|
||||||
$userQueries = [];
|
$userQueries = [];
|
||||||
foreach ($roles as $username => $restrictions) {
|
foreach ($roles as $username => $restrictions) {
|
||||||
@ -170,8 +174,9 @@ class TestController extends CompatController
|
|||||||
$query->withColumns($userQueries);
|
$query->withColumns($userQueries);
|
||||||
$query->disableDefaultSort();
|
$query->disableDefaultSort();
|
||||||
|
|
||||||
file_get_contents('http://localhost/');
|
//file_get_contents('http://localhost/');
|
||||||
usleep(200000);
|
//usleep(200000);
|
||||||
|
|
||||||
|
|
||||||
if ($this->params->get('export') === 'sql') {
|
if ($this->params->get('export') === 'sql') {
|
||||||
list($sql, $values) = $query->dump();
|
list($sql, $values) = $query->dump();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user