diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-11-08 18:08:44 +0100 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-11-08 18:08:44 +0100 |
commit | 55f75c6d8ee53122f950cdecd6409a1e8c9a5b28 (patch) | |
tree | 69a2a60aa737f1e11a48952f508ca2e8aabb976d /settings | |
parent | 8396c0478e930d58a45749dbbd96a517279b3b4d (diff) | |
download | nextcloud-server-55f75c6d8ee53122f950cdecd6409a1e8c9a5b28.tar.gz nextcloud-server-55f75c6d8ee53122f950cdecd6409a1e8c9a5b28.zip |
add a check and a warning if the ownClodu server is not able to establish http connections to the internet. The reason is that users complained that external filesystem support, the update checker, downloading of new apps or the nowledgebase don´t work and don´t know why.
Diffstat (limited to 'settings')
-rwxr-xr-x | settings/admin.php | 1 | ||||
-rw-r--r-- | settings/css/settings.css | 1 | ||||
-rw-r--r-- | settings/templates/admin.php | 14 |
3 files changed, 16 insertions, 0 deletions
diff --git a/settings/admin.php b/settings/admin.php index c704704ed33..0cf449ef2ba 100755 --- a/settings/admin.php +++ b/settings/admin.php @@ -29,6 +29,7 @@ $tmpl->assign('loglevel', OC_Config::getValue( "loglevel", 2 )); $tmpl->assign('entries', $entries); $tmpl->assign('entriesremain', $entriesremain); $tmpl->assign('htaccessworking', $htaccessworking); +$tmpl->assign('internetconnectionworking', OC_Util::isinternetconnectionworking()); $tmpl->assign('backgroundjobs_mode', OC_Appconfig::getValue('core', 'backgroundjobs_mode', 'ajax')); $tmpl->assign('shareAPIEnabled', OC_Appconfig::getValue('core', 'shareapi_enabled', 'yes')); $tmpl->assign('allowLinks', OC_Appconfig::getValue('core', 'shareapi_allow_links', 'yes')); diff --git a/settings/css/settings.css b/settings/css/settings.css index f5ee2124f0f..560862fa12f 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -65,5 +65,6 @@ span.version { margin-left:1em; margin-right:1em; color:#555; } /* ADMIN */ span.securitywarning {color:#C33; font-weight:bold; } +span.connectionwarning {color:#933; font-weight:bold; } input[type=radio] { width:1em; } table.shareAPI td { padding-bottom: 0.8em; } diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 300d6093d6f..9c4ee0bf680 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -22,6 +22,20 @@ if(!$_['htaccessworking']) { } ?> +<?php +if(!$_['internetconnectionworking']) { +?> +<fieldset class="personalblock"> + <legend><strong><?php echo $l->t('Internet connection not working');?></strong></legend> + + <span class="connectionwarning"> + <?php echo $l->t('This ownCloud server has no working internet connection. This means that some of the features like mounting of external storage, notifications about updates or installation of 3rd party apps don´t work. Accessing files from remote and sending of notification emails might also not work. We suggest to enable internet connection for this server if you want to have all features of ownCloud.'); ?> + </span> + +</fieldset> +<?php +} +?> <?php foreach($_['forms'] as $form) { echo $form; |