snappymail/_include.php

46 lines
1,013 B
PHP
Raw Normal View History

2020-03-11 21:17:52 +08:00
<?php
// Name this file as "include.php" to enable it.
2020-08-16 02:23:34 +08:00
//header('Strict-Transport-Security: max-age=31536000');
2021-12-24 08:12:27 +08:00
/**
* Uncomment to use gzip compressed output
*/
2020-10-01 17:10:40 +08:00
//define('USE_GZIP', 1);
2021-12-24 08:12:27 +08:00
/**
* Uncomment to use brotli compressed output
*/
//define('USE_BROTLI', 1);
2021-12-24 08:12:27 +08:00
/**
* Uncomment to enable multiple domain installation.
*/
2020-10-01 17:10:40 +08:00
//define('MULTIDOMAIN', 1);
2021-12-24 08:12:27 +08:00
/**
* Uncomment to disable APCU.
*/
//define('APP_USE_APCU_CACHE', false);
2020-03-11 21:17:52 +08:00
/**
2020-11-03 23:22:26 +08:00
* Custom 'data' folder path
2020-03-11 21:17:52 +08:00
*/
2021-12-24 08:12:27 +08:00
//define('APP_DATA_FOLDER_PATH', dirname(__DIR__) . '/snappymail-data/');
//define('APP_DATA_FOLDER_PATH', '/var/external-snappymail-data-folder/');
2022-11-24 20:09:47 +08:00
if (isset($_ENV['CPANEL']) && isset($_ENV['TMPDIR'])) {
define('APP_DATA_FOLDER_PATH', $_ENV['TMPDIR'] . '/snappymail/');
/*
$_ENV['USER'] => <username>
$_ENV['HOME'] => /home/<username>
$_ENV['TMPDIR'] => /home/<username>/tmp
$_ENV['REAL_DBOWNER'] => <username>
*/
}
2020-03-11 21:17:52 +08:00
/**
2020-11-03 23:22:26 +08:00
* Additional configuration file name
2020-03-11 21:17:52 +08:00
*/
2021-12-24 08:12:27 +08:00
//define('APP_CONFIGURATION_NAME', $_SERVER['HTTP_HOST'].'.ini');