diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php index 2748ff5844..f33b6f39d4 100644 --- a/pandora_console/godmode/setup/setup_visuals.php +++ b/pandora_console/godmode/setup/setup_visuals.php @@ -213,7 +213,9 @@ $table->data[$row][1] .= __('No').' '.html_print_radio_button ('flash_chart $row++; $table->data[$row][0] = __('Custom logo') . ui_print_help_icon("custom_logo", true); -$table->data[$row][1] = html_print_select (list_files ('images/custom_logo', "png", 1, 0), 'custom_logo', $config["custom_logo"], '', '', '', true); +$table->data[$row][1] = html_print_select( + list_files('images/custom_logo', "png", 1, 0), 'custom_logo', + $config["custom_logo"], '', '', '', true); $row++; @@ -224,7 +226,9 @@ $backgrounds_list_png = list_files("images/backgrounds", "png", 1, 0); $backgrounds_list = array_merge($backgrounds_list_jpg, $backgrounds_list_png); $backgrounds_list = array_merge($backgrounds_list, $backgrounds_list_gif); asort($backgrounds_list); -$table->data[$row][1] = html_print_select ($backgrounds_list, 'login_background', $config["login_background"], '', __('Default'), '', true); +$table->data[$row][1] = html_print_select ($backgrounds_list, + 'login_background', $config["login_background"], '', __('Default'), + '', true); $row++; diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 07c1cd7a32..720f567927 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -1949,7 +1949,7 @@ function get_periods ($custom = true, $show_default = true) { if ($custom) { $periods[-1] = __('custom'); } - + if (empty($config['interval_values'])) { if ($show_default) { $periods[SECONDS_5MINUTES] = sprintf(__('%s minutes'), '5'); diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index b70b998439..150ed697e7 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -830,6 +830,26 @@ function config_process_config () { config_update_value ( 'flash_charts', true); } + if (!isset ($config["login_background"])) { + config_update_value ('login_background', ''); + } + + if (!isset ($config["paginate_module"])) { + config_update_value ('paginate_module', false); + } + + if (!isset ($config["graphviz_bin_dir"])) { + config_update_value ('graphviz_bin_dir', ""); + } + + if (!isset ($config["fixed_header"])) { + config_update_value ('fixed_header', false); + } + + if (!isset ($config["fixed_menu"])) { + config_update_value ('fixed_menu', false); + } + if (!isset ($config["custom_logo"])) { config_update_value ('custom_logo', 'pandora_logo_head.png'); }