From 74776d71882af84ba6f1e7eac53e728a3d18d629 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 25 Apr 2013 10:16:41 +0000 Subject: [PATCH] 2013-04-25 Miguel de Dios * godmode/events/custom_events.php, godmode/massive/massive_enable_disable_alerts.php, godmode/massive/massive_edit_agents.php, godmode/massive/massive_delete_modules.php, godmode/massive/massive_add_action_alerts.php, godmode/massive/massive_delete_profiles.php, godmode/massive/massive_delete_alerts.php, godmode/groups/modu_group_list.php, godmode/groups/group_list.php, godmode/reporting/graph_builder.php, godmode/reporting/graphs.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_action.php, include/functions_ui.php, include/functions_graph.php: improved the source code. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8057 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 15 ++++++ .../godmode/alerts/alert_templates.php | 7 ++- .../godmode/alerts/configure_alert_action.php | 4 +- .../godmode/events/custom_events.php | 4 +- pandora_console/godmode/groups/group_list.php | 2 +- .../godmode/groups/modu_group_list.php | 6 +-- .../massive/massive_add_action_alerts.php | 4 +- .../godmode/massive/massive_delete_alerts.php | 10 ++-- .../massive/massive_delete_modules.php | 10 ++-- .../massive/massive_delete_profiles.php | 8 +-- .../godmode/massive/massive_edit_agents.php | 2 +- .../massive/massive_enable_disable_alerts.php | 2 +- .../godmode/reporting/graph_builder.php | 4 +- pandora_console/godmode/reporting/graphs.php | 49 ++++++++++--------- pandora_console/include/functions_graph.php | 16 +++--- pandora_console/include/functions_ui.php | 5 +- 16 files changed, 87 insertions(+), 61 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9e1c29f69b..57ba14568b 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,18 @@ +2013-04-25 Miguel de Dios + + * godmode/events/custom_events.php, + godmode/massive/massive_enable_disable_alerts.php, + godmode/massive/massive_edit_agents.php, + godmode/massive/massive_delete_modules.php, + godmode/massive/massive_add_action_alerts.php, + godmode/massive/massive_delete_profiles.php, + godmode/massive/massive_delete_alerts.php, + godmode/groups/modu_group_list.php, godmode/groups/group_list.php, + godmode/reporting/graph_builder.php, godmode/reporting/graphs.php, + godmode/alerts/alert_templates.php, + godmode/alerts/configure_alert_action.php, include/functions_ui.php, + include/functions_graph.php: improved the source code. + 2013-04-25 Ramon Novoa * pandoradb.sql, diff --git a/pandora_console/godmode/alerts/alert_templates.php b/pandora_console/godmode/alerts/alert_templates.php index 3f7c47999c..84a69df467 100644 --- a/pandora_console/godmode/alerts/alert_templates.php +++ b/pandora_console/godmode/alerts/alert_templates.php @@ -155,7 +155,7 @@ if ($delete_template) { if ($al_template !== false){ // If user tries to delete a template with group=ALL then must have "PM" access privileges - if ($al_template['id_group'] == 0){ + if ($al_template['id_group'] == 0) { if (! check_acl ($config['id_user'], 0, "PM")) { db_pandora_audit("ACL Violation", "Trying to access Alert Management"); @@ -167,7 +167,10 @@ if ($delete_template) { alerts_meta_print_header (); } else { - ui_print_page_header (__('Alerts')." » ". __('Alert templates'), "images/gm_alerts.png", false, "alert_template", true); + ui_print_page_header( + __('Alerts') . " » " . __('Alert templates'), + "images/gm_alerts.png", false, "alert_template", + true); } } } // If user tries to delete a template of others groups diff --git a/pandora_console/godmode/alerts/configure_alert_action.php b/pandora_console/godmode/alerts/configure_alert_action.php index 3883349fdf..398bd38ed0 100644 --- a/pandora_console/godmode/alerts/configure_alert_action.php +++ b/pandora_console/godmode/alerts/configure_alert_action.php @@ -130,7 +130,7 @@ $table->data[2][0] = __('Command'); $table->data[2][1] = html_print_select_from_sql ('SELECT id, name FROM talert_commands', 'id_command', $id_command, '', __('None'), 0, true); $table->data[2][1] .= ' '; -if (check_acl ($config['id_user'], 0, "PM")){ +if (check_acl ($config['id_user'], 0, "PM")) { $table->data[2][1] .= html_print_image ('images/add.png', true); $table->data[2][1] .= ''; $table->data[2][1] .= __('Create Command'); @@ -144,7 +144,7 @@ $table->data[4][0] = __('Command preview'); $table->data[4][1] = html_print_textarea ('command_preview', 10, 30, '', 'disabled="disabled"', true); $row = 5; -for ($i=1; $i<=10; $i++) { +for ($i = 1; $i <= 10; $i++) { $table->data['field'.$i][0] = html_print_image('images/spinner.gif',true); $table->data['field'.$i][1] = html_print_image('images/spinner.gif',true); // Store the value in a hidden to keep it on first execution diff --git a/pandora_console/godmode/events/custom_events.php b/pandora_console/godmode/events/custom_events.php index 8eefd38f04..1086e17b02 100644 --- a/pandora_console/godmode/events/custom_events.php +++ b/pandora_console/godmode/events/custom_events.php @@ -194,11 +194,11 @@ echo '';