Multiple domain installation trigger file

This commit is contained in:
RainLoop Team 2014-04-15 04:18:40 +04:00
parent 530f5e7741
commit 2a22ade112
4 changed files with 5 additions and 16 deletions

1
_MULTIPLY Normal file
View file

@ -0,0 +1 @@
Rename this file to "MULTIPLY" to enable multiple domain installation

View file

@ -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;
}

View file

@ -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>
&nbsp;&nbsp;
<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>

View file

@ -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);