mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-26 16:26:44 +03:00
add more security settings (allow_admin_panel, core_install_access_domains)
+ small fixes
This commit is contained in:
parent
6ffa712a05
commit
df1c369a9d
9 changed files with 26 additions and 25 deletions
17
_include.php
17
_include.php
|
|
@ -8,7 +8,7 @@
|
|||
function __get_custom_data_full_path()
|
||||
{
|
||||
return '';
|
||||
return '/var/rainloop-data-folder/'; // custom data folder path
|
||||
return '/var/external-rainloop-data-folder/'; // custom data folder path
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -17,19 +17,6 @@ function __get_custom_data_full_path()
|
|||
*/
|
||||
function __get_private_data_folder_internal_name($siteName)
|
||||
{
|
||||
return '_default_'; // default domain folder name
|
||||
return ''; // default value
|
||||
return $siteName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $siteName
|
||||
* @return string
|
||||
*/
|
||||
function __get_core_install_access_site($siteName)
|
||||
{
|
||||
return $siteName; // allow all
|
||||
|
||||
return in_array($siteName, array(
|
||||
'domain.com', 'domain.net'
|
||||
)) ? $siteName : '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue