diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index 805567677b..cb49e49227 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -377,21 +377,23 @@ if ($new_agent === true) { $tableAgent->data['additional_alias'][0] = html_print_checkbox_switch('alias_as_name', 1, $config['alias_as_name'], true); $tableAgent->data['additional_alias'][1] = __('Use alias as name'); } else { - $tableAgent->data['alias'][0] .= html_print_anchor( - [ - 'href' => 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=remote_configuration&id_agente='.$id_agente.'&disk_conf='.$agent_md5, - 'content' => html_print_image( - 'images/remote-configuration@svg.svg', - true, - [ - 'border' => 0, - 'title' => __('This agent can be remotely configured'), - 'class' => 'invert_filter after_input_icon', - ] - ), - ], - true - ); + if ($remote_agent === true) { + $tableAgent->data['alias'][0] .= html_print_anchor( + [ + 'href' => 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=remote_configuration&id_agente='.$id_agente.'&disk_conf='.$agent_md5, + 'content' => html_print_image( + 'images/remote-configuration@svg.svg', + true, + [ + 'border' => 0, + 'title' => __('This agent can be remotely configured'), + 'class' => 'invert_filter after_input_icon', + ] + ), + ], + true + ); + } } // Ip adress. @@ -794,29 +796,30 @@ $tableAdvancedAgent->data['agent_quiet'][0] = html_print_checkbox_switch('quiet' // Remote configuration. if ($new_agent === false && isset($filename) === true && file_exists($filename['md5']) === true) { $tableAdvancedAgent->data['caption_remote_configuration'][0] = __('Remote configuration'); - $tableAdvancedAgent->rowclass['remote_configuration'] = 'w540px'; + $tableAdvancedAgent->cellstyle['remote_configuration'][0] = 'display: flex; align-items: center;'; + $tableAdvancedAgent->cellclass['remote_configuration'][0] = 'w540px'; $tableAdvancedAgent->data['remote_configuration'][0] = html_print_input_text( 'remote_file_timestamp', date('F d Y H:i:s', fileatime($filename['md5'])), '', - 68, - 255, + 0, + 100, true, true, false, '', - '' + 'w540px' ); $tableAdvancedAgent->data['remote_configuration'][0] .= html_print_anchor( [ 'href' => 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=main&disk_conf_delete=1&id_agente='.$id_agente, - 'class' => 'after_input_icon', 'content' => html_print_image( - 'images/cross.png', + 'images/delete.svg', true, [ - 'title' => __('Delete remote configuration file'), - 'class' => 'vertical_middle invert_filter mrgn_lft_5px', + 'border' => 0, + 'title' => __('Delete remote configuration file'), + 'class' => 'invert_filter after_input_icon', ] ), ], diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 54a8cee808..85f4b64cba 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -910,7 +910,7 @@ if (isset($_GET['fix_module'])) { } $update_agent = (bool) get_parameter('update_agent'); - +hd($_REQUEST, true); // Update AGENT. if ($update_agent) { // If modified some agent paramenter. diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index 64c85e9da0..497ada7483 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -55,21 +55,25 @@ $sec2 = (string) get_parameter('sec2'); $filterTable = new stdClass(); $filterTable->class = 'fixed_filter_bar'; $filterTable->data = []; -$filterTable->cellstyle[0][0] = 'flex: 0 1 20%;'; -$filterTable->data[0][0] = ''.__('Search').''; +$filterTable->cellstyle[0][0] = 'flex: 0 1 20%;align-items: center;'; +$filterTable->data[0][0] = html_print_div([ 'content' => __('Search') ], true); $filterTable->data[0][0] .= html_print_input_text( 'search_string', $search_string, '', - 15, + 0, 255, - true + true, + false, + false, + '', + 'w100p' ); $filterTable->data[0][0] .= html_print_input_hidden('search', 1, true); if ((bool) $policy_page === false) { $filterTable->cellstyle[0][1] = 'flex: 0 1 20%'; - $filterTable->data[0][1] = ''.__('Show in hierachy mode').''; + $filterTable->data[0][1] = html_print_div([ 'content' => __('Show in hierachy mode') ], true); $filterTable->data[0][1] .= html_print_checkbox_switch( 'status_hierachy_mode', '', @@ -1205,7 +1209,7 @@ foreach ($modules as $module) { } if (check_acl_one_of_groups($config['id_user'], $all_groups, 'AW')) { - echo '