mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Merge branch 'update-htaccess'
This commit is contained in:
commit
c0d2f5f86e
2 changed files with 24 additions and 3 deletions
|
|
@ -1 +1,19 @@
|
|||
Deny from all
|
||||
<IfModule mod_version.c>
|
||||
<IfVersion < 2.4>
|
||||
Deny from All
|
||||
</IfVersion>
|
||||
<IfVersion >= 2.4>
|
||||
Require all denied
|
||||
</IfVersion>
|
||||
</IfModule>
|
||||
<IfModule !mod_version.c>
|
||||
<IfModule !mod_authz_core.c>
|
||||
Deny from all
|
||||
</IfModule>
|
||||
<IfModule mod_authz_core.c>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
<IfModule mod_autoindex.c>
|
||||
Options -Indexes
|
||||
</ifModule>
|
||||
|
|
@ -16,7 +16,8 @@
|
|||
define('APP_VERSION_ROOT_PATH', APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/');
|
||||
|
||||
define('APP_USE_APC_CACHE', true);
|
||||
define('APP_DEFAULT_DENY_ALL_HTACCESS', "Deny from all\n<IfModule mod_autoindex.c>\nOptions -Indexes\n</ifModule>");
|
||||
define('APP_DEFAULT_DENY_ALL_HTACCESS', @file_exists(APP_VERSION_ROOT_PATH.'app/.htaccess') ?
|
||||
@file_get_contents(APP_VERSION_ROOT_PATH.'app/.htaccess') : '');
|
||||
|
||||
if (function_exists('date_default_timezone_set'))
|
||||
{
|
||||
|
|
@ -150,7 +151,9 @@
|
|||
@file_put_contents(APP_DATA_FOLDER_PATH.'VERSION', APP_VERSION);
|
||||
@file_put_contents(APP_DATA_FOLDER_PATH.'index.html', 'Forbidden');
|
||||
@file_put_contents(APP_DATA_FOLDER_PATH.'index.php', 'Forbidden');
|
||||
@file_put_contents(APP_DATA_FOLDER_PATH.'.htaccess', APP_DEFAULT_DENY_ALL_HTACCESS);
|
||||
if (0 < strlen(APP_DEFAULT_DENY_ALL_HTACCESS)) {
|
||||
@file_put_contents(APP_DATA_FOLDER_PATH.'.htaccess', APP_DEFAULT_DENY_ALL_HTACCESS);
|
||||
}
|
||||
|
||||
if (!@is_dir(APP_PRIVATE_DATA))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue