Make help and support links in login page customizables - #1709
This commit is contained in:
parent
6db5ced911
commit
a027defccd
|
@ -84,12 +84,11 @@ echo '<div id="header_login">';
|
||||||
echo '<img src="images/custom_logo/pandora_logo_head_3.png" alt="pandora_console">';
|
echo '<img src="images/custom_logo/pandora_logo_head_3.png" alt="pandora_console">';
|
||||||
}
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo '<div id="list_icon_docs_support"><ul>';
|
echo '<div id="list_icon_docs_support"><ul>';
|
||||||
echo '<li><a href="http://wiki.pandorafms.com/" target="_blank"><img src="images/icono_docs.png" alt="docs pandora"></a></li>';
|
echo '<li><a href="'.$config['custom_docs_url'].'" target="_blank"><img src="images/icono_docs.png" alt="docs pandora"></a></li>';
|
||||||
echo '<li>' . __('Docs') . '</li>';
|
echo '<li>' . __('Docs') . '</li>';
|
||||||
if (file_exists (ENTERPRISE_DIR . "/load_enterprise.php")) {
|
if (file_exists (ENTERPRISE_DIR . "/load_enterprise.php")) {
|
||||||
echo '<li id="li_margin_left"><a href="https://support.artica.es" target="_blank"><img src="images/icono_support.png" alt="support pandora"></a></li>';
|
echo '<li id="li_margin_left"><a href="'.$config['custom_support_url'].'" target="_blank"><img src="images/icono_support.png" alt="support pandora"></a></li>';
|
||||||
} else {
|
} else {
|
||||||
echo '<li id="li_margin_left"><a href="https://pandorafms.com/monitoring-services/support/" target="_blank"><img src="images/icono_support.png" alt="support pandora"></a></li>';
|
echo '<li id="li_margin_left"><a href="https://pandorafms.com/monitoring-services/support/" target="_blank"><img src="images/icono_support.png" alt="support pandora"></a></li>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -248,6 +248,18 @@ if(enterprise_installed()) {
|
||||||
$row++;
|
$row++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(enterprise_installed()) {
|
||||||
|
$table_styles->data[$row][0] = __('Docs URL (login)');
|
||||||
|
$table_styles->data[$row][1] = html_print_input_text ('custom_docs_url', $config["custom_docs_url"], '', 50, 50, true);
|
||||||
|
$row++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(enterprise_installed()) {
|
||||||
|
$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);
|
||||||
|
$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') . ' ' .
|
||||||
html_print_radio_button_extended ('fixed_graph', 1, '', $config["fixed_graph"], $open, '','',true) .
|
html_print_radio_button_extended ('fixed_graph', 1, '', $config["fixed_graph"], $open, '','',true) .
|
||||||
|
|
|
@ -510,6 +510,11 @@ 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 ('custom_docs_url', (string) get_parameter ('custom_docs_url')))
|
||||||
|
$error_update[] = __('Custom Docs url');
|
||||||
|
if (!config_update_value ('custom_support_url', (string) get_parameter ('custom_support_url')))
|
||||||
|
$error_update[] = __('Custom support url');
|
||||||
|
|
||||||
if (!config_update_value ('meta_custom_logo', (string) get_parameter ('meta_custom_logo')))
|
if (!config_update_value ('meta_custom_logo', (string) get_parameter ('meta_custom_logo')))
|
||||||
$error_update[] = __('Custom logo metaconsole');
|
$error_update[] = __('Custom logo metaconsole');
|
||||||
|
@ -523,6 +528,11 @@ function config_update_config () {
|
||||||
$error_update[] = __('Custom title2 login metaconsole');
|
$error_update[] = __('Custom title2 login metaconsole');
|
||||||
if (!config_update_value ('meta_login_background', (string) get_parameter ('meta_login_background')))
|
if (!config_update_value ('meta_login_background', (string) get_parameter ('meta_login_background')))
|
||||||
$error_update[] = __('Login background metaconsole');
|
$error_update[] = __('Login background metaconsole');
|
||||||
|
|
||||||
|
if (!config_update_value ('meta_custom_docs_url', (string) get_parameter ('meta_custom_docs_url')))
|
||||||
|
$error_update[] = __('Custom Docs url');
|
||||||
|
if (!config_update_value ('meta_custom_support_url', (string) get_parameter ('meta_custom_support_url')))
|
||||||
|
$error_update[] = __('Custom support url');
|
||||||
|
|
||||||
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');
|
||||||
|
@ -1176,6 +1186,22 @@ function config_process_config () {
|
||||||
if (!isset ($config["custom_title2_login"])) {
|
if (!isset ($config["custom_title2_login"])) {
|
||||||
config_update_value ('custom_title2_login', __('NEXT GENERATION'));
|
config_update_value ('custom_title2_login', __('NEXT GENERATION'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset ($config["custom_docs_url"])) {
|
||||||
|
config_update_value ('custom_docs_url', 'http://wiki.pandorafms.com/');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset ($config["custom_support_url"])) {
|
||||||
|
config_update_value ('custom_support_url', 'https://support.artica.es');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset ($config["meta_custom_docs_url"])) {
|
||||||
|
config_update_value ('meta_custom_docs_url', 'http://wiki.pandorafms.com/index.php?title=Main_Page');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset ($config["meta_custom_support_url"])) {
|
||||||
|
config_update_value ('meta_custom_support_url', 'https://support.artica.es');
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset ($config["meta_custom_logo"])) {
|
if (!isset ($config["meta_custom_logo"])) {
|
||||||
config_update_value ('meta_custom_logo', 'logo_pandora_metaconsola.png');
|
config_update_value ('meta_custom_logo', 'logo_pandora_metaconsola.png');
|
||||||
|
|
Loading…
Reference in New Issue