ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
index.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';
26
27// BEGIN WebDAV: Block WebDAV Requests from Microsoft WebDAV MiniRedir client.
28// We MUST block WebDAV requests on the root page of the Web-Server
29// in order to make the "Microsoft WebDAV MiniRedir" client work with ILIAS
30// WebDAV.
31// Important: If this index.php page is NOT at the root of your Web-Server, you
32// MUST create an index page at the root of your Web-Server with the same
33// blocking behaviour. If you don't implement this, the "Microsoft WebDAV
34// MiniRedir" client will not work with ILIAS.
35// You can copy the file rootindex.php for this.
36
37// Block WebDAV Requests from Microsoft WebDAV MiniRedir client.
38if ($_SERVER['REQUEST_METHOD'] === 'PROPFIND'
39 || $_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
40 $status = '404 Not Found';
41 header("HTTP/1.1 $status");
42 header("X-WebDAV-Status: $status", true);
43 exit();
44}
45// END WebDAV: Block WebDAV Requests from Microsoft WebDAV MiniRedir client.
46
47require_once __DIR__ . '/../artifacts/bootstrap_default.php';
48entry_point('ILIAS Legacy Initialisation Adapter');
49
50global $DIC;
51$DIC->ctrl()->callBaseClass(ilStartUpGUI::class);
52$DIC['ilBench']->save();
global $DIC
Definition: index.php:50
exit
$_SERVER['HTTP_HOST']
Definition: raiseError.php:26
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