From 71afb7a741aad88ee40df90692901d7c615bc640 Mon Sep 17 00:00:00 2001 From: Tatiana Llorente Date: Mon, 11 Mar 2019 10:07:22 +0100 Subject: [PATCH 1/2] New login page Former-commit-id: 69408bda61a30561372a5ebaecc08fd04b434611 --- pandora_console/general/login_page.php | 103 ++++------ pandora_console/images/back_login.png | Bin 0 -> 213 bytes pandora_console/images/back_login_hover.png | Bin 0 -> 286 bytes .../background_pandora_console_keys.jpg | Bin 44092 -> 176549 bytes .../background_pandora_console_keys_2.jpg | Bin 0 -> 44092 bytes pandora_console/images/candado_login.png | Bin 690 -> 476 bytes pandora_console/images/saml_login.png | Bin 0 -> 305 bytes pandora_console/images/saml_login_hover.png | Bin 0 -> 276 bytes pandora_console/images/user_login.png | Bin 0 -> 459 bytes pandora_console/images/user_login_hover.png | Bin 0 -> 561 bytes pandora_console/images/usuario_login.png | Bin 669 -> 454 bytes pandora_console/include/functions_config.php | 4 +- pandora_console/include/styles/login.css | 187 ++++++++++-------- 13 files changed, 144 insertions(+), 150 deletions(-) create mode 100644 pandora_console/images/back_login.png create mode 100644 pandora_console/images/back_login_hover.png create mode 100644 pandora_console/images/backgrounds/background_pandora_console_keys_2.jpg create mode 100644 pandora_console/images/saml_login.png create mode 100644 pandora_console/images/saml_login_hover.png create mode 100644 pandora_console/images/user_login.png create mode 100644 pandora_console/images/user_login_hover.png diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index 198b5c3fc9..ea73318e2a 100755 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -82,42 +82,30 @@ if (!empty($page) && !empty($sec)) { } $login_body_style = ''; -// Overrides the default background with the defined by the user +// 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-image: url('$background_url');\""; + $login_body_style = "style=\"background:linear-gradient(74deg, #02020255 36%, transparent 36%), url('".$background_url."');\""; } -// Get the custom icons +// Get the custom icons. $docs_logo = ui_get_docs_logo(); $support_logo = ui_get_support_logo(); echo '
'; echo '
'; - echo '
'; -if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) { - if (isset($config['custom_logo'])) { - echo 'monitoring_console'; - } else { - echo 'monitoring_console'; - } -} else { - echo 'monitoring_console'; -} - - echo '
'; - echo '