Ent 4954 urls documentacion soporte al fallar base datos
This commit is contained in:
parent
775289fc20
commit
41e818334e
|
@ -95,6 +95,8 @@ $custom_fields = [
|
|||
'custom_title1_login',
|
||||
'custom_title2_login',
|
||||
'rb_product_name',
|
||||
'custom_docs_url',
|
||||
'custom_support_url',
|
||||
];
|
||||
|
||||
foreach ($custom_fields as $field) {
|
||||
|
@ -112,21 +114,33 @@ $support_logo = ui_get_support_logo();
|
|||
echo '<div id="login_body" '.$login_body_style.'>';
|
||||
echo '<div id="header_login">';
|
||||
|
||||
echo '<div id="list_icon_docs_support"><ul>';
|
||||
if ($docs_logo !== false) {
|
||||
echo '<li><a href="'.$config['custom_docs_url'].'" target="_blank"><img src="'.$docs_logo.'" alt="docs"></a></li>';
|
||||
}
|
||||
echo '<div id="list_icon_docs_support"><ul>';
|
||||
|
||||
echo '<li><a href="'.$config['custom_docs_url'].'" target="_blank">'.__('Docs').'</li>';
|
||||
if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
|
||||
if ($support_logo !== false) {
|
||||
echo '<li id="li_margin_left"><a href="'.$config['custom_docs_url'].'" target="_blank"><img src="'.$support_logo.'" alt="support"></a></li>';
|
||||
if (isset($config['custom_docs_url'])) {
|
||||
if ($docs_logo !== false) {
|
||||
echo '<li><a href="'.ui_get_full_external_url($config['custom_docs_url']).'" target="_blank"><img src="'.$docs_logo.'" alt="docs"></a></li>';
|
||||
}
|
||||
|
||||
echo '<li><a href="'.$config['custom_support_url'].'" target="_blank">'.__('Support').'</li>';
|
||||
} else {
|
||||
echo '<li id="li_margin_left"><a href="https://pandorafms.com/monitoring-services/support/" target="_blank"><img src="'.$support_logo.'" alt="support"></a></li>';
|
||||
echo '<li>'.__('Support').'</li>';
|
||||
echo '<li><a href="'.ui_get_full_external_url($config['custom_docs_url']).'" target="_blank">'.__('Docs').'</li>';
|
||||
} else if (!$custom_conf_enabled) {
|
||||
echo '<li><a href="http://wiki.pandorafms.com/" target="_blank"><img src="'.$docs_logo.'" alt="docs"></a></li>';
|
||||
echo '<li><a href="http://wiki.pandorafms.com/" target="_blank">'.__('Docs').'</li>';
|
||||
}
|
||||
|
||||
if (isset($config['custom_support_url'])) {
|
||||
if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
|
||||
if ($support_logo !== false) {
|
||||
echo '<li id="li_margin_left"><a href="'.ui_get_full_external_url($config['custom_support_url']).'" target="_blank"><img src="'.$support_logo.'" alt="support"></a></li>';
|
||||
}
|
||||
|
||||
echo '<li><a href="'.ui_get_full_external_url($config['custom_support_url']).'" target="_blank">'.__('Support').'</li>';
|
||||
} else {
|
||||
echo '<li id="li_margin_left"><a href="https://pandorafms.com/monitoring-services/support/" target="_blank"><img src="'.$support_logo.'" alt="support"></a></li>';
|
||||
echo '<li>'.__('Support').'</li>';
|
||||
}
|
||||
} else if (!$custom_conf_enabled) {
|
||||
echo '<li id="li_margin_left"><a href="https://support.artica.es" target="_blank"><img src="'.$support_logo.'" alt="support"></a></li>';
|
||||
echo '<li><a href="https://support.artica.es" target="_blank">'.__('Docs').'</li>';
|
||||
}
|
||||
|
||||
echo '</ul></div>';
|
||||
|
|
|
@ -108,9 +108,15 @@ background:black;opacity:0.1;left:0px;top:0px;width:100%;height:100%;
|
|||
}
|
||||
}
|
||||
|
||||
if (!$custom_conf_enabled) {
|
||||
if (!$custom_conf_enabled || isset($config['custom_docs_url_alt'])) {
|
||||
if (isset($config['custom_docs_url_alt'])) {
|
||||
$docs_url = $config['custom_docs_url_alt'];
|
||||
} else {
|
||||
$docs_url = 'https://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Configuration';
|
||||
}
|
||||
|
||||
echo '
|
||||
<a href="https://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Configuration" target="_blank">
|
||||
<a href="'.ui_get_full_external_url($docs_url).'" target="_blank">
|
||||
<div class="modalwikibutto cerrar">
|
||||
<span class="modalwikibuttontex">'.__('Documentation').'
|
||||
</span>
|
||||
|
|
|
@ -5559,11 +5559,11 @@ function ui_get_docs_logo()
|
|||
global $config;
|
||||
|
||||
// Default logo to open version (enterprise_installed function only works in login status).
|
||||
if (!file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
|
||||
if (!file_exists(ENTERPRISE_DIR.'/load_enterprise.php') || !isset($config['custom_docs_logo'])) {
|
||||
return 'images/icono_docs.png';
|
||||
}
|
||||
|
||||
if (empty($config['custom_docs_logo'])) {
|
||||
if ($config['custom_docs_logo'] === '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -5581,11 +5581,11 @@ function ui_get_support_logo()
|
|||
global $config;
|
||||
|
||||
// Default logo to open version (enterprise_installed function only works in login status).
|
||||
if (!file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
|
||||
if (!file_exists(ENTERPRISE_DIR.'/load_enterprise.php') || !isset($config['custom_support_logo'])) {
|
||||
return 'images/icono_support.png';
|
||||
}
|
||||
|
||||
if (empty($config['custom_support_logo'])) {
|
||||
if ($config['custom_support_logo'] === '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -880,6 +880,9 @@ function install_step4()
|
|||
// $config["custom_title1_login_alt"] = "WELCOME TO Pandora FMS";
|
||||
// $config["custom_title2_login_alt"] = "NEXT GENERATION";
|
||||
// $config["rb_product_name_alt"] = "Pandora FMS";
|
||||
// $config["custom_docs_url_alt"] = "http://wiki.pandorafms.com/";
|
||||
// $config["custom_support_url_alt"] = "https://support.artica.es";
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
@ -991,6 +994,8 @@ function install_step4()
|
|||
// $config["custom_title1_login_alt"] = "WELCOME TO Pandora FMS";
|
||||
// $config["custom_title2_login_alt"] = "NEXT GENERATION";
|
||||
// $config["rb_product_name_alt"] = "Pandora FMS";
|
||||
// $config["custom_docs_url_alt"] = "http://wiki.pandorafms.com/";
|
||||
// $config["custom_support_url_alt"] = "https://support.artica.es";
|
||||
|
||||
/*
|
||||
----------Attention--------------------
|
||||
|
|
Loading…
Reference in New Issue