|
| | $dot_env_path = __DIR__ . '/..' |
| |
| | $dotenv = \Dotenv\Dotenv::createImmutable($dot_env_path) |
| |
| const | DEFAULT_ENV $_ENV['STUDIP_ENV'] ?? 'production' |
| |
| | $SOFTWARE_VERSION = '6.1.alpha' |
| |
| | $STUDIP_STARTUP_TIME = microtime(true) |
| |
| global | $PHP_SELF = $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'] |
| |
| global | $STUDIP_BASE_PATH = realpath(dirname(__FILE__) . '/..') |
| |
| | $ABSOLUTE_PATH_STUDIP = $STUDIP_BASE_PATH . '/public/' |
| |
| | $CANONICAL_RELATIVE_PATH_STUDIP = dirname($_SERVER['PHP_SELF']) |
| |
| if(DIRECTORY_SEPARATOR !='/') if(substr($CANONICAL_RELATIVE_PATH_STUDIP,-1) !="/") | $ABSOLUTE_URI_STUDIP = "" |
| |
| if(isset($_SERVER['SERVER_NAME'])) | if (!file_exists( $GLOBALS[ 'STUDIP_BASE_PATH'] . '/config/config_local.inc.php') &&php_sapi_name() !=='cli') |
| |
| | $added_configs = [] |
| |
| if($GLOBALS['ASSETS_URL'][0]==='/') else | if (!preg_match('/^[a-z]+:/', $GLOBALS[ 'ASSETS_URL'])) |
| |
| | $GLOBALS ['template_factory'] = app(Flexi\Factory::class) |
| |
| | try |
| |
| catch(\PDOException $exception) if(isset($GLOBALS['DB_STUDIP_SLAVE_HOST'])) | else |
| |
| if(Config::Get() ->ILIAS_INTERFACE_ENABLE) | $GLOBALS ['_fullname_sql'] = [] |
| |
| | $GLOBALS ['_fullname_sql']['full'] = "TRIM(CONCAT(title_front,' ',Vorname,' ',Nachname,IF(title_rear!='',CONCAT(', ',title_rear),'')))" |
| |
| | $GLOBALS ['_fullname_sql']['full_rev'] = "TRIM(CONCAT(Nachname,', ',Vorname,IF(title_front!='',CONCAT(', ',title_front),''),IF(title_rear!='',CONCAT(', ',title_rear),'')))" |
| |
| | $GLOBALS ['_fullname_sql']['no_title'] = "CONCAT(Vorname ,' ', Nachname)" |
| |
| | $GLOBALS ['_fullname_sql']['no_title_rev'] = "CONCAT(Nachname ,', ', Vorname)" |
| |
| | $GLOBALS ['_fullname_sql']['no_title_short'] = "CONCAT(Nachname,', ',UCASE(LEFT(TRIM(Vorname),1)),'.')" |
| |
| | $GLOBALS ['_fullname_sql']['no_title_motto'] = "CONCAT(Vorname ,' ', Nachname,IF(motto!='',CONCAT(', ',motto),''))" |
| |
| | $GLOBALS ['_fullname_sql']['full_rev_username'] = "TRIM(CONCAT(Nachname,', ',Vorname,IF(title_front!='',CONCAT(', ',title_front),''),IF(title_rear!='',CONCAT(', ',title_rear),''),' (',username,')'))" |
| |
| | $GLOBALS ['SEM_CLASS'] = SemClass::getClasses() |
| |
| | $GLOBALS ['SEM_TYPE'] = SemType::getTypes() |
| |
| | $mail_transporter_class = $mail_transporter_name . '_class' |
| |
| | $mail_transporter = new $mail_transporter_class |
| |
| if($mail_transporter_name=='smtp_message') $mail_transporter | default_charset = 'UTF-8' |
| |