&1'; exec($nc_cmd, $result, $retval); // echo "NC CMD: {$nc_cmd}\n\n"; if (!empty($result)) { if (is_array($result)) { foreach ($result as $resline) { $ncoutput .= htmlspecialchars($resline) . "\n"; } } else { $ncoutput .= htmlspecialchars($result); } } } } include("head.inc"); // Handle the display of all messages here where the user can readily see them if ($input_errors) { print_input_errors($input_errors); } elseif ($do_testport) { // User asked for a port test if ($retval == 0) { // Good host & port $alert_text = '