diff --git a/pandora_console/operation/agentes/graphs.php b/pandora_console/operation/agentes/graphs.php index 99ae7337bd..c72a76671a 100644 --- a/pandora_console/operation/agentes/graphs.php +++ b/pandora_console/operation/agentes/graphs.php @@ -18,7 +18,7 @@ require_once 'include/functions_agents.php'; require_once 'include/functions_custom_graphs.php'; ui_require_javascript_file('calendar'); -if (! check_acl($config['id_user'], $id_grupo, 'AR') && ! check_acl($config['id_user'], 0, 'AW')) { +if (!check_acl($config['id_user'], $id_grupo, 'AR') && !check_acl($config['id_user'], 0, 'AW')) { db_pandora_audit( AUDIT_LOG_ACL_VIOLATION, 'Trying to access (read) to agent '.agents_get_name($id_agente) @@ -53,20 +53,20 @@ $modules_networkmap_no_proc = agents_get_modules( false, [ 'id_modulo' => 2, - // networkmap type + // Networkmap type. 'id_tipo_modulo' => [ '<>2', - // != generic_proc + // != generic_proc '<>6', - // != remote_icmp_proc + // != remote_icmp_proc '<>9', - // != remote_tcp_proc + // != remote_tcp_proc '<>6', - // != remote_tcp_proc + // != remote_tcp_proc '<>18', - // != remote_snmp_proc + // != remote_snmp_proc '<>21', - // != async_proc + // != async_proc '<>31', ], // != web_proc @@ -82,17 +82,17 @@ $modules_others = agents_get_modules( [ 'id_tipo_modulo' => [ '<>2', - // != generic_proc + // != generic_proc '<>6', - // != remote_icmp_proc + // != remote_icmp_proc '<>9', - // != remote_tcp_proc + // != remote_tcp_proc '<>6', - // != remote_tcp_proc + // != remote_tcp_proc '<>18', - // != remote_snmp_proc + // != remote_snmp_proc '<>21', - // != async_proc + // != async_proc '<>31', ], // != web_proc @@ -133,7 +133,7 @@ if (empty($modules_boolean)) { $modules_boolean = []; } -// Cleaned the duplicate $modules and other things +// Cleaned the duplicate $modules and other things. $modules_others = array_diff_key( $modules_others, $modules_networkmap_no_proc @@ -278,7 +278,7 @@ if ($start_date != $current) { } if ($combined) { - // Pass the $modules before the ajax call + // Pass the $modules before the ajax call. echo '
'.html_print_image('images/spinner.gif', true).'
'; } else { foreach ($modules as $id_module) { @@ -296,7 +296,7 @@ echo ''; -// Dialog to save the custom graph +// Dialog to save the custom graph. echo "'; - ?> +html_print_image( + 'images/spinner.gif', + false, + [ + 'style' => 'display: none', + 'class' => 'loading_save', + ] +); +html_print_image( + 'images/ok.png', + false, + [ + 'style' => 'display: none', + 'class' => 'ok_save', + ] +); +html_print_image( + 'images/error_red.png', + false, + [ + 'style' => 'display: none', + 'class' => 'error_save', + ] +); +html_print_button( + __('Save'), + 'save_custom_graph', + false, + 'save_custom_graph_second_step();', + 'class="button_save sub save"' +); +echo ''; +echo ''; +?> + \ No newline at end of file