Added boolean modules to agent graphs section

This commit is contained in:
Arturo Gonzalez 2017-05-10 13:29:03 +02:00
parent 71f8f29107
commit 6815a69bfc
1 changed files with 32 additions and 1 deletions

View File

@ -75,9 +75,35 @@ $modules_others = agents_get_modules(
'<>21', // != async_proc
'<>31') // != web_proc
));
if (empty($modules_others))
$modules_others = array();
$modules_boolean = agents_get_modules(
$id_agente, false, array(
'id_tipo_modulo' => array(
'<>1',
'<>3',
'<>4',
'<>5',
'<>7',
'<>8',
'<>10',
'<>11',
'<>15',
'<>16',
'<>17',
'<>22',
'<>23',
'<>24',
'<>30',
'<>32',
'<>33',
'<>100')
));
if (empty($modules_boolean))
$modules_boolean = array();
//Cleaned the duplicate $modules and other things
$modules_others = array_diff_key($modules_others,
$modules_networkmap_no_proc);
@ -91,10 +117,15 @@ foreach ($modules_networkmap_no_proc as $i => $m) {
'optgroup' => __('Modules network no proc'),
'name' => $m);
}
foreach ($modules_boolean as $i => $m) {
$modules_boolean[$i] = array(
'optgroup' => __('Modules boolean'),
'name' => $m);
}
$list_modules = $modules_networkmap_no_proc +
$modules_others;
$modules_others + $modules_boolean;
//----------------------------------------------------------------------
if (empty($modules)) {