10519-New login meta
This commit is contained in:
parent
ac4a76d653
commit
c30dda1718
|
@ -1124,6 +1124,10 @@ function config_update_config()
|
|||
$error_update[] = __('Background opacity % (login)');
|
||||
}
|
||||
|
||||
if (config_update_value('meta_background_opacity', (string) get_parameter('meta_background_opacity'), true) === false) {
|
||||
$error_update[] = __('Background opacity % (login)');
|
||||
}
|
||||
|
||||
if (config_update_value('meta_custom_logo_white_bg', (string) get_parameter('meta_custom_logo_white_bg'), true) === false) {
|
||||
$error_update[] = __('Custom logo metaconsole (white background)');
|
||||
}
|
||||
|
@ -1236,6 +1240,10 @@ function config_update_config()
|
|||
$error_update[] = __('Random background');
|
||||
}
|
||||
|
||||
if (config_update_value('meta_random_background', get_parameter('meta_random_background'), true) === false) {
|
||||
$error_update[] = __('Random background');
|
||||
}
|
||||
|
||||
if (config_update_value('disable_help', get_parameter('disable_help'), true) === false) {
|
||||
$error_update[] = __('Disable help');
|
||||
}
|
||||
|
@ -2518,6 +2526,10 @@ function config_process_config()
|
|||
config_update_value('background_opacity', 30);
|
||||
}
|
||||
|
||||
if (!isset($config['meta_background_opacity'])) {
|
||||
config_update_value('meta_background_opacity', 30);
|
||||
}
|
||||
|
||||
if (!isset($config['meta_custom_docs_url'])) {
|
||||
config_update_value('meta_custom_docs_url', 'https://pandorafms.com/manual/');
|
||||
}
|
||||
|
@ -2535,7 +2547,7 @@ function config_process_config()
|
|||
}
|
||||
|
||||
if (!isset($config['meta_custom_splash_login'])) {
|
||||
config_update_value('meta_custom_splash_login', 'splash_image_metaconsola.png');
|
||||
config_update_value('meta_custom_splash_login', 'default');
|
||||
}
|
||||
|
||||
if (!isset($config['meta_custom_title1_login'])) {
|
||||
|
@ -3375,6 +3387,10 @@ function config_process_config()
|
|||
config_update_value('random_background', '');
|
||||
}
|
||||
|
||||
if (!isset($config['meta_random_background'])) {
|
||||
config_update_value('meta_random_background', '');
|
||||
}
|
||||
|
||||
if (!isset($config['networkmap_max_width'])) {
|
||||
config_update_value('networkmap_max_width', 900);
|
||||
}
|
||||
|
|
|
@ -6612,6 +6612,10 @@ function ui_get_docs_logo()
|
|||
|
||||
// Default logo to open version (enterprise_installed function only works in login status).
|
||||
if (!file_exists(ENTERPRISE_DIR.'/load_enterprise.php') || !isset($config['custom_docs_logo'])) {
|
||||
if (is_metaconsole() === true) {
|
||||
return '../../images/icono_docs.png';
|
||||
}
|
||||
|
||||
return 'images/icono_docs.png';
|
||||
}
|
||||
|
||||
|
@ -6634,6 +6638,10 @@ function ui_get_support_logo()
|
|||
|
||||
// Default logo to open version (enterprise_installed function only works in login status).
|
||||
if (!file_exists(ENTERPRISE_DIR.'/load_enterprise.php') || !isset($config['custom_support_logo'])) {
|
||||
if (is_metaconsole() === true) {
|
||||
return '../../images/icono_support.png';
|
||||
}
|
||||
|
||||
return 'images/icono_support.png';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue