mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
Multiple domain installation trigger file
This commit is contained in:
parent
530f5e7741
commit
2a22ade112
4 changed files with 5 additions and 16 deletions
1
_MULTIPLY
Normal file
1
_MULTIPLY
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Rename this file to "MULTIPLY" to enable multiple domain installation
|
12
_include.php
12
_include.php
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// TODO
|
// Rename this file to "include.php" to enable it.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -10,13 +10,3 @@ function __get_custom_data_full_path()
|
||||||
return '';
|
return '';
|
||||||
return '/var/external-rainloop-data-folder/'; // custom data folder path
|
return '/var/external-rainloop-data-folder/'; // custom data folder path
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $siteName
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
function __get_private_data_folder_internal_name($siteName)
|
|
||||||
{
|
|
||||||
return ''; // default value
|
|
||||||
return $siteName;
|
|
||||||
}
|
|
||||||
|
|
|
@ -38,11 +38,10 @@
|
||||||
<span class="i18n" data-i18n-text="SETTINGS_CONTACTS/LABEL_SYNC_PASSWORD"></span>
|
<span class="i18n" data-i18n-text="SETTINGS_CONTACTS/LABEL_SYNC_PASSWORD"></span>
|
||||||
</label>
|
</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div data-bind="visible: showPassword">
|
<strong style="color:red" data-bind="text: contactsSyncPass, visible: showPassword"></strong>
|
||||||
<strong style="color:red" data-bind="text: contactsSyncPass"></strong>
|
|
||||||
</div>
|
|
||||||
<span class="g-ui-link i18n" data-bind="visible: !showPassword(), click: toggleShowPassword"
|
<span class="g-ui-link i18n" data-bind="visible: !showPassword(), click: toggleShowPassword"
|
||||||
data-i18n-text="SETTINGS_CONTACTS/LINK_SHOW"></span>
|
data-i18n-text="SETTINGS_CONTACTS/LINK_SHOW"></span>
|
||||||
|
|
||||||
<span class="g-ui-link i18n" data-bind="visible: showPassword, click: toggleShowPassword"
|
<span class="g-ui-link i18n" data-bind="visible: showPassword, click: toggleShowPassword"
|
||||||
data-i18n-text="SETTINGS_CONTACTS/LINK_HIDE"></span>
|
data-i18n-text="SETTINGS_CONTACTS/LINK_HIDE"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -24,8 +24,7 @@
|
||||||
|
|
||||||
define('APP_DEFAULT_PRIVATE_DATA_NAME', '_default_');
|
define('APP_DEFAULT_PRIVATE_DATA_NAME', '_default_');
|
||||||
|
|
||||||
$sPrivateDataFolderInternalName = function_exists('__get_private_data_folder_internal_name') ?
|
$sPrivateDataFolderInternalName = @file_exists(APP_INDEX_ROOT_PATH.'MULTIPLY') ? APP_SITE : '';
|
||||||
trim(__get_private_data_folder_internal_name(APP_SITE)) : '';
|
|
||||||
define('APP_PRIVATE_DATA_NAME', 0 === strlen($sPrivateDataFolderInternalName) ? APP_DEFAULT_PRIVATE_DATA_NAME : $sPrivateDataFolderInternalName);
|
define('APP_PRIVATE_DATA_NAME', 0 === strlen($sPrivateDataFolderInternalName) ? APP_DEFAULT_PRIVATE_DATA_NAME : $sPrivateDataFolderInternalName);
|
||||||
define('APP_MULTIPLY', 0 < strlen($sPrivateDataFolderInternalName) && APP_DEFAULT_PRIVATE_DATA_NAME !== APP_PRIVATE_DATA_NAME);
|
define('APP_MULTIPLY', 0 < strlen($sPrivateDataFolderInternalName) && APP_DEFAULT_PRIVATE_DATA_NAME !== APP_PRIVATE_DATA_NAME);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue