From 1a86eb0ccdcec384599055674d9e8e1988d5bbb6 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 7 Jul 2011 10:49:45 +0000 Subject: [PATCH] 2011-07-07 Sergio Martin * operation/servers/view_server_detail.php: Updated missed filed in the last commit git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4521 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../operation/servers/view_server_detail.php | 14 +++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index c3332973ee..42e543470f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-07-07 Sergio Martin + + * operation/servers/view_server_detail.php: Updated missed + filed in the last commit + 2011-07-07 Sergio Martin * pandoradb.sql diff --git a/pandora_console/operation/servers/view_server_detail.php b/pandora_console/operation/servers/view_server_detail.php index 2837a765bd..bca46d2796 100644 --- a/pandora_console/operation/servers/view_server_detail.php +++ b/pandora_console/operation/servers/view_server_detail.php @@ -48,8 +48,7 @@ if (check_acl ($config['id_user'], 0, "PM")) { if (isset ($_GET["force"])) { $id = (int) get_parameter_get ("force", 0); - $values = array('utimestamp' => 0, 'status' => 1); - db_process_sql_update('trecon_task', $values, array('id_rt' => $id)); + servers_force_recon_task($id); } } @@ -99,9 +98,14 @@ $table->align[8] = "center"; foreach ($recon_tasks as $task) { $data = array (); - $data[0] = ''; - $data[0] .= html_print_image ("images/target.png", true, array ("title" => __('Force'))); - $data[0] .= ''; + if($task["disabled"] == 0) { + $data[0] = ''; + $data[0] .= html_print_image ("images/target.png", true, array ("title" => __('Force'))); + $data[0] .= ''; + } + else { + $data[0] = ''; + } $data[1] = ''. $task["name"].'';