mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 10:58:50 +03:00
Added config logs.path and cache.path to improve custom data structure.
Benefits cPanel integration #697
This commit is contained in:
parent
2634edd842
commit
dee6f6af7e
4 changed files with 16 additions and 7 deletions
|
|
@ -55,8 +55,7 @@ date_default_timezone_set('UTC');
|
|||
$sCustomDataPath = '';
|
||||
$sCustomConfiguration = '';
|
||||
|
||||
if (is_file(APP_INDEX_ROOT_PATH.'include.php'))
|
||||
{
|
||||
if (is_file(APP_INDEX_ROOT_PATH.'include.php')) {
|
||||
include_once APP_INDEX_ROOT_PATH.'include.php';
|
||||
}
|
||||
|
||||
|
|
@ -72,8 +71,9 @@ unset($sPrivateDataFolderInternalName);
|
|||
|
||||
if (!defined('APP_DATA_FOLDER_PATH')) {
|
||||
// cPanel https://github.com/the-djmaze/snappymail/issues/697
|
||||
if (!empty($_ENV['CPANEL']) && isset($_ENV['TMPDIR'])) {
|
||||
$sCustomDataPath = $_ENV['TMPDIR'] . '/snappymail';
|
||||
if (!empty($_ENV['CPANEL']) && isset($_ENV['HOME'])) {
|
||||
$sCustomDataPath = $_ENV['HOME'] . '/var/snappymail';
|
||||
// $sCustomDataPath = $_ENV['TMPDIR'] . '/snappymail';
|
||||
} else {
|
||||
$sCustomDataPath = function_exists('__get_custom_data_full_path') ? rtrim(trim(__get_custom_data_full_path()), '\\/') : $sCustomDataPath;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue