ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
rootindex.php
Go to the documentation of this file.
1<?php
2
19// BEGIN WebDAV
20// This page is required to support Microsoft WebDAV clients with ILIAS.
21// Note: Put this page at the root of the website and rename it to index.php.
22// We MUST block WebDAV requests on the root page of the Web-Server
23// in order to make the "Microsoft WebDAV MiniRedir" client work with ILIAS.
24// If we don't do this, the client will display a non-working login-dialog.
25if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND'
26 || $_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
27 // Block WebDAV Requests from "Microsoft WebDAV MiniRedir" client.
28 $status = '404 Not Found';
29 header("HTTP/1.1 $status");
30 header("X-WebDAV-Status: $status", true);
31 exit;
32} else {
33 // Redirect browser to the ILIAS Start page
34 header("Location: /ilias/index.php");
36}
37// END WebDAV
$_SERVER['HTTP_HOST']
Definition: raiseError.php:26
exit
Definition: rootindex.php:35