From d8f232d814c701512d40394abb61c716a00a6fe8 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Mon, 16 Dec 2019 16:39:13 +0100 Subject: [PATCH] Added control for MS Edge and Internet Explorer browsers for disallow linear gradient --- pandora_console/general/login_page.php | 8 +++++++- pandora_console/include/styles/login.css | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index 816533aab0..2410094c41 100755 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -82,12 +82,18 @@ if (!empty($page) && !empty($sec)) { } $login_body_style = ''; +$login_body_class = ''; // Overrides the default background with the defined by the user. if (!empty($config['login_background'])) { $background_url = 'images/backgrounds/'.$config['login_background']; $login_body_style = "style=\"background:linear-gradient(74deg, #02020255 36%, transparent 36%), url('".$background_url."');\""; } +// Support for Internet Explorer and Microsoft Edge browsers +if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'Edge') !== false) { + $login_body_class = "class='login_body_trident'"; +} + // Get alternative custom in case of db fail. $custom_fields = [ 'custom_logo_login', @@ -111,7 +117,7 @@ foreach ($custom_fields as $field) { // Get the custom icons. $docs_logo = ui_get_docs_logo(); $support_logo = ui_get_support_logo(); -echo '
'; +echo '
'; echo '
'; echo '
    '; diff --git a/pandora_console/include/styles/login.css b/pandora_console/include/styles/login.css index f6c072b314..426d06bb89 100644 --- a/pandora_console/include/styles/login.css +++ b/pandora_console/include/styles/login.css @@ -33,6 +33,10 @@ div#error_buttons a { background-repeat: repeat; } +.login_body_trident { + background: url("../../images/backgrounds/background_pandora_console_keys.jpg") !important; +} + p.log_in { color: #fff; padding: 0px 10px;