From 4a8e9bbbda19bbd04e5b5f58eb9f915f89bca3a3 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Wed, 13 Jun 2012 09:56:20 +0000 Subject: [PATCH] 2012-06-13 Juan Manuel Ramon * operation/agentes/estado_agente.php: Improved user feedback when user delete an agent in this view. * operation/agentes/tactical.php: Removed empty links in tactical view. Merged from branches. * godmode/setup/performance.php: Added enterprise_include_once to avoid a PHP error. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6526 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 12 ++++++++++++ pandora_console/godmode/setup/performance.php | 2 +- .../operation/agentes/estado_agente.php | 8 ++++++++ pandora_console/operation/agentes/tactical.php | 14 +++++++------- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0e693c8dcc..ca83154d93 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,15 @@ +2012-06-13 Juan Manuel Ramon + + * operation/agentes/estado_agente.php: Improved user feedback when + user delete an agent in this view. + * operation/agentes/tactical.php: Removed empty links in tactical + view. + + Merged from branches. + + * godmode/setup/performance.php: Added enterprise_include_once to + avoid a PHP error. + 2012-06-13 Hirofumi Kosaka * operation/agentes/estado_ultimopaquete.php: Merged from 4.0.x: diff --git a/pandora_console/godmode/setup/performance.php b/pandora_console/godmode/setup/performance.php index 8967882c76..584032c0b7 100644 --- a/pandora_console/godmode/setup/performance.php +++ b/pandora_console/godmode/setup/performance.php @@ -24,7 +24,7 @@ if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_us return; } // Load enterprise extensions -enterprise_include ('godmode/setup/setup.php'); +enterprise_include_once ('godmode/setup/setup.php'); /* NOTICE FOR DEVELOPERS: diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index 669931fdc1..9be99941e7 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -162,6 +162,14 @@ if (check_acl ($config['id_user'], 0, "AW")) { ui_print_page_header ( __("Agent detail"), "images/bricks.png", false, "agent_status", false, $onheader); +// User is deleting agent +if (isset($result_delete)) { + if ($result_delete) + ui_print_success_message(__("Sucessfully deleted agent")); + else + ui_print_error_message(__("There was an error message deleting the agent")); +} + echo '
'; echo ''; diff --git a/pandora_console/operation/agentes/tactical.php b/pandora_console/operation/agentes/tactical.php index a42da3bb38..e5b91d1cda 100644 --- a/pandora_console/operation/agentes/tactical.php +++ b/pandora_console/operation/agentes/tactical.php @@ -54,7 +54,7 @@ function print_cells_temp ($cells) { if (isset($row["color"])) $color = 'style="color: ' . $row["color"] . ';"'; - if (isset($row["href"])) + if (isset($row["href"]) and !empty($row["href"])) echo ''; else echo ''; @@ -175,27 +175,27 @@ if($is_admin) { $cells[0][0] = __('Local modules rate'); $cells[0][1] = format_numeric($server_performance ["local_modules_rate"]); $cells[0]["color"] = "#729fcf"; - $cells[0]["href"] = "javascript:"; + $cells[0]["href"] = ""; $cells[1][0] = __('Remote modules rate'); $cells[1][1] = format_numeric($server_performance ["remote_modules_rate"]); $cells[1]["color"] = "#729fcf"; - $cells[1]["href"] = "javascript:"; + $cells[1]["href"] = ""; $cells[2][0] = __('Local modules'); $cells[2][1] = format_numeric($server_performance ["total_local_modules"]); $cells[2]["color"] = "#3465a4"; - $cells[2]["href"] = "javascript:"; + $cells[2]["href"] = ""; $cells[3][0] = __('Remote modules'); $cells[3][1] = format_numeric($server_performance ["total_remote_modules"]); $cells[3]["color"] = "#3465a4"; - $cells[3]["href"] = "javascript:"; + $cells[3]["href"] = ""; $cells[4][0] = __('Total running modules'); $cells[4][1] = format_numeric($server_performance ["total_modules"]); $cells[4]["color"] = "#000"; - $cells[4]["href"] = "javascript:"; + $cells[4]["href"] = ""; print_cells_temp ($cells); } @@ -216,7 +216,7 @@ $cells[1]["href"] = "index.php?sec=estado&sec2=operation/agentes/status_monitor& $cells[2][0] = __('Agents unknown'); $cells[2][1] = $data["agents_unknown"]; $cells[2]["color"] = "#aaa"; -$cells[2]["href"] = "javascript:"; +$cells[2]["href"] = "index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=60&status=3"; print_cells_temp ($cells);
'.$row[1].'
'.$row[1].'