diff --git a/pandora_agents/unix/pandora_agent.redhat.spec b/pandora_agents/unix/pandora_agent.redhat.spec index 4b8b28c516..9ddfb5b173 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -25,7 +25,7 @@ Requires(preun): chkconfig /bin/rm /usr/sbin/userdel Requires: coreutils unzip Requires: util-linux procps grep Requires: /sbin/ip /bin/awk -Requires: perl(Sys::Syslog) perl(IO::Compress::Zip) +Requires: perl(Sys::Syslog) perl(IO::Compress::Zip) perl(File::Copy) perl(Sys::Hostname) # Required by plugins #Requires: sh-utils sed passwd net-tools rpm AutoReq: 0 diff --git a/pandora_agents/unix/pandora_agent.redhat_bin.spec b/pandora_agents/unix/pandora_agent.redhat_bin.spec index 9a5b2f7111..1c4f317d25 100644 --- a/pandora_agents/unix/pandora_agent.redhat_bin.spec +++ b/pandora_agents/unix/pandora_agent.redhat_bin.spec @@ -26,9 +26,7 @@ Requires(preun): chkconfig /bin/rm /usr/sbin/userdel Requires: coreutils unzip Requires: util-linux procps grep Requires: /sbin/ip /bin/awk -Requires: perl(Sys::Syslog) perl(IO::Compress::Zip) -# Required by plugins -#Requires: sh-utils sed passwd net-tools rpm +#Requires: libnsl AutoReq: 0 Provides: %{name}-%{version} diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index 9521e870e1..add3ab4019 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -366,59 +366,37 @@ echo sprintf('
', $menuTypeClass); $header_autorefresh_counter .= '
'; } - // Button for feedback pandora. - if (enterprise_installed() && $config['activate_feedback']) { - $header_feedback = '
'; - $header_feedback .= ''; - $header_feedback .= ''; - $header_feedback .= html_print_image( - 'images/send_feedback@header.svg', - true, - [ - 'class' => 'main_menu_icon invert_filter', - 'title' => __('Feedback'), - 'id' => 'feedback-header', - 'alt' => __('Feedback'), - 'style' => 'cursor: pointer;', - ] - ); - $header_feedback .= '
'; - } - - - // Support. - if (enterprise_installed()) { - $header_support_link = $config['custom_support_url']; + $modal_box = ''; - // Documentation. - $header_docu = '
'; - $header_docu .= ''; - $header_docu .= html_print_image( - 'images/documentation@header.svg', - true, + $modal_help = html_print_div( [ - 'title' => __('Go to documentation'), - 'class' => 'main_menu_icon bot invert_filter', - 'alt' => 'user', - ] + 'id' => 'modal-help-content', + 'content' => html_print_image( + 'images/help@header.svg', + true, + [ + 'title' => __('Help'), + 'class' => 'main_menu_icon bot invert_filter', + 'alt' => 'user', + ] + ).$modal_box, + ], + true, ); - $header_docu .= '
'; // User. @@ -472,11 +450,11 @@ echo sprintf('
', $menuTypeClass); echo ''; echo '
'; echo '
'; - echo '
'.$header_support, $header_docu, $header_user, $header_logout.'
'; + echo '
'.$modal_help, $header_user, $header_logout.'
'; } else { echo '
'.$config['custom_title_header'].''.$config['custom_subtitle_header'].'
'.$header_searchbar.'
-
'.$header_autorefresh, $header_autorefresh_counter, $header_discovery, $header_welcome, $servers_list, $header_feedback, $header_support, $header_docu, $header_user, $header_logout.'
'; +
'.$header_autorefresh, $header_autorefresh_counter, $header_discovery, $header_welcome, $servers_list, $modal_help, $header_user, $header_logout.'
'; } ?> @@ -1008,8 +986,6 @@ echo sprintf('
', $menuTypeClass); // Feedback. $("#feedback-header").click(function () { - // Clean DOM. - $("#feedback-header").empty(); // Function charge Modal. show_feedback(); }); @@ -1115,6 +1091,22 @@ echo sprintf('
', $menuTypeClass); return false; }); + + + $(document).click(function(event) { + if (!$(event.target).closest('#modal-help-content').length && + $('#modal_help').hasClass('invisible') === false) { + $('#modal_help').addClass('invisible'); + } + }); + + $('#modal-help-content').on('click', (e) => { + if($(e.target).prop('tagName') === 'A') { + $('#modal_help').addClass('invisible'); + } else { + $('#modal_help').removeClass('invisible'); + } + }); }); /* ]]> */ diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index d3d9c7e686..e18d278ac8 100755 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -30,7 +30,7 @@ require_once __DIR__.'/../include/functions_html.php'; echo '