Move some cPanel code to /usr/local/cpanel/base/3rdparty/snappymail/include.php #697

This commit is contained in:
the-djmaze 2022-11-25 11:00:20 +01:00
parent ce7bcbcaf5
commit 21c0c1ed5d
5 changed files with 41 additions and 11 deletions

View file

@ -0,0 +1,37 @@
<?php
//header('Strict-Transport-Security: max-age=31536000');
/**
* Uncomment to use gzip compressed output
*/
//define('USE_GZIP', 1);
/**
* Uncomment to use brotli compressed output
*/
//define('USE_BROTLI', 1);
/**
* Uncomment to enable multiple domain installation.
*/
//define('MULTIDOMAIN', 1);
/**
* Uncomment to disable APCU.
*/
//define('APP_USE_APCU_CACHE', false);
/**
* Custom 'data' folder path
*/
if (!empty($_ENV['CPANEL']) && isset($_ENV['HOME'])) {
define('APP_DATA_FOLDER_PATH', $_ENV['HOME'] . '/var/snappymail/');
} else {
exit('Not in cPanel');
}
/**
* Additional configuration file name
*/
//define('APP_CONFIGURATION_NAME', $_SERVER['HTTP_HOST'].'.ini');