diff --git a/pandora_console/operation/agentes/networkmap.php b/pandora_console/operation/agentes/networkmap.php index 281b1aa98b..0f59ab4a04 100644 --- a/pandora_console/operation/agentes/networkmap.php +++ b/pandora_console/operation/agentes/networkmap.php @@ -42,7 +42,7 @@ if ($add_networkmap) { // $networkmap_read = check_acl ($config['id_user'], 0, "MR"); $networkmap_write = check_acl ($config['id_user'], 0, "MW"); $networkmap_manage = check_acl ($config['id_user'], 0, "MM"); - + if (!$networkmap_write && !$networkmap_manage) { db_pandora_audit("ACL Violation", "Trying to accessnode graph builder"); @@ -151,7 +151,7 @@ else if ($delete_networkmap || $save_networkmap || $update_networkmap) { $networkmap_write = check_acl ($config['id_user'], $store_group, "MW"); if (!isset($networkmap_manage)) $networkmap_manage = check_acl ($config['id_user'], $store_group, "MM"); - + if (!$networkmap_write && !$networkmap_manage) { db_pandora_audit("ACL Violation", "Trying to accessnode graph builder"); diff --git a/pandora_console/operation/tree.php b/pandora_console/operation/tree.php index 6bea6e55f4..af1ce658af 100755 --- a/pandora_console/operation/tree.php +++ b/pandora_console/operation/tree.php @@ -48,31 +48,31 @@ if (!$strict_acl) { html_print_image("images/tag.png", true, array("title" => __('Tags'))) . "", 'active' => ($tab == "tag")); - + $tabs['os'] = array( 'text' => "" . html_print_image("images/operating_system.png", true, array("title" => __('OS'))) . "", 'active' => ($tab == "os")); - + $tabs['group'] = array( 'text' => "" . html_print_image("images/group.png", true, array("title" => __('Groups'))) . "", 'active' => ($tab == "group")); - + $tabs['module_group'] = array( 'text' => "" . html_print_image("images/module_group.png", true, array("title" => __('Module groups'))) . "", 'active' => ($tab == "module_group")); - + $tabs['module'] = array( 'text' => "" . html_print_image("images/brick.png", true, array("title" => __('Modules'))) . "", 'active' => ($tab == "module")); - + if ($enterpriseEnable) { $tabs['policies'] = array( 'text' => "" . @@ -111,7 +111,7 @@ switch ($tab) { if (!defined('METACONSOLE')) { if (!$strict_acl) $header_title = $header_title ." - ". $header_sub_title; - + ui_print_page_header($header_title, "images/extensions.png", false, "", false, $tabs); } // ---------------------Tabs ------------------------------------------- @@ -142,7 +142,7 @@ if (defined('METACONSOLE')) $row[] = html_print_input_text("search_agent", $search_agent, '', 70, 30, true); else $row[] = html_print_input_text("search_agent", $search_agent, '', 40, 30, true); - + // Button $row[] = html_print_submit_button(__('Filter'), "uptbutton", false, 'class="sub search"', true); $table->rowspan[][count($row)-1] = 2; @@ -158,13 +158,13 @@ if (!defined('METACONSOLE')) { $module_status_arr[AGENT_MODULE_STATUS_CRITICAL_BAD] = __('Critical'); $module_status_arr[AGENT_MODULE_STATUS_UNKNOWN] = __('Unknown'); $module_status_arr[AGENT_MODULE_STATUS_NOT_INIT] = __('Not init'); - + $row = array(); $row[] = __('Module status'); $row[] = html_print_select($module_status_arr, "status_module", $status_module, '', '', 0, true); $row[] = __('Search module'); $row[] = html_print_input_text("search_module", $search_module, '', 40, 30, true); - + $table->data[] = $row; } @@ -240,7 +240,7 @@ enterprise_hook('close_meta_frame'); // Clear the tree if (typeof treeController.recipient != 'undefined' && treeController.recipient.length > 0) treeController.recipient.empty(); - + $(".loading_tree").show(); var parameters = {}; @@ -315,14 +315,14 @@ enterprise_hook('close_meta_frame'); dataType: "json" }); } - + // Show the modal window of an module var moduleDetailsWindow = $("
"); moduleDetailsWindow .hide() .prop("id", "module_details_window") .appendTo('body'); - + function show_module_detail_dialog(module_id, id_agent, server_name, offset, period, module_name) { var params = {}; var f = new Date(); @@ -401,7 +401,7 @@ enterprise_hook('close_meta_frame'); secondText: '', currentText: '', closeText: ''}); - + $.datepicker.setDefaults($.datepicker.regional[ ""]); $("#text-date_from, #text-date_to").datepicker({dateFormat: ""}); @@ -423,5 +423,5 @@ enterprise_hook('close_meta_frame'); return false; }); } - +