[Rebranding] Moved rebranding to visual styles section
This commit is contained in:
parent
ef07eff769
commit
3497132517
|
@ -258,7 +258,19 @@ if(enterprise_installed()) {
|
||||||
$table_styles->data[$row][0] = __('Support URL (login)');
|
$table_styles->data[$row][0] = __('Support URL (login)');
|
||||||
$table_styles->data[$row][1] = html_print_input_text ('custom_support_url', $config["custom_support_url"], '', 50, 50, true);
|
$table_styles->data[$row][1] = html_print_input_text ('custom_support_url', $config["custom_support_url"], '', 50, 50, true);
|
||||||
$row++;
|
$row++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(enterprise_installed()) {
|
||||||
|
$table_styles->data[$row][0] = __('Product name');
|
||||||
|
$table_styles->data[$row][1] = html_print_input_text('rb_product_name', get_product_name(), '', 30, 255, true);
|
||||||
|
$row++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(enterprise_installed()) {
|
||||||
|
$table_styles->data[$row][0] = __('Copyright notice');
|
||||||
|
$table_styles->data[$row][1] = html_print_input_text('rb_copyright_notice', get_copyright_notice(), '', 30, 255, true);
|
||||||
|
$row++;
|
||||||
|
}
|
||||||
|
|
||||||
$table_styles->data[$row][0] = __('Disable logo in graphs');
|
$table_styles->data[$row][0] = __('Disable logo in graphs');
|
||||||
$table_styles->data[$row][1] = __('Yes') . ' ' .
|
$table_styles->data[$row][1] = __('Yes') . ' ' .
|
||||||
|
|
|
@ -247,10 +247,6 @@ function config_update_config () {
|
||||||
$error_update[] = __('Metaconsole agent cache');
|
$error_update[] = __('Metaconsole agent cache');
|
||||||
if (!config_update_value ('log_collector', (bool)get_parameter('log_collector')))
|
if (!config_update_value ('log_collector', (bool)get_parameter('log_collector')))
|
||||||
$error_update[] = __('Activate Log Collector');
|
$error_update[] = __('Activate Log Collector');
|
||||||
if (!config_update_value ('rb_product_name', get_parameter('rb_product_name')))
|
|
||||||
$error_update[] = __('Product name');
|
|
||||||
if (!config_update_value ('rb_copyright_notice', get_parameter('rb_copyright_notice')))
|
|
||||||
$error_update[] = __('Copyright notice');
|
|
||||||
if (!config_update_value ('enable_update_manager', get_parameter('enable_update_manager')))
|
if (!config_update_value ('enable_update_manager', get_parameter('enable_update_manager')))
|
||||||
$error_update[] = __('Enable Update Manager');
|
$error_update[] = __('Enable Update Manager');
|
||||||
|
|
||||||
|
@ -521,8 +517,12 @@ function config_update_config () {
|
||||||
$error_update[] = __('Custom Docs url');
|
$error_update[] = __('Custom Docs url');
|
||||||
if (!config_update_value ('custom_support_url', (string) get_parameter ('custom_support_url')))
|
if (!config_update_value ('custom_support_url', (string) get_parameter ('custom_support_url')))
|
||||||
$error_update[] = __('Custom support url');
|
$error_update[] = __('Custom support url');
|
||||||
|
if (!config_update_value ('rb_product_name', (string) get_parameter ('rb_product_name')))
|
||||||
if (!config_update_value ('meta_custom_logo', (string) get_parameter ('meta_custom_logo')))
|
$error_update[] = __('Product name');
|
||||||
|
if (!config_update_value ('rb_copyright_notice', (string) get_parameter ('rb_copyright_notice')))
|
||||||
|
$error_update[] = __('Copyright notice');
|
||||||
|
|
||||||
|
if (!config_update_value ('meta_custom_logo', (string) get_parameter ('meta_custom_logo')))
|
||||||
$error_update[] = __('Custom logo metaconsole');
|
$error_update[] = __('Custom logo metaconsole');
|
||||||
if (!config_update_value ('meta_custom_logo_login', (string) get_parameter ('meta_custom_logo_login')))
|
if (!config_update_value ('meta_custom_logo_login', (string) get_parameter ('meta_custom_logo_login')))
|
||||||
$error_update[] = __('Custom logo login metaconsole');
|
$error_update[] = __('Custom logo login metaconsole');
|
||||||
|
@ -1053,14 +1053,6 @@ function config_process_config () {
|
||||||
config_update_value ('log_collector', 0);
|
config_update_value ('log_collector', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset ($config['rb_product_name'])) {
|
|
||||||
config_update_value('rb_product_name', get_product_name());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset ($config['rb_copyright_notice'])) {
|
|
||||||
config_update_value('rb_copyright_notice', get_copyright_notice());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset ($config["enable_update_manager"])) {
|
if (!isset ($config["enable_update_manager"])) {
|
||||||
config_update_value ('enable_update_manager', 1);
|
config_update_value ('enable_update_manager', 1);
|
||||||
}
|
}
|
||||||
|
@ -1219,6 +1211,14 @@ function config_process_config () {
|
||||||
if (!isset ($config["custom_support_url"])) {
|
if (!isset ($config["custom_support_url"])) {
|
||||||
config_update_value ('custom_support_url', 'https://support.artica.es');
|
config_update_value ('custom_support_url', 'https://support.artica.es');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset ($config['rb_product_name'])) {
|
||||||
|
config_update_value('rb_product_name', get_product_name());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset ($config['rb_copyright_notice'])) {
|
||||||
|
config_update_value('rb_copyright_notice', get_copyright_notice());
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset ($config["meta_custom_docs_url"])) {
|
if (!isset ($config["meta_custom_docs_url"])) {
|
||||||
config_update_value ('meta_custom_docs_url', 'http://wiki.pandorafms.com/index.php?title=Main_Page');
|
config_update_value ('meta_custom_docs_url', 'http://wiki.pandorafms.com/index.php?title=Main_Page');
|
||||||
|
|
Loading…
Reference in New Issue