mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
10712-login
This commit is contained in:
parent
e2820d1ad7
commit
f32c886167
@ -30,7 +30,7 @@ require_once __DIR__.'/../include/functions_html.php';
|
|||||||
echo '<style>
|
echo '<style>
|
||||||
:root {';
|
:root {';
|
||||||
if ($config['style'] === 'pandora') {
|
if ($config['style'] === 'pandora') {
|
||||||
echo '--login-background-color: rgba(255, 255, 255, 0.2);';
|
echo '--login-background-color: rgba(255, 255, 255, 0.4);';
|
||||||
echo '--login-label-color: #545454;';
|
echo '--login-label-color: #545454;';
|
||||||
echo '--login-text-color: #000;';
|
echo '--login-text-color: #000;';
|
||||||
$style_theme = 'white-theme';
|
$style_theme = 'white-theme';
|
||||||
@ -213,7 +213,7 @@ echo '<div class="login_page">';
|
|||||||
if (is_metaconsole() === true) {
|
if (is_metaconsole() === true) {
|
||||||
if (!isset($config['custom_logo_login'])) {
|
if (!isset($config['custom_logo_login'])) {
|
||||||
html_print_image(
|
html_print_image(
|
||||||
'enterprise/images/custom_logo_login/login_logo.png',
|
'enterprise/images/custom_logo_login/Pandora-FMS-1.png',
|
||||||
false,
|
false,
|
||||||
[
|
[
|
||||||
'class' => 'login_logo',
|
'class' => 'login_logo',
|
||||||
@ -238,13 +238,13 @@ if (is_metaconsole() === true) {
|
|||||||
}
|
}
|
||||||
} else if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
|
} else if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
|
||||||
if (!isset($config['custom_logo_login'])) {
|
if (!isset($config['custom_logo_login'])) {
|
||||||
html_print_image(ui_get_full_url('enterprise/images/custom_logo_login/login_logo_v7.png'), 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/Pandora-FMS-1.png'), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true);
|
||||||
} else {
|
} else {
|
||||||
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);
|
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 {
|
} else {
|
||||||
if (empty($config['custom_logo_login']) === true) {
|
if (empty($config['custom_logo_login']) === true) {
|
||||||
html_print_image(ui_get_full_url('images/custom_logo_login/pandora_logo.png'), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true);
|
html_print_image(ui_get_full_url('images/custom_logo_login/Pandora-FMS-1.png'), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true);
|
||||||
} else {
|
} else {
|
||||||
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);
|
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);
|
||||||
}
|
}
|
||||||
@ -472,17 +472,19 @@ html_print_csrf_hidden();
|
|||||||
echo '<div class ="img_banner_login">';
|
echo '<div class ="img_banner_login">';
|
||||||
if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
|
if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
|
||||||
if (empty($config['custom_splash_login']) === false && $config['custom_splash_login'] !== 'default') {
|
if (empty($config['custom_splash_login']) === false && $config['custom_splash_login'] !== 'default') {
|
||||||
html_print_image(
|
if ($config['custom_splash_login'] !== 'none.png') {
|
||||||
'enterprise/images/custom_splash_login/'.$config['custom_splash_login'],
|
html_print_image(
|
||||||
false,
|
'enterprise/images/custom_splash_login/'.$config['custom_splash_login'],
|
||||||
[
|
false,
|
||||||
'class' => 'splash-logo',
|
[
|
||||||
'alt' => 'splash',
|
'class' => 'splash-logo',
|
||||||
'border' => 0,
|
'alt' => 'splash',
|
||||||
],
|
'border' => 0,
|
||||||
false,
|
],
|
||||||
false
|
false,
|
||||||
);
|
false
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
echo '
|
echo '
|
||||||
<div class="loginimg-container">
|
<div class="loginimg-container">
|
||||||
|
BIN
pandora_console/images/custom_logo_login/Pandora-FMS-1.png
Normal file
BIN
pandora_console/images/custom_logo_login/Pandora-FMS-1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 106 KiB |
@ -2557,7 +2557,7 @@ function config_process_config()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['custom_logo_login'])) {
|
if (!isset($config['custom_logo_login'])) {
|
||||||
config_update_value('custom_logo_login', 'login_logo_v7.png');
|
config_update_value('custom_logo_login', 'Pandora-FMS-1.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['custom_splash_login'])) {
|
if (!isset($config['custom_splash_login'])) {
|
||||||
@ -2621,7 +2621,7 @@ function config_process_config()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['background_opacity'])) {
|
if (!isset($config['background_opacity'])) {
|
||||||
config_update_value('background_opacity', 30);
|
config_update_value('background_opacity', 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['meta_background_opacity'])) {
|
if (!isset($config['meta_background_opacity'])) {
|
||||||
@ -2641,7 +2641,7 @@ function config_process_config()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['meta_custom_logo_login'])) {
|
if (!isset($config['meta_custom_logo_login'])) {
|
||||||
config_update_value('meta_custom_logo_login', 'pandora_logo.png');
|
config_update_value('meta_custom_logo_login', 'Pandora-FMS-1.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['meta_custom_splash_login'])) {
|
if (!isset($config['meta_custom_splash_login'])) {
|
||||||
|
@ -68,7 +68,7 @@ div#login_f {
|
|||||||
|
|
||||||
#ver_num {
|
#ver_num {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: #dddddd;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 350;
|
font-weight: 350;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user