|
|
@ -592,14 +592,14 @@ class OC_Util { |
|
|
|
|
|
|
|
|
|
|
|
// try to connect to owncloud.org to see if http connections to the internet are possible. |
|
|
|
// try to connect to owncloud.org to see if http connections to the internet are possible. |
|
|
|
$connected = @fsockopen("www.owncloud.org", 80); |
|
|
|
$connected = @fsockopen("www.owncloud.org", 80); |
|
|
|
if ($connected){ |
|
|
|
if ($connected) { |
|
|
|
fclose($connected); |
|
|
|
fclose($connected); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
|
|
// second try in case one server is down |
|
|
|
// second try in case one server is down |
|
|
|
$connected = @fsockopen("apps.owncloud.com", 80); |
|
|
|
$connected = @fsockopen("apps.owncloud.com", 80); |
|
|
|
if ($connected){ |
|
|
|
if ($connected) { |
|
|
|
fclose($connected); |
|
|
|
fclose($connected); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|