". __('Configuration detail') . " - $server_name "; echo " "; echo ""; echo ""; echo ""; echo ""; // Show network tasks for Recon Server if ($row["recon_server"]) { $sql = "SELECT * FROM trecon_task WHERE id_recon_server = $id_server"; // Connect DataBase $result=mysql_query($sql); if (mysql_num_rows($result)){ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $color=1; while ($row=mysql_fetch_array($result)){ if ($color == 1){ $tdcolor = "datos"; $color = 0; } else { $tdcolor = "datos2"; $color = 1; } $id_rt = $row["id_rt"]; $name = $row["name"]; $status = $row["status"]; $utimestamp = $row["utimestamp"]; $interval = $row["interval_sweep"]; $create_incident = $row["create_incident"]; $subnet = $row["subnet"]; $id_os = $row["id_os"]; $id_group = $row["id_group"]; $id_network_profile = $row["id_network_profile"]; echo ""; // Name echo ""; echo "
".__('Force')."".__('Task name')."".__('Interval')."".__('Network')."".__('Status')."".__('Network profile')."".__('Group')."".__('OS') ."".__('Progress')."".__('Updated at')."".__('Op')."
"; echo ""; echo ""; echo "$name"; // Interval echo ""; if ($interval != 0){ if ($interval < 43200) echo "~ ".floor ($interval / 3600)." ".__('hours'); else echo "~ ".floor ($interval / 86400)." ".__('days'); } else echo $interval; // Subnet echo ""; echo $subnet; // status echo ""; if ($status == -1) echo __('Done'); else echo __('Pending'); // Network profile echo ""; echo give_network_profile_name($id_network_profile); // Group echo ""; echo ""; // OS echo ""; if ($id_os > 0){ $icon = get_db_sql ("SELECT icon_name FROM tconfig_os WHERE id_os = $id_os"); echo ""; } // Progress echo ""; if ($status < 0) echo "-"; else echo ''; // Last execution echo ""; $keepalive = format_datetime ( $utimestamp ); echo substr($keepalive,0,25).""; if (give_acl ($config['id_user'], 0, "PM")) { echo ""; echo ""; } } echo "
"; } else { echo "This server has no recon tasks assigned"; } } ?>