#12524 fixed opening items in new tabs Monitoring and Alerts view
This commit is contained in:
parent
eebab43e36
commit
03fea82124
|
@ -1708,7 +1708,7 @@ if (empty($result) === false) {
|
|||
|
||||
// TODO: Calculate hash access before to use it more simply like other sections. I.E. Events view
|
||||
if (is_metaconsole() === true) {
|
||||
echo "<form id='agent-redirection-".$inc_id."' method='POST' action='".$row['server_url'].'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$row['id_agent']."'>";
|
||||
echo "<form id='agent-redirection-".$inc_id."' method='POST' target='_blank' action='".$row['server_url'].'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$row['id_agent']."'>";
|
||||
html_print_input_hidden(
|
||||
'loginhash',
|
||||
'auto',
|
||||
|
@ -1725,7 +1725,7 @@ if (empty($result) === false) {
|
|||
false
|
||||
);
|
||||
echo '</form>';
|
||||
$agent_link = "<a target=_blank onclick='event.preventDefault(); document.getElementById(\"agent-redirection-".$inc_id."\").submit();' href='#'>";
|
||||
$agent_link = "<a onclick='event.preventDefault(); document.getElementById(\"agent-redirection-".$inc_id."\").submit();' href='".$row['server_url'].'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$row['id_agent']."'>";
|
||||
|
||||
$agent_alias = ui_print_truncate_text(
|
||||
$agent_alias,
|
||||
|
@ -2257,7 +2257,7 @@ if (empty($result) === false) {
|
|||
$table->cellclass[][2] = 'action_buttons';
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
echo "<form id='agent-edit-redirection-".$inc_id."' method='POST' action='".$row['server_url']."index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=module&edit_module=1'>";
|
||||
echo "<form id='agent-edit-redirection-".$inc_id."' target='_blank' method='POST' action='".$row['server_url']."index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=module&edit_module=1'>";
|
||||
html_print_input_hidden(
|
||||
'id_agente',
|
||||
$row['id_agent'],
|
||||
|
@ -2285,7 +2285,15 @@ if (empty($result) === false) {
|
|||
);
|
||||
|
||||
echo '</form>';
|
||||
$agent_link = "<a target=_blank onclick='event.preventDefault(); document.getElementById(\"agent-edit-redirection-".$inc_id."\").submit();' href='#'>";
|
||||
|
||||
$url_edit_module = $row['server_url'];
|
||||
$url_edit_module .= 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&';
|
||||
$url_edit_module .= '&id_agente='.$row['id_agent'];
|
||||
$url_edit_module .= '&tab=module&id_agent_module='.$row['id_agente_modulo'].'&edit_module=1';
|
||||
$url_edit_module .= '&loginhash=auto&loginhash_data='.$row['hashdata'];
|
||||
$url_edit_module .= '&loginhash_user='.str_rot13($row['user']);
|
||||
|
||||
$agent_link = "<a onclick='event.preventDefault(); document.getElementById(\"agent-edit-redirection-".$inc_id."\").submit();' href='".$url_edit_module."'>";
|
||||
|
||||
$agent_alias = ui_print_truncate_text(
|
||||
$agent_alias,
|
||||
|
|
Loading…
Reference in New Issue