From 3ab0b1c4cb4ce5b6bec19fcbeb7b5e532334faa7 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Tue, 14 Mar 2023 08:04:48 +0100 Subject: [PATCH] Minor fixes --- .../godmode/users/configure_user.php | 6 ++--- .../include/class/AgentWizard.class.php | 26 ++++++++++--------- pandora_console/include/styles/pandora.css | 2 +- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index 1555a1c2fc..cb7227b316 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -1011,13 +1011,13 @@ if (!$new_user) { $user_id .= html_print_input_hidden('id_user', $id, true); $user_id .= ''; - $apiTokenContentElements[] = ''.__('API Token').''; + $apiTokenContentElements[] = ''.__('API Token').''; $apiTokenContentElements[] = html_print_button( __('Renew'), 'renew_api_token', false, sprintf( - 'javascript:renewAPIToken(\'%s\', \'%s\', \'%s\')', + 'javascript:renewAPIToken("%s", "%s", "%s")', __('Warning'), __('The API token will be renewed. After this action, the last token you were using will not work. Are you sure?'), 'user_profile_form', @@ -1033,7 +1033,7 @@ if (!$new_user) { 'show_api_token', false, sprintf( - 'javascript:showAPIToken(\'%s\', \'%s\')', + 'javascript:showAPIToken("%s", "%s")', __('API Token'), base64_encode(__('Your API Token is:').' 
'.users_get_API_token($id).'
 '.__('Please, avoid share this string with others.')), ), diff --git a/pandora_console/include/class/AgentWizard.class.php b/pandora_console/include/class/AgentWizard.class.php index 9c25403458..2580d17371 100644 --- a/pandora_console/include/class/AgentWizard.class.php +++ b/pandora_console/include/class/AgentWizard.class.php @@ -1329,7 +1329,7 @@ class AgentWizard extends HTML $table->rowstyle[$i] = 'color:#ccc;'; $data[0] .= ' '; $data[0] .= html_print_image( - 'images/error.png', + 'images/alert-warning@svg.svg', true, ['title' => $msgError] ); @@ -1347,7 +1347,7 @@ class AgentWizard extends HTML // Img Server. if ($this->serverType == SERVER_TYPE_ENTERPRISE_SATELLITE) { $img_server = html_print_image( - 'images/satellite.png', + 'images/satellite@os.svg', true, [ 'title' => __('Enterprise Satellite server'), @@ -1357,7 +1357,7 @@ class AgentWizard extends HTML } else { if ($module['execution_type'] == EXECUTION_TYPE_PLUGIN) { $img_server = html_print_image( - 'images/plugin.png', + 'images/plugins@svg.svg', true, [ 'title' => __('Plugin server'), @@ -1367,7 +1367,7 @@ class AgentWizard extends HTML } else { if ($this->protocol === 'wmi') { $img_server = html_print_image( - 'images/wmi.png', + 'images/WMI@svg.svg', true, [ 'title' => __('WMI server'), @@ -1376,7 +1376,7 @@ class AgentWizard extends HTML ); } else { $img_server = html_print_image( - 'images/op_network.png', + 'images/network@svg.svg', true, [ 'title' => __('Network server'), @@ -4090,7 +4090,7 @@ class AgentWizard extends HTML $blockTitle .= ''.$block['name']; $blockTitle .= '  '; $blockTitle .= html_print_image( - 'images/tip_help.png', + 'images/info@svg.svg', true, [ 'title' => __('Modules selected'), @@ -4110,7 +4110,7 @@ class AgentWizard extends HTML $blockTitle .= '  '; $blockTitle .= html_print_image( - 'images/tip_help.png', + 'images/info@svg.svg', true, [ 'title' => __('Modules selected'), @@ -4205,6 +4205,9 @@ class AgentWizard extends HTML $table->size[4] = '140px'; $table->size[5] = '3%'; + $table->align = []; + $table->align[1] = 'center'; + // If is needed show current value, we must correct the table. if ($showCurrentValue === true) { // Correct headers. @@ -4273,7 +4276,7 @@ class AgentWizard extends HTML false, false, '', - $md5IdBlock, + $md5IdBlock.' w100p', '', '', false, @@ -4293,8 +4296,9 @@ class AgentWizard extends HTML 1, 20, $module['description'], - 'form=\'form-create-modules\' class=\'min-height-50px\'', - true + 'form=\'form-create-modules\'', + true, + 'w100p' ); } @@ -4703,8 +4707,6 @@ class AgentWizard extends HTML 'toggle_class' => '', 'container_class' => 'white-box-content', 'main_class' => $class, - 'img_a' => 'images/arrow_down_green.png', - 'img_b' => 'images/arrow_right_green.png', 'clean' => false, 'reverseImg' => $reverseImg, 'switch' => $buttonSwitch, diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 4324dc0175..6fc9930212 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -9306,7 +9306,7 @@ div.stat-win-spinner img { color: #fff !important; font-size: 1.2em; margin-right: 5px !important; - margin-top: -4px; + margin-top: 1px; } .select2-results