Added module interval control and percentage checkbox

This commit is contained in:
Calvo 2021-12-02 14:12:19 +01:00
parent a38503491a
commit 66c4087679
1 changed files with 17 additions and 2 deletions

View File

@ -14,6 +14,7 @@
enterprise_include_once('include/functions_policies.php');
enterprise_include_once('godmode/agentes/module_manager_editor_prediction.php');
require_once 'include/functions_agents.php';
ui_require_jquery_file('validate');
$disabledBecauseInPolicy = false;
$disabledTextBecauseInPolicy = '';
@ -71,12 +72,15 @@ if ($row !== false && is_array($row)) {
break;
case MODULE_PREDICTION_TRENDING:
$selected = 'module_selected';
case MODULE_PREDICTION_MODULE:
$selected = 'trending_selected';
$prediction_module = $custom_integer_1;
break;
case MODULE_PREDICTION_MODULE:
$selected = 'module_selected';
$prediction_module = $custom_integer_1;
break;
default:
$prediction_module = $custom_integer_1;
@ -201,6 +205,17 @@ if ($synthetic_module_form !== ENTERPRISE_NOT_HOOK) {
push_table_simple($data, 'synthetic_module');
}
$trending_module_form = enterprise_hook('get_trending_module_form', [$custom_string_1]);
if ($trending_module_form !== ENTERPRISE_NOT_HOOK) {
$data = [];
$data[0] = '';
$data[1] .= $trending_module_form;
push_table_simple($data, 'trending_module');
}
// Netflow modules are an Enterprise feature.
$netflow_module_form = enterprise_hook('get_netflow_module_form', [$custom_integer_1]);
if ($netflow_module_form !== ENTERPRISE_NOT_HOOK) {