diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index b2c773a076..8ad9e23852 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -25,6 +25,8 @@ require_once ($config['homedir'].'/include/functions_ui.php'); check_login (); + + if (! check_acl ($config["id_user"], 0, "ER")) { db_pandora_audit("ACL Violation", "Trying to access event viewer"); @@ -46,10 +48,7 @@ if (!$meta) { if (isset($config['event_replication']) && $config['event_replication'] == 1) { - if ($config['show_events_in_local'] == 0) { - return; - } - else { + if ((bool)$config['show_events_in_local']) { $readonly = true; } } @@ -223,6 +222,8 @@ $date_from = (string)get_parameter('date_from', ''); $date_to = (string)get_parameter('date_to', ''); $server_id = (int)get_parameter('server_id', 0); + + $text_agent = (string) get_parameter("text_agent"); $id_agent = get_parameter('id_agent', 0); if ($id_agent != 0) { @@ -243,6 +244,7 @@ if ($id_agent_module != 0) { } + $tag_with_json = base64_decode(get_parameter("tag_with", '')) ; $tag_with_json_clean = io_safe_output($tag_with_json); $tag_with_base64 = base64_encode($tag_with_json_clean); @@ -263,6 +265,8 @@ users_get_groups ($config["id_user"], "ER"); $ids = (array) get_parameter ("eventid", -1); + + $params = "search=" . rawurlencode(io_safe_input($search)) . "&event_type=" . $event_type . "&severity=" . $severity . @@ -295,6 +299,8 @@ if ($meta) { $url = "index.php?sec=eventos&sec2=operation/events/events&" . $params; + + // Header if ($config["pure"] == 0 || $meta) { $pss = get_user_info($config['id_user']); diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index 6619425fb9..9fc1ce8f7a 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -35,12 +35,13 @@ if (! check_acl ($config["id_user"], 0, "ER")) { return; } -if(defined('METACONSOLE')){ +if (defined('METACONSOLE')) { $jump = '  '; } -else{ +else { $jump = "
"; } + if (is_ajax()) { $get_filter_values = get_parameter('get_filter_values', 0); $save_event_filter = get_parameter('save_event_filter', 0); @@ -141,7 +142,7 @@ $strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_use $tags = tags_get_user_tags($config['id_user'], 'ER'); -if ($id_agent == 0 && $text_agent != '') { +if ($id_agent == 0 && $text_agent != __('All')) { $id_agent = -1; }