ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.
25 if ($_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
header()
expected output: > ILIAS shows the rendered Component.
Definition: header.php:29