From e8d3d93f7f62fe7bcc36582cadac72cd5b96e696 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 17 Jan 2022 10:22:30 +0100 Subject: [PATCH] Fixed pandora_black in metaconsole --- pandora_console/extensions/module_groups.php | 2 +- .../extensions/realtime_graphs.php | 2 +- .../agentes/module_manager_editor_common.php | 2 +- .../reporting_builder.item_editor.php | 32 +++++++++---------- .../godmode/setup/setup_ehorus.php | 2 +- pandora_console/include/class/HTML.class.php | 2 +- pandora_console/include/functions_agents.php | 2 +- pandora_console/include/functions_graph.php | 2 +- pandora_console/include/functions_html.php | 20 ++++++------ .../include/functions_reporting_html.php | 2 +- pandora_console/include/functions_ui.php | 4 +-- pandora_console/include/graphs/fgraph.php | 16 +++++----- .../include/graphs/functions_d3.php | 2 +- .../include/graphs/functions_flot.php | 2 +- .../include/lib/Dashboard/Widget.php | 2 +- .../lib/Dashboard/Widgets/events_list.php | 2 +- .../lib/Dashboard/Widgets/service_view.php | 2 +- .../lib/Dashboard/Widgets/tree_view.php | 2 +- .../agentes/interface_traffic_graph_win.php | 2 +- .../operation/agentes/realtime_win.php | 4 +-- .../operation/agentes/snapshot_view.php | 2 +- .../operation/agentes/stat_win.php | 2 +- .../operation/agentes/tactical.php | 2 +- .../operation/events/sound_events.php | 2 +- .../configure_integriaims_incident.php | 2 +- pandora_console/operation/users/user_edit.php | 21 ++++++------ .../operation/visual_console/public_view.php | 2 +- .../operation/visual_console/view.php | 4 +-- pandora_console/views/dashboard/cell.php | 3 +- 29 files changed, 72 insertions(+), 74 deletions(-) diff --git a/pandora_console/extensions/module_groups.php b/pandora_console/extensions/module_groups.php index affcff93de..0062c25a13 100644 --- a/pandora_console/extensions/module_groups.php +++ b/pandora_console/extensions/module_groups.php @@ -302,7 +302,7 @@ function mainModuleGroups() $table->style[0] = 'color: #ffffff; background-color: #373737; font-weight: bolder; min-width: 230px;'; $table->width = '100%'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $background_color = '#333'; } else { $background_color = '#fff'; diff --git a/pandora_console/extensions/realtime_graphs.php b/pandora_console/extensions/realtime_graphs.php index cd417e3a43..908807d2d0 100644 --- a/pandora_console/extensions/realtime_graphs.php +++ b/pandora_console/extensions/realtime_graphs.php @@ -42,7 +42,7 @@ function pandora_realtime_graphs() global $config; check_login(); - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { ui_require_css_file('pandora_black', 'include/styles/', true); } diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 58d38e48fb..265615f28c 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -98,7 +98,7 @@ function add_component_selection($id_network_component_type) global $table_simple; global $config; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $background_row = 'background-color: #444'; } else { $background_row = 'background-color: #cfcfcf'; diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 62d8aa92a0..fb93b3b30d 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -3914,7 +3914,7 @@ function print_SLA_list($width, $action, $idItem=null) '; echo html_print_select( diff --git a/pandora_console/godmode/setup/setup_ehorus.php b/pandora_console/godmode/setup/setup_ehorus.php index e65371c77c..7d6eaef617 100644 --- a/pandora_console/godmode/setup/setup_ehorus.php +++ b/pandora_console/godmode/setup/setup_ehorus.php @@ -116,7 +116,7 @@ $table_remote->data['ehorus_test'] = $row; // Print. echo '
'; echo ''; -if ($config['style'] === 'pandora_black') { +if ($config['style'] === 'pandora_black' && !is_metaconsole()) { html_print_image('include/ehorus/images/ehorus-logo.png'); } else { html_print_image('include/ehorus/images/ehorus-logo-grey.png'); diff --git a/pandora_console/include/class/HTML.class.php b/pandora_console/include/class/HTML.class.php index d5bf6dfc97..4d79456c8f 100644 --- a/pandora_console/include/class/HTML.class.php +++ b/pandora_console/include/class/HTML.class.php @@ -473,7 +473,7 @@ class HTML bool $direct=false ) { global $config; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $text_color = 'style="color: white"'; } diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 6dbac49957..0d1f83ae7b 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -3876,7 +3876,7 @@ function agents_get_status_animation($up=true) $red = 'images/heartbeat_green.gif'; $green = 'images/heartbeat_green.gif'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $red = 'images/heartbeat_green_black.gif'; $green = 'images/heartbeat_green_black.gif'; } diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index f561705896..995a09cffc 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -1555,7 +1555,7 @@ function graphic_combined_module( $long_index = ''; - if ($config['style'] === 'pandora_black' && ($params['pdf'] === false || $params['pdf'] === null ) + if (($config['style'] === 'pandora_black' && !is_metaconsole()) && ($params['pdf'] === false || $params['pdf'] === null ) ) { $background_color = '#222'; $params['legend_color'] = '#fff'; diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index d6df00d70f..7f38175f9c 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -471,7 +471,7 @@ function html_print_select_groups( global $config; $select2_css = 'select2.min'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $select2_css = 'select2_dark.min'; } @@ -777,11 +777,11 @@ function html_print_select( if ($style === false) { $styleText = ' '; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $styleText = 'style="color: white"'; } } else { - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $style .= ' color: white'; } @@ -922,7 +922,7 @@ function html_print_select( } $select2 = 'select2.min'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $select2 = 'select2_dark.min'; } @@ -2820,7 +2820,7 @@ function html_print_input_number(array $settings):string global $config; $text_color = ''; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $text_color = 'style="color: white"'; } @@ -4297,7 +4297,7 @@ function html_print_autocomplete_modules( $text_color = ''; $module_icon = 'images/search_module.png'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $text_color = 'color: white'; $module_icon = 'images/brick.menu.png'; } @@ -4599,7 +4599,7 @@ function html_print_input($data, $wrapper='div', $input_only=false) enterprise_include_once('include/functions_metaconsole.php'); - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $style = 'style="color: white"'; } @@ -5260,7 +5260,7 @@ function html_print_autocomplete_users_from_integria( global $config; $user_icon = 'images/user_green.png'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $user_icon = 'images/header_user.png'; } @@ -5367,7 +5367,7 @@ function html_print_tabs(array $tabs) $bg_color = ''; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $bg_color = 'style="background-color: #222"'; } @@ -5469,7 +5469,7 @@ function html_print_select_search( $select2_css = 'select2.min'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $select2_css = 'select2_dark.min'; } diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index 34a45685d2..92e20da72e 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -122,7 +122,7 @@ function html_do_report_info($report) { global $config; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $background_color = '#222'; } else { $background_color = '#f5f5f5'; diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index ae4321dadd..a0883a4026 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -4964,7 +4964,7 @@ function ui_print_agent_autocomplete_input($parameters) // Default value. $icon_agent = 'images/search_agent.png'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $text_color = 'style="color: white"'; $icon_agent = 'images/agent_mc.menu.png'; } @@ -5820,7 +5820,7 @@ function ui_print_agent_autocomplete_input($parameters) $html = ''; $text_color = ''; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $text_color = 'color: white'; } diff --git a/pandora_console/include/graphs/fgraph.php b/pandora_console/include/graphs/fgraph.php index ec83514c46..b734fd3553 100644 --- a/pandora_console/include/graphs/fgraph.php +++ b/pandora_console/include/graphs/fgraph.php @@ -220,7 +220,7 @@ function vbar_graph( $options['x']['font']['color'] = '#545454'; if ($options['pdf'] === true) { $options['x']['font']['color'] = '#000'; - } else if ($config['style'] === 'pandora_black') { + } else if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $options['x']['font']['color'] = '#fff'; } } @@ -238,7 +238,7 @@ function vbar_graph( // Grid color axes x. if (isset($options['x']['color']) === false) { $options['x']['color'] = '#ffffff'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $options['x']['color'] = '#222'; } } @@ -305,7 +305,7 @@ function vbar_graph( $options['y']['font']['color'] = '#545454'; if ($options['pdf'] === true) { $options['y']['font']['color'] = '#000'; - } else if ($config['style'] === 'pandora_black') { + } else if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $options['y']['font']['color'] = '#fff'; } } @@ -323,7 +323,7 @@ function vbar_graph( // Grid color axes y. if (isset($options['y']['color']) === false) { $options['y']['color'] = '#ffffff'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $options['y']['color'] = '#222'; } } @@ -361,7 +361,7 @@ function vbar_graph( if (isset($options['grid']['color']) === false) { $options['grid']['color'] = '#ffffff'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $options['grid']['color'] = '#111'; } } @@ -373,7 +373,7 @@ function vbar_graph( '#ffffff', ], ]; - if ($config['style'] === 'pandora_black' && $ttl === 1) { + if ($config['style'] === 'pandora_black' && !is_metaconsole() && $ttl === 1) { $options['grid']['backgroundColor'] = [ 'colors' => [ '#222', @@ -746,11 +746,11 @@ function hbar_graph( return generator_chart_to_pdf('hbar', $params); } - if ($config['style'] === 'pandora_black' && $ttl === 1) { + if ($config['style'] === 'pandora_black' && !is_metaconsole() && $ttl === 1) { $backgroundColor = '#222'; } - if ($config['style'] === 'pandora_black' && $ttl === 1) { + if ($config['style'] === 'pandora_black' && !is_metaconsole() && $ttl === 1) { $tick_color = '#fff'; } diff --git a/pandora_console/include/graphs/functions_d3.php b/pandora_console/include/graphs/functions_d3.php index e126fc33b4..57cf3a1f43 100644 --- a/pandora_console/include/graphs/functions_d3.php +++ b/pandora_console/include/graphs/functions_d3.php @@ -202,7 +202,7 @@ function d3_bullet_chart( $font = array_shift(explode('.', array_pop(explode('/', $font)))); $invert_color = ''; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $invert_color = 'filter: invert(100%);'; } diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index 3dd139bf3a..10fe80fe2c 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -146,7 +146,7 @@ function flot_area_graph( break; } - if ($config['style'] === 'pandora_black' && ($params['pdf'] === false || $params['pdf'] === null) && (isset($is_mobile) === false || $is_mobile === false) + if (($config['style'] === 'pandora_black' && !is_metaconsole()) && ($params['pdf'] === false || $params['pdf'] === null) && (isset($is_mobile) === false || $is_mobile === false) ) { $background_style = '#222'; $params['grid_color'] = '#fff'; diff --git a/pandora_console/include/lib/Dashboard/Widget.php b/pandora_console/include/lib/Dashboard/Widget.php index 617bd74cb8..320280718b 100644 --- a/pandora_console/include/lib/Dashboard/Widget.php +++ b/pandora_console/include/lib/Dashboard/Widget.php @@ -512,7 +512,7 @@ class Widget if (empty($values['background']) === true) { $values['background'] = '#ffffff'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $values['background'] = '#222222'; } } diff --git a/pandora_console/include/lib/Dashboard/Widgets/events_list.php b/pandora_console/include/lib/Dashboard/Widgets/events_list.php index 3330cc2ae6..602533e73a 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/events_list.php +++ b/pandora_console/include/lib/Dashboard/Widgets/events_list.php @@ -750,7 +750,7 @@ class EventsListWidget extends Widget $table->data[$i] = $data; $bg_color = 'background: #E8E8E8;'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $bg_color = 'background: #222;'; } diff --git a/pandora_console/include/lib/Dashboard/Widgets/service_view.php b/pandora_console/include/lib/Dashboard/Widgets/service_view.php index ec1749671a..d838861659 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/service_view.php +++ b/pandora_console/include/lib/Dashboard/Widgets/service_view.php @@ -318,7 +318,7 @@ class ServiceViewWidget extends Widget // Css Files. \ui_require_css_file('tree', 'include/styles/', true); - if ($config['style'] == 'pandora_black') { + if ($config['style'] == 'pandora_black' && !is_metaconsole()) { \ui_require_css_file('pandora_black', 'include/styles/', true); } diff --git a/pandora_console/include/lib/Dashboard/Widgets/tree_view.php b/pandora_console/include/lib/Dashboard/Widgets/tree_view.php index bca4c3f366..fe76b94ec0 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/tree_view.php +++ b/pandora_console/include/lib/Dashboard/Widgets/tree_view.php @@ -542,7 +542,7 @@ class TreeViewWidget extends Widget // Css Files. \ui_require_css_file('tree', 'include/styles/', true); - if ($config['style'] == 'pandora_black') { + if ($config['style'] == 'pandora_black' && !is_metaconsole()) { \ui_require_css_file('pandora_black', 'include/styles/', true); } diff --git a/pandora_console/operation/agentes/interface_traffic_graph_win.php b/pandora_console/operation/agentes/interface_traffic_graph_win.php index aa674bba67..7e003eb013 100644 --- a/pandora_console/operation/agentes/interface_traffic_graph_win.php +++ b/pandora_console/operation/agentes/interface_traffic_graph_win.php @@ -68,7 +68,7 @@ if (file_exists('../../include/languages/'.$user_language.'.mo')) { } echo ''; -if ($config['style'] === 'pandora_black') { +if ($config['style'] === 'pandora_black' && !is_metaconsole()) { ui_require_css_file('pandora_black', 'include/styles/', true); } diff --git a/pandora_console/operation/agentes/realtime_win.php b/pandora_console/operation/agentes/realtime_win.php index db24c5b4b8..93850da156 100644 --- a/pandora_console/operation/agentes/realtime_win.php +++ b/pandora_console/operation/agentes/realtime_win.php @@ -64,7 +64,7 @@ if (file_exists('../../include/languages/'.$user_language.'.mo')) { $l10n->load_tables(); } -if ($config['style'] === 'pandora_black') { +if ($config['style'] === 'pandora_black' && !is_metaconsole()) { ui_require_css_file('pandora_black', 'include/styles/', true); } @@ -97,7 +97,7 @@ echo ' diff --git a/pandora_console/operation/agentes/snapshot_view.php b/pandora_console/operation/agentes/snapshot_view.php index fe858e1443..7f0972e813 100644 --- a/pandora_console/operation/agentes/snapshot_view.php +++ b/pandora_console/operation/agentes/snapshot_view.php @@ -79,7 +79,7 @@ if (!check_acl_one_of_groups($config['id_user'], $all_groups, 'AR')) { if ($refresh > 0) { $query = ui_get_url_refresh(false); echo ''; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { echo ''; } } diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index c7cd106421..827ad16e32 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -67,7 +67,7 @@ if (file_exists('../../include/languages/'.$user_language.'.mo')) { global $config; echo ''; -if ($config['style'] === 'pandora_black') { +if ($config['style'] === 'pandora_black' && !is_metaconsole()) { echo ''; } diff --git a/pandora_console/operation/agentes/tactical.php b/pandora_console/operation/agentes/tactical.php index b4430ef128..c1274fdc47 100755 --- a/pandora_console/operation/agentes/tactical.php +++ b/pandora_console/operation/agentes/tactical.php @@ -147,7 +147,7 @@ echo ''; // The status horizontal bars (Global health, Monitor sanity... // --------------------------------------------------------------------- $bg_color = 'background-color: #222'; -if ($config['style'] !== 'pandora_black') { +if ($config['style'] !== 'pandora_black' && !is_metaconsole()) { $bg_color = 'background-color: #fff'; } diff --git a/pandora_console/operation/events/sound_events.php b/pandora_console/operation/events/sound_events.php index 3881f468ae..8959ae2f47 100644 --- a/pandora_console/operation/events/sound_events.php +++ b/pandora_console/operation/events/sound_events.php @@ -72,7 +72,7 @@ echo ''.__('Sound Events').''; '; -if ($config['style'] === 'pandora_black') { +if ($config['style'] === 'pandora_black' && !is_metaconsole()) { echo ''; } else { echo ''; diff --git a/pandora_console/operation/incidents/configure_integriaims_incident.php b/pandora_console/operation/incidents/configure_integriaims_incident.php index a6100eaf78..997391a781 100644 --- a/pandora_console/operation/incidents/configure_integriaims_incident.php +++ b/pandora_console/operation/incidents/configure_integriaims_incident.php @@ -225,7 +225,7 @@ $table->data[0][0] .= '
'.html_print_input_text( ).'
'; $integria_logo = 'images/integria_logo_gray.png'; -if ($config['style'] === 'pandora_black') { +if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $integria_logo = 'images/integria_logo.svg'; } diff --git a/pandora_console/operation/users/user_edit.php b/pandora_console/operation/users/user_edit.php index 0a682d3046..db3b37a474 100644 --- a/pandora_console/operation/users/user_edit.php +++ b/pandora_console/operation/users/user_edit.php @@ -394,20 +394,17 @@ if (!$meta) { $home_screen .= html_print_select($layouts_aux, 'visual_console', $user_info['data_section'], '', '', '', true); $home_screen .= '
'; $home_screen .= html_print_input_text('data_section', $user_info['data_section'], '', 60, 255, true, false); - - - - // User only can change skins if has more than one group. - $skin = ''; - if (function_exists('skins_print_select')) { - if (count($usr_groups) > 1) { - $skin = '

'.__('Skin').':

'; - $skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'
'; - } - } } else { $home_screen = ''; - $skin = ''; +} + +// User only can change skins if has more than one group. +$skin = ''; +if (function_exists('skins_print_select')) { + if (count($usr_groups) > 1) { + $skin = '

'.__('Skin').':

'; + $skin .= skins_print_select($id_usr, 'skin', $user_info['id_skin'], '', __('None'), 0, true).'
'; + } } $timezone = '

'.__('Timezone').ui_print_help_tip(__('The timezone must be that of the associated server.'), true).'

'; diff --git a/pandora_console/operation/visual_console/public_view.php b/pandora_console/operation/visual_console/public_view.php index 759888aabb..36ec6bf722 100644 --- a/pandora_console/operation/visual_console/public_view.php +++ b/pandora_console/operation/visual_console/public_view.php @@ -97,7 +97,7 @@ $visualConsoleData = $visualConsole->toArray(); $visualConsoleName = $visualConsoleData['name']; $bg_color = ''; -if ($config['style'] === 'pandora_black') { +if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $bg_color = 'style="background-color: #222"'; } diff --git a/pandora_console/operation/visual_console/view.php b/pandora_console/operation/visual_console/view.php index 8b51d0a8f6..7e18e8ad30 100644 --- a/pandora_console/operation/visual_console/view.php +++ b/pandora_console/operation/visual_console/view.php @@ -269,7 +269,7 @@ if ($pure === false) { $class_basic_chart = 'basic_chart_min link-create-item'; $class_delete = 'delete_item delete_min'; $class_copy = 'copy_item'; - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $class_camera = 'camera_min_white link-create-item'; $class_percentile = 'percentile_item_min_white link-create-item'; $class_module_graph = 'graph_min_white link-create-item'; @@ -417,7 +417,7 @@ if ($pure === false) { } $bg_color = ''; -if ($config['style'] === 'pandora_black') { +if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $bg_color = 'style="background-color: #222"'; } diff --git a/pandora_console/views/dashboard/cell.php b/pandora_console/views/dashboard/cell.php index 1ec35ae777..b58fae78a6 100644 --- a/pandora_console/views/dashboard/cell.php +++ b/pandora_console/views/dashboard/cell.php @@ -78,11 +78,12 @@ if (empty($options['background']) === true) { $options['background'] = '#ffffff'; } - if ($config['style'] === 'pandora_black') { + if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $options['background'] = '#222222'; } } else if ($options['background'] === '#ffffff' && $config['style'] === 'pandora_black' + && !is_metaconsole() ) { $options['background'] = '#222222'; } else if ($options['background'] === '#222222'