From bec91f39cc50d01f0ae4dd6b0f73e89cfd31fd59 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 14 Dec 2017 13:28:46 +0100 Subject: [PATCH] add new field external link login user --- pandora_console/godmode/users/configure_user.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index 0c88e1e695..afd33b961e 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -180,7 +180,7 @@ if ($create_user) { $values["data_section"] = $dashboard; } else if (io_safe_output($values['section']) == 'Visual console') { $values["data_section"] = $visual_console; - } else if ($values['section'] == 'Other'){ + } else if ($values['section'] == 'Other' || io_safe_output($values['section']) == 'External link'){ $values["data_section"] = get_parameter ('data_section'); } @@ -304,7 +304,7 @@ if ($update_user) { $values["data_section"] = $dashboard; } else if (io_safe_output($values['section']) == 'Visual console') { $values["data_section"] = $visual_console; - } else if ($values['section'] == 'Other'){ + } else if ($values['section'] == 'Other' || io_safe_output($values['section']) == 'External link'){ $values["data_section"] = get_parameter ('data_section'); } @@ -570,6 +570,7 @@ $values = array ( 'Group view'=>__('Group view'), 'Tactical view'=>__('Tactical view'), 'Alert detail' => __('Alert detail'), + 'External link' => __('External link'), 'Other'=>__('Other')); if (enterprise_installed() && !is_metaconsole()) { $values['Dashboard'] = __('Dashboard'); @@ -870,6 +871,11 @@ function show_data_section () { $("#dashboard").css("display", "none"); $("#visual_console").css("display", "none"); break; + case : + $("#text-data_section").css("display", ""); + $("#dashboard").css("display", "none"); + $("#visual_console").css("display", "none"); + break; case : $("#text-data_section").css("display", ""); $("#dashboard").css("display", "none");