simplify custom include.php

This commit is contained in:
djmaze 2021-12-24 01:12:27 +01:00
parent 6d958081c4
commit e434d51157
3 changed files with 32 additions and 27 deletions

View file

@ -4,35 +4,33 @@
//header('Strict-Transport-Security: max-age=31536000');
// Uncomment to use gzip compressed output
/**
* Uncomment to use gzip compressed output
*/
//define('USE_GZIP', 1);
// Uncomment to use brotli compressed output
/**
* Uncomment to use brotli compressed output
*/
//define('USE_BROTLI', 1);
// Uncomment to enable multiple domain installation.
/**
* Uncomment to enable multiple domain installation.
*/
//define('MULTIDOMAIN', 1);
// Uncomment to disable APCU.
/**
* Uncomment to disable APCU.
*/
//define('APP_USE_APCU_CACHE', false);
/**
* Custom 'data' folder path
* @return string
*/
function __get_custom_data_full_path()
{
return '';
return dirname(__DIR__) . '/snappymail-data';
return '/var/external-snappymail-data-folder';
}
//define('APP_DATA_FOLDER_PATH', dirname(__DIR__) . '/snappymail-data/');
//define('APP_DATA_FOLDER_PATH', '/var/external-snappymail-data-folder/');
/**
* Additional configuration file name
* @return string
*/
function __get_additional_configuration_name()
{
return '';
return defined('APP_SITE') && 0 < strlen(APP_SITE) ? APP_SITE.'.ini' : '';
}
//define('APP_CONFIGURATION_NAME', $_SERVER['HTTP_HOST'].'.ini');