From 6e4141f140bc6bd37a531711dad3ee953c1ad947 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Thu, 21 Mar 2013 16:26:53 +0100 Subject: [PATCH] Changed the Utils::isOnline() method --- src/utils/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Utils.php b/src/utils/Utils.php index 49a52c8d..baa23a81 100644 --- a/src/utils/Utils.php +++ b/src/utils/Utils.php @@ -42,7 +42,7 @@ class Utils extends Thread{ } public static function isOnline(){ - return (checkdnsrr("google.com", "ANY") && checkdnsrr("yahoo.com", "ANY") && checkdnsrr("microsoft.com", "ANY")); + return ((@fsockopen("google.com", 80) !== false or @fsockopen("www.linux.org", 80) !== false or @fsockopen("www.php.net", 80) !== false) ? true:false); } public static function getIP(){