diff --git a/pandora_console/include/javascript/pandora_events.js b/pandora_console/include/javascript/pandora_events.js
index 8d091cfddc..5dfc80c463 100644
--- a/pandora_console/include/javascript/pandora_events.js
+++ b/pandora_console/include/javascript/pandora_events.js
@@ -159,7 +159,6 @@ function show_response_dialog(event_id, response_id, response) {
data: params.join ("&"),
type: 'POST',
url: action=ajax_file,
- async: false,
timeout: 10000,
dataType: 'html',
success: function (data) {
diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php
index 0ea6311104..76c6d30f59 100644
--- a/pandora_console/operation/events/events_list.php
+++ b/pandora_console/operation/events/events_list.php
@@ -17,15 +17,14 @@
// Load global vars
global $config;
-require_once ($config['homedir']. "/include/functions_events.php"); //Event processing functions
-require_once ($config['homedir']. "/include/functions_alerts.php"); //Alerts processing functions
-require_once ($config['homedir']. "/include/functions.php");
-require_once($config['homedir'] . "/include/functions_agents.php"); //Agents funtions
-require_once($config['homedir'] . "/include/functions_users.php"); //Users functions
-require_once ($config['homedir'] . '/include/functions_groups.php');
-
-require_once ($config["homedir"] . '/include/functions_graph.php');
-require_once ($config["homedir"] . '/include/functions_tags.php');
+require_once ($config['homedir'] . "/include/functions.php");
+require_once ($config['homedir'] . "/include/functions_events.php"); //Event processing functions
+require_once ($config['homedir'] . "/include/functions_alerts.php"); //Alerts processing functions
+require_once ($config['homedir'] . "/include/functions_agents.php"); //Agents funtions
+require_once ($config['homedir'] . "/include/functions_users.php"); //Users functions
+require_once ($config['homedir'] . "/include/functions_groups.php");
+require_once ($config["homedir"] . "/include/functions_graph.php");
+require_once ($config["homedir"] . "/include/functions_tags.php");
check_login ();
@@ -36,8 +35,6 @@ if (! check_acl ($config["id_user"], 0, "ER")) {
return;
}
-$strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_user']);
-
if(defined('METACONSOLE')){
$jump = ' ';
}
@@ -162,7 +159,7 @@ require('events.build_query.php');
$id_name = get_parameter('id_name', '');
-if(!defined("METACONSOLE"))
+if (!defined("METACONSOLE"))
echo "
";
@@ -174,7 +171,7 @@ $update_pressed = (int) !empty($update_pressed);
if ($update_pressed || $open_filter) {
$open_filter = true;
}
-if(!defined("METACONSOLE")){
+if (!defined("METACONSOLE")) {
$table = html_get_predefined_table('transparent', 2);
$table->styleTable = 'width: 23px; float: right; background: #ECECEC;';
$table->width = '98%';
@@ -275,7 +272,7 @@ $table->width = '98%';
$table->cellspacing = 4;
$table->cellpadding = 4;
$table->class = 'databox';
-if(defined('METACONSOLE')){
+if (defined('METACONSOLE')) {
$table->width = '100%';
$table->cellspacing = 0;
$table->cellpadding = 0;
@@ -283,7 +280,7 @@ if(defined('METACONSOLE')){
}
$table->styleTable = 'font-weight: bold; color: #555; text-align:left;';
-if(!defined("METACONSOLE"))
+if (!defined("METACONSOLE"))
$table->style[0] = 'width: 50%; width:50%;';
$data = array();
$table->rowid[3] = 'update_filter_row1';
@@ -330,7 +327,7 @@ $tabletags_with->cellspacing = 4;
$tabletags_with->cellpadding = 4;
$tabletags_with->class = 'noshadow';
$tabletags_with->styleTable = 'border: 0px;';
-if(defined('METACONSOLE')){
+if (defined('METACONSOLE')) {
$tabletags_with->width = '100%';
$tabletags_with->class = 'nobady';
$tabletags_with->cellspacing = 0;
@@ -340,7 +337,7 @@ if(defined('METACONSOLE')){
$data = array();
-if(!defined("METACONSOLE"))
+if (!defined("METACONSOLE"))
$data[0] = html_print_select ($tags_select_with, 'select_with', '', '', '', 0,
true, true, true, '', false, 'width: 120px; height: 70px;') . '
';
else
@@ -365,7 +362,7 @@ $tabletags_without->width = '100%';
$tabletags_without->cellspacing = 4;
$tabletags_without->cellpadding = 4;
$tabletags_without->class = 'noshadow';
-if(defined('METACONSOLE')){
+if (defined('METACONSOLE')) {
$tabletags_without->width = '100%';
$tabletags_without->class = 'nobady';
$tabletags_without->cellspacing = 0;
@@ -374,7 +371,7 @@ if(defined('METACONSOLE')){
$tabletags_without->styleTable = 'border: 0px;';
$data = array();
-if(!defined("METACONSOLE"))
+if (!defined("METACONSOLE"))
$data[0] = html_print_select ($tags_select_without, 'select_without', '', '', '', 0,
true, true, true, '', false, 'width: 120px; height: 70px;') . '
';
else
@@ -385,7 +382,7 @@ $data[1] = html_print_image('images/darrowright.png', true, array('id' => 'butto
$data[1] .= html_print_input_hidden('tag_without', $tag_without_base64, true);
$data[1] .= '
' . html_print_image('images/darrowleft.png', true, array('id' => 'button-remove_without', 'style' => 'cursor: pointer;', 'title' => __('Remove')));
-if(!defined("METACONSOLE"))
+if (!defined("METACONSOLE"))
$data[2] = html_print_select ($tag_without_temp, 'tag_without_temp', array(), '', '',
0, true, true, true, '', false, "width: 120px; height: 70px;");
else
@@ -399,11 +396,11 @@ $tabletags_without->rowclass[] = '';
// EVENTS FILTER
// Table for filter controls
-if(defined('METACONSOLE')){
+if (defined('METACONSOLE')) {
$events_filter = '