Improved app booting

Bugfix SALT.php failed on initialization
Cleanup unused and obsolete constants and php settings
This commit is contained in:
djmaze 2021-12-23 16:04:40 +01:00
parent b80e62adfc
commit f92d453e8b
8 changed files with 279 additions and 319 deletions

View file

@ -3,12 +3,12 @@
if (!defined('APP_VERSION'))
{
define('APP_VERSION', '0.0.0');
define('APP_INDEX_ROOT_PATH', strtr(__DIR__, DIRECTORY_SEPARATOR, '/') . '/');
define('APP_INDEX_ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
if (file_exists(APP_INDEX_ROOT_PATH.'snappymail/v/'.APP_VERSION.'/include.php'))
if (file_exists('snappymail/v/'.APP_VERSION.'/include.php'))
{
include APP_INDEX_ROOT_PATH.'snappymail/v/'.APP_VERSION.'/include.php';
include 'snappymail/v/'.APP_VERSION.'/include.php';
}
else
{