'localhost', 'port' => 25) ); if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { $check_id = (int) $_GET['check_id']; $check = $checks[$check_id]; $fp = @fsockopen("tcp://{$check['hostname']}", $check['port'], $errno, $errstr, 30); die($fp ? 'Up' : 'Down'); } ?> $check): ?>
Hostname Port Status
Pending