From 4e90c86b1e7988b01d17ae6007a7cc7f6a4c570d Mon Sep 17 00:00:00 2001 From: Esteban Sanchez Date: Wed, 1 Apr 2009 08:04:49 +0000 Subject: [PATCH] 2009-03-31 Esteban Sanchez * godmode/agentes/module_manager_editor_plugin.php: Added plugin components select. Fixes #2707900. * godmode/alerts/alert_list.php: Fixed an error when showing agents list. * include/functions_events.php: Added get_similar_events_ids() to get events which are similars (same description and agent module). Renamed process_event_delete() and process_event_validate(). Added similars flag to both delete_event() an validate_event(). * include/functions_reporting.php: Added timestamp parameter to select statements to fix #2707841. * include/functions_ui.php: Added a class to pagination divs. * operation/agentes/estado_generalagente.php: Style correction. Removed period on agent access graph. * operation/agentes/exportdata.php: Fixed many notices by including config.php instead of using global. Style corrections. * operation/events/events.php: When the events were grouped and deleted or validated, only one was being updated. Added AJAX support to validate and delete single operations. Style corrections. Fixed #2707872 * reporting/fgraph.php: Many fixes on agent access graph. Fixes #2707856 * reporting/pandora_graph.php: Added a couple of properties to the class. * reporting/pchart_graph.php: Do not add the grid or axis labels on charts if asked. Show no progress bar if value is 0 and a title is shown. Style corrections. * include/styles/pandora_width.css: Renamed to panoramic theme. Added style for event_control element. * include/styles/pandora.css: Added style for event_control element. * godmode/modules/manage_network_components.php: Fixed table width for panoramic theme. * ajax.php: Added remote_addr to config array. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1582 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 76 +++++- pandora_console/ajax.php | 2 + .../agentes/module_manager_editor_plugin.php | 9 + pandora_console/godmode/alerts/alert_list.php | 2 +- .../modules/manage_network_components.php | 2 +- pandora_console/include/functions_events.php | 58 ++++- .../include/functions_reporting.php | 14 +- pandora_console/include/functions_ui.php | 2 +- pandora_console/include/styles/pandora.css | 3 + .../include/styles/pandora_width.css | 6 +- .../agentes/estado_generalagente.php | 8 +- .../operation/agentes/exportdata.php | 18 +- pandora_console/operation/events/events.php | 235 ++++++++++++------ pandora_console/reporting/fgraph.php | 48 ++-- pandora_console/reporting/pandora_graph.php | 3 + pandora_console/reporting/pchart_graph.php | 79 +++--- 16 files changed, 391 insertions(+), 174 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 4503adb781..c7c3badece 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,52 @@ +2009-03-31 Esteban Sanchez + + * godmode/agentes/module_manager_editor_plugin.php: Added plugin + components select. Fixes #2707900. + + * godmode/alerts/alert_list.php: Fixed an error when showing agents + list. + + * include/functions_events.php: Added get_similar_events_ids() to get + events which are similars (same description and agent module). Renamed + process_event_delete() and process_event_validate(). Added + similars flag to both delete_event() an validate_event(). + + * include/functions_reporting.php: Added timestamp parameter to select + statements to fix #2707841. + + * include/functions_ui.php: Added a class to pagination divs. + + * operation/agentes/estado_generalagente.php: Style correction. + Removed period on agent access graph. + + * operation/agentes/exportdata.php: Fixed many notices by including + config.php instead of using global. Style corrections. + + * operation/events/events.php: When the events were grouped and + deleted or validated, only one was being updated. Added AJAX support + to validate and delete single operations. Style corrections. Fixed + #2707872 + + * reporting/fgraph.php: Many fixes on agent access graph. Fixes + #2707856 + + * reporting/pandora_graph.php: Added a couple of properties to the + class. + + * reporting/pchart_graph.php: Do not add the grid or axis labels on + charts if asked. Show no progress bar if value is 0 and a title is + shown. Style corrections. + + * include/styles/pandora_width.css: Renamed to panoramic theme. Added + style for event_control element. + + * include/styles/pandora.css: Added style for event_control element. + + * godmode/modules/manage_network_components.php: Fixed table width for + panoramic theme. + + * ajax.php: Added remote_addr to config array. + 2009-03-31 Sancho Lerena * include/functions_visual_map.php, @@ -44,15 +93,34 @@ * godmode/setup/setup_visuals.php: New setup section for visual options. * images/mod_web_proc.png, - images/screenshot_not_found.jpg - images/mod_web_data.png - images/server_web.png: New icons added for enterprise options. - + images/screenshot_not_found.jpg, + images/mod_web_data.png, + images/server_web.png: New icons added for enterprise options. + 2009-03-31 Sancho Lerena * operation/events/events.php: Fixed and allow to everybody to see events coming from group 0 (Old server code put events here). +2009-03-30 Esteban Sanchez + + * include/functions_ui.php: Added print_message(), + print_error_message() and print_success_message(). + + * godmode/users/configure_user.php, + operation/users/user_edit.php, + godmode/reporting/map_builder_wizard.php: Use print_error_message() or + print_success_message() when there was no other option. + + * godmode/modules/manage_network_templates.php: Fixed CSV export + notice errors. Style corrections. + + * godmode/modules/manage_network_templates_form.php: Style + corrections. + + * include/functions_network_profiles.php: Added to repository. Network + profiles function API. + 2009-03-27 Evi Vanoost * include/functions_db.php: Fixed group functions that would return diff --git a/pandora_console/ajax.php b/pandora_console/ajax.php index 51fd10c746..c9112ba5eb 100644 --- a/pandora_console/ajax.php +++ b/pandora_console/ajax.php @@ -38,6 +38,8 @@ check_login (); define ('AJAX', true); +$config["remote_addr"] = $_SERVER['REMOTE_ADDR']; + $page = (string) get_parameter ('page'); $page = safe_url_extraclean ($page); $page .= '.php'; diff --git a/pandora_console/godmode/agentes/module_manager_editor_plugin.php b/pandora_console/godmode/agentes/module_manager_editor_plugin.php index e5273c113b..fb71af7a58 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_plugin.php +++ b/pandora_console/godmode/agentes/module_manager_editor_plugin.php @@ -25,6 +25,15 @@ if (!isset ($id_agente)) { $extra_title = __('Plugin server module'); +define ('ID_NETWORK_COMPONENT_TYPE', 4); + +if (empty ($update_module_id)) { + /* Function in module_manager_editor_common.php */ + add_component_selection (ID_NETWORK_COMPONENT_TYPE); +} else { + /* TODO: Print network component if available */ +} + $data = array (); $data[0] = __('Plugin'); $data[1] = print_select_from_sql ('SELECT id, name FROM tplugin ORDER BY name', diff --git a/pandora_console/godmode/alerts/alert_list.php b/pandora_console/godmode/alerts/alert_list.php index e0163c09f6..84c07e6d74 100644 --- a/pandora_console/godmode/alerts/alert_list.php +++ b/pandora_console/godmode/alerts/alert_list.php @@ -332,7 +332,7 @@ if (! $id_agente) { false, '', '', true); $table->data['agent'][0] = __('Agent'); - $table->data['agent'][1] = print_select (get_group_agents ($groups, false, "none"), + $table->data['agent'][1] = print_select (array_keys (get_group_agents ($groups, false, "none")), 'id_agent', 0, false, __('Select'), 0, true); $table->data['agent'][1] .= '