diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-15 23:25:10 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-15 23:25:15 +0200 |
commit | 3eb43c1fbe61a1663abc4e885f663250e57c6be1 (patch) | |
tree | 0f3179c646588d2111a2d4cf9b50e8410137c0b3 /core/templates/installation.php | |
parent | 9458a6c10e63829847c533a04b5c25ca646105a9 (diff) | |
download | nextcloud-server-3eb43c1fbe61a1663abc4e885f663250e57c6be1.tar.gz nextcloud-server-3eb43c1fbe61a1663abc4e885f663250e57c6be1.zip |
Show a warning in the installer if .htaccess is not working
Diffstat (limited to 'core/templates/installation.php')
-rw-r--r-- | core/templates/installation.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/templates/installation.php b/core/templates/installation.php index 426d60989a6..c0b29ea909d 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -26,6 +26,12 @@ <span><?php echo $l->t('Without a secure random number generator an attacker may be able to predict password reset tokens and take over your account.');?></span> </fieldset> <?php endif; ?> + <?php if(!$_['htaccessWorking']): ?> + <fieldset style="color: #B94A48; background-color: #F2DEDE; border-color: #EED3D7;"> + <legend><strong><?php echo $l->t('Security Warning');?></strong></legend> + <span><?php echo $l->t('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 endif; ?> <fieldset> <legend><?php echo $l->t( 'Create an <strong>admin account</strong>' ); ?></legend> <p class="infield"> |