add new custom field in visual styles meta

This commit is contained in:
daniel 2017-03-16 14:35:31 +01:00
parent e252135979
commit b9b040665e
1 changed files with 39 additions and 0 deletions

View File

@ -467,6 +467,7 @@ function config_update_config () {
$error_update[] = __('Font size'); $error_update[] = __('Font size');
if (!config_update_value ('flash_charts', (bool) get_parameter ('flash_charts'))) if (!config_update_value ('flash_charts', (bool) get_parameter ('flash_charts')))
$error_update[] = __('Interactive charts'); $error_update[] = __('Interactive charts');
if (!config_update_value ('custom_logo', (string) get_parameter ('custom_logo'))) if (!config_update_value ('custom_logo', (string) get_parameter ('custom_logo')))
$error_update[] = __('Custom logo'); $error_update[] = __('Custom logo');
if (!config_update_value ('custom_logo_login', (string) get_parameter ('custom_logo_login'))) if (!config_update_value ('custom_logo_login', (string) get_parameter ('custom_logo_login')))
@ -479,6 +480,20 @@ function config_update_config () {
$error_update[] = __('Custom title2 login'); $error_update[] = __('Custom title2 login');
if (!config_update_value ('login_background', (string) get_parameter ('login_background'))) if (!config_update_value ('login_background', (string) get_parameter ('login_background')))
$error_update[] = __('Login background'); $error_update[] = __('Login background');
if (!config_update_value ('meta_custom_logo', (string) get_parameter ('meta_custom_logo')))
$error_update[] = __('Custom logo metaconsole');
if (!config_update_value ('meta_custom_logo_login', (string) get_parameter ('meta_custom_logo_login')))
$error_update[] = __('Custom logo login metaconsole');
if (!config_update_value ('meta_custom_splash_login', (string) get_parameter ('meta_custom_splash_login')))
$error_update[] = __('Custom splash login metaconsole');
if (!config_update_value ('meta_custom_title1_login', (string) get_parameter ('meta_custom_title1_login')))
$error_update[] = __('Custom title1 login metaconsole');
if (!config_update_value ('meta_custom_title2_login', (string) get_parameter ('meta_custom_title2_login')))
$error_update[] = __('Custom title2 login metaconsole');
if (!config_update_value ('meta_login_background', (string) get_parameter ('meta_login_background')))
$error_update[] = __('Login background metaconsole');
if (!config_update_value ('vc_refr', get_parameter('vc_refr'))) if (!config_update_value ('vc_refr', get_parameter('vc_refr')))
$error_update[] = __('Default interval for refresh on Visual Console'); $error_update[] = __('Default interval for refresh on Visual Console');
if (!config_update_value ('vc_line_thickness', (int) get_parameter('vc_line_thickness'))) if (!config_update_value ('vc_line_thickness', (int) get_parameter('vc_line_thickness')))
@ -1065,6 +1080,10 @@ function config_process_config () {
config_update_value ('login_background', ''); config_update_value ('login_background', '');
} }
if (!isset ($config["login_background_meta"])) {
config_update_value ('login_background_meta', 'background_metaconsole.png');
}
if (!isset ($config["paginate_module"])) { if (!isset ($config["paginate_module"])) {
config_update_value ('paginate_module', false); config_update_value ('paginate_module', false);
} }
@ -1105,6 +1124,26 @@ function config_process_config () {
config_update_value ('custom_title2_login', __('NEXT GENERATION')); config_update_value ('custom_title2_login', __('NEXT GENERATION'));
} }
if (!isset ($config["meta_custom_logo"])) {
config_update_value ('meta_custom_logo', 'logo_pandora_metaconsola.png');
}
if (!isset ($config["meta_custom_logo_login"])) {
config_update_value ('meta_custom_logo_login', 'pandora_logo.png');
}
if (!isset ($config["meta_custom_splash_login"])) {
config_update_value ('meta_custom_splash_login', 'splash_image_metaconsola.png');
}
if (!isset ($config["meta_custom_title1_login"])) {
config_update_value ('meta_custom_title1_login', __('PANDORA FMS NEXT GENERATION'));
}
if (!isset ($config["meta_custom_title2_login"])) {
config_update_value ('meta_custom_title2_login', __('METACONSOLE'));
}
if (!isset ($config['history_db_enabled'])) { if (!isset ($config['history_db_enabled'])) {
config_update_value ( 'history_db_enabled', false); config_update_value ( 'history_db_enabled', false);
} }