Merge branch 'ent-11127-poner-el-aviso-de-cantidad-de-modulos-en-cola-dinamico' into 'develop'
Ent 11127 poner el aviso de cantidad de modulos en cola dinamico See merge request artica/pandorafms!6489
This commit is contained in:
commit
e7ad23c477
|
@ -179,7 +179,7 @@ foreach ($servers as $server) {
|
|||
}
|
||||
|
||||
$data[7] = '';
|
||||
if ($server['queued_modules'] > 500) {
|
||||
if ($server['queued_modules'] >= $config['number_modules_queue']) {
|
||||
$data[7] .= '<div class="inline"><a onclick="show_dialog();" >'.html_print_image(
|
||||
'images/info-warning.svg',
|
||||
true,
|
||||
|
|
|
@ -766,6 +766,16 @@ $table->data[$i][] = html_print_label_input_block(
|
|||
true
|
||||
)
|
||||
);
|
||||
$table->data[$i++][] = html_print_label_input_block(
|
||||
__('Number of modules in queue'),
|
||||
html_print_input_number(
|
||||
[
|
||||
'name' => 'number_modules_queue',
|
||||
'min' => 0,
|
||||
'value' => $config['number_modules_queue'],
|
||||
]
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
echo '<form class="max_floating_element_size" id="form_setup" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/setup&section=general&pure='.$config['pure'].'">';
|
||||
|
|
|
@ -371,6 +371,10 @@ function config_update_config()
|
|||
$error_update[] = __('show_experimental_features');
|
||||
}
|
||||
|
||||
if (config_update_value('number_modules_queue', get_parameter('number_modules_queue'), true) === false) {
|
||||
$error_update[] = __('number_modules_queue');
|
||||
}
|
||||
|
||||
if (config_update_value('console_log_enabled', get_parameter('console_log_enabled'), true) === false) {
|
||||
$error_update[] = __('Console log enabled');
|
||||
}
|
||||
|
@ -2441,6 +2445,10 @@ function config_process_config()
|
|||
config_update_value('show_experimental_features', 0);
|
||||
}
|
||||
|
||||
if (!isset($config['number_modules_queue'])) {
|
||||
config_update_value('number_modules_queue', 500);
|
||||
}
|
||||
|
||||
if (!isset($config['agent_vulnerabilities'])) {
|
||||
config_update_value('agent_vulnerabilities', 1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue