private function setConstants()
{
if (!defined('TL_MODE')) {
define('TL_MODE', $this->getMode());
}
define('TL_START', microtime(true));
define('TL_ROOT', dirname($this->rootDir));
define('TL_REFERER_ID', $this->getRefererId());
if (!defined('TL_SCRIPT')) {
define('TL_SCRIPT', $this->getRoute());
}
// Define the login status constants in the back end (see #4099, #5279)
if (!$this->isFrontendScope()) {
define('BE_USER_LOGGED_IN', false);
define('FE_USER_LOGGED_IN', false);
}
// Define the relative path to the installation (see #5339)
define('TL_PATH', $this->getPath());
}