From b1e9d7de6fdb8f77061762fcd1e49195848fe258 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 12 Jun 2024 14:29:12 +0200 Subject: [PATCH] fix errors login logos pandora_enterprise#13904 --- pandora_console/general/login_page.php | 12 ++++++------ ... FMS alt black.png => Pandora-FMS-alt-black.png} | Bin ... FMS alt black.svg => Pandora-FMS-alt-black.svg} | 0 3 files changed, 6 insertions(+), 6 deletions(-) rename pandora_console/images/custom_logo_login/{Pandora FMS alt black.png => Pandora-FMS-alt-black.png} (100%) rename pandora_console/images/custom_logo_login/{Pandora FMS alt black.svg => Pandora-FMS-alt-black.svg} (100%) diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index a5d8d8bb90..f36e8cd343 100755 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -237,18 +237,18 @@ if (is_metaconsole() === true) { ); } } else if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) { - $theme_logo = ($config['style'] === 'pandora') ? 'images/custom_logo_login/Pandora FMS alt black.png' : 'enterprise/images/custom_logo_login/'.$config['custom_logo_login']; - if (!isset($config['custom_logo_login'])) { + if ($config['custom_logo_login'] === 'Pandora-FMS-1.png') { + $theme_logo = ($config['style'] === 'pandora') ? 'images/custom_logo_login/Pandora-FMS-alt-black.png' : 'enterprise/images/custom_logo_login/'.$config['custom_logo_login']; html_print_image(ui_get_full_url($theme_logo), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); } else { - html_print_image(ui_get_full_url($theme_logo), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); + html_print_image(ui_get_full_url('enterprise/images/custom_logo_login/'.$config['custom_logo_login']), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); } } else { - $theme_logo = ($config['style'] === 'pandora') ? 'images/custom_logo_login/Pandora FMS alt black.png' : 'images/custom_logo_login/'.$config['custom_logo_login']; - if (empty($config['custom_logo_login']) === true) { + if ($config['custom_logo_login'] === 'Pandora-FMS-1.png') { + $theme_logo = ($config['style'] === 'pandora') ? 'images/custom_logo_login/Pandora-FMS-alt-black.png' : 'images/custom_logo_login/'.$config['custom_logo_login']; html_print_image(ui_get_full_url($theme_logo), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); } else { - html_print_image(ui_get_full_url($theme_logo), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); + html_print_image(ui_get_full_url('images/custom_logo_login/'.$config['custom_logo_login']), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); } } diff --git a/pandora_console/images/custom_logo_login/Pandora FMS alt black.png b/pandora_console/images/custom_logo_login/Pandora-FMS-alt-black.png similarity index 100% rename from pandora_console/images/custom_logo_login/Pandora FMS alt black.png rename to pandora_console/images/custom_logo_login/Pandora-FMS-alt-black.png diff --git a/pandora_console/images/custom_logo_login/Pandora FMS alt black.svg b/pandora_console/images/custom_logo_login/Pandora-FMS-alt-black.svg similarity index 100% rename from pandora_console/images/custom_logo_login/Pandora FMS alt black.svg rename to pandora_console/images/custom_logo_login/Pandora-FMS-alt-black.svg