From bf3847219714d71e59bfa04569089ab52f852960 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Dec 2014 17:10:49 +0100 Subject: Finished tool for checking downtime --- isup/ping.php | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 isup/ping.php (limited to 'isup/ping.php') diff --git a/isup/ping.php b/isup/ping.php deleted file mode 100644 index 4c1bea7..0000000 --- a/isup/ping.php +++ /dev/null @@ -1,26 +0,0 @@ - /dev/null 2>&1", $ret); - - if ( $ret != 0 ) - return false; - - return true; -} - -function sanitizeHost($host){ - - if ( preg_match("|^[a-zA-Z]+://|", $host, $match) ) - $host = str_replace($match[0], "", $host); - if ( preg_match("|(?/.*)|", $host, $match) ) - $host = str_replace($match["query"], "", $host); - - return escapeshellarg($host); -} -- cgit v1.2.3