ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilias.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21if (!file_exists('../ilias.ini.php')) {
22 die('The ILIAS setup is not completed. Please run the setup routine.');
23}
24
25require_once '../vendor/composer/vendor/autoload.php';
26require_once __DIR__ . '/../artifacts/bootstrap_default.php';
27entry_point('ILIAS Legacy Initialisation Adapter');
28
30global $DIC;
31
32try {
33 $DIC->ctrl()->callBaseClass();
34} catch (ilCtrlException $e) {
35 if (defined('DEVMODE') && DEVMODE) {
36 throw $e;
37 }
38
39 if (!str_contains($e->getMessage(), 'not given a baseclass') &&
40 !str_contains($e->getMessage(), 'not a baseclass')) {
41 throw new RuntimeException(sprintf('ilCtrl could not dispatch request: %s', $e->getMessage()), 0, $e);
42 }
43
44 $DIC->logger()->root()->error($e->getMessage());
45 $DIC->logger()->root()->error($e->getTraceAsString());
46 $DIC->ctrl()->redirectToURL(ilUtil::_getHttpPath());
47}
48
49$DIC['ilBench']->save();
50$DIC['http']?->close();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getHttpPath()
global $DIC
Definition: ilias.php:30
entry_point(string $name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: result1.php:21