summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-06-21 14:07:04 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-06-21 14:07:04 +0200
commite95055b2bdcd70568c4b4e21424800cab47a582b (patch)
treea7e8ffd6ff780e898da1d8c7445991016d681ab9 /settings/templates
parent09d2f767276f6054148425966fda89e189d621f0 (diff)
downloadnextcloud-server-e95055b2bdcd70568c4b4e21424800cab47a582b.tar.gz
nextcloud-server-e95055b2bdcd70568c4b4e21424800cab47a582b.zip
check if the data directory is accessible via http. Show a big security warning if yes
Diffstat (limited to 'settings/templates')
-rwxr-xr-x[-rw-r--r--]settings/templates/admin.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index 38c6042c82a..a9f727d6764 100644..100755
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -6,6 +6,21 @@
$levels=array('Debug','Info','Warning','Error','Fatal');
?>
+<?php
+
+if(!$_['htaccessworking']) {
+?>
+<fieldset class="personalblock">
+ <legend><strong><?php echo $l->t('Security Warning');?></strong></legend>
+
+ <span class="securitywarning">Your data directory and your files are probably accessible from the internet. The .htaccess file that ownCloud provides is not working. We strongly suggest that you configure your webserver in a way that the data directory is no longer accessible or you move the data directory outside the webserver document root.</span>
+
+</fieldset>
+<?php
+}
+?>
+
+
<?php foreach($_['forms'] as $form){
echo $form;
};?>