Przeglądaj źródła

fixes #2789 - no internet connectivity check if there is non on purpose

tags/v6.0.0alpha2
Thomas Mueller 11 lat temu
rodzic
commit
46722d8282
2 zmienionych plików z 9 dodań i 1 usunięć
  1. 4
    1
      config/config.sample.php
  2. 5
    0
      lib/util.php

+ 4
- 1
config/config.sample.php Wyświetl plik

@@ -126,7 +126,10 @@ $CONFIG = array(
/* Check if ownCloud is up to date */
"updatechecker" => true,

/* Place to log to, can be owncloud and syslog (owncloud is log menu item in admin menu) */
/* Are we connected to the internet or are we running in a closed network? */
"has_internet_connection" => true,

/* Place to log to, can be owncloud and syslog (owncloud is log menu item in admin menu) */
"log_type" => "owncloud",

/* File for the owncloud logger to log to, (default is ownloud.log in the data dir */

+ 5
- 0
lib/util.php Wyświetl plik

@@ -635,6 +635,11 @@ class OC_Util {
*/
public static function isinternetconnectionworking() {

// in case there is no internet connection on purpose there is no need to display a warning
if (!\OC_Config::getValue("has_internet_connection", true)) {
return true;
}

// try to connect to owncloud.org to see if http connections to the internet are possible.
$connected = @fsockopen("www.owncloud.org", 80);
if ($connected) {

Ładowanie…
Anuluj
Zapisz