diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php
index 290e44f262..7a99ae494c 100755
--- a/pandora_console/general/login_page.php
+++ b/pandora_console/general/login_page.php
@@ -102,12 +102,11 @@ echo '
';
-
echo '';
- echo '
';
+ echo '
';
echo '- ' . __('Docs') . '
';
if (file_exists (ENTERPRISE_DIR . "/load_enterprise.php")) {
- echo '
';
+ echo '
';
} else {
echo '
';
}
diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php
index 8f25bdb3a4..b8e2834da3 100755
--- a/pandora_console/godmode/setup/setup_visuals.php
+++ b/pandora_console/godmode/setup/setup_visuals.php
@@ -248,6 +248,18 @@ if(enterprise_installed()) {
$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][1] = __('Yes') . ' ' .
html_print_radio_button_extended ('fixed_graph', 1, '', $config["fixed_graph"], $open, '','',true) .
diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php
index 71dd08e199..c817482f96 100644
--- a/pandora_console/include/functions_config.php
+++ b/pandora_console/include/functions_config.php
@@ -512,6 +512,11 @@ function config_update_config () {
$error_update[] = __('Custom title2 login');
if (!config_update_value ('login_background', (string) get_parameter ('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')))
$error_update[] = __('Custom logo metaconsole');
@@ -525,6 +530,11 @@ function config_update_config () {
$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 ('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')))
$error_update[] = __('Default interval for refresh on Visual Console');
@@ -1185,6 +1195,22 @@ function config_process_config () {
if (!isset ($config["custom_title2_login"])) {
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"])) {
config_update_value ('meta_custom_logo', 'logo_pandora_metaconsola.png');