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/ajax.php | 48 ------------------------------------------------ isup/http.php | 31 ------------------------------- isup/index.php | 25 ------------------------- isup/ping.php | 26 -------------------------- 4 files changed, 130 deletions(-) delete mode 100644 isup/ajax.php delete mode 100644 isup/http.php delete mode 100644 isup/index.php delete mode 100644 isup/ping.php (limited to 'isup') diff --git a/isup/ajax.php b/isup/ajax.php deleted file mode 100644 index 3e21a20..0000000 --- a/isup/ajax.php +++ /dev/null @@ -1,48 +0,0 @@ -=200 && $httpcode<400 ) - return true; - else - return false; -} - -function sanitizeUrl($url){ - if ( ! preg_match("|^[a-zA-Z]+://|", $url) ) - $url = "http://" . $url; - if ( preg_match("|^[a-zA-Z]+://.+\.[a-zA-Z]+(?/.*)|", $url, $match) ) - $url = str_replace($match["query"], "", $url); - - return $url; -} diff --git a/isup/index.php b/isup/index.php deleted file mode 100644 index 9c856c8..0000000 --- a/isup/index.php +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - IsUP | iamfabulous.de - - - - - -
-
-
- -
-
-
- - 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