ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
index.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
13 // jump to setup if ILIAS3 is not installed
14 if (!file_exists(getcwd()."/ilias.ini.php"))
15 {
16  header("Location: ./setup/setup.php");
17  exit();
18 }
19 
20 // BEGIN WebDAV: Block WebDAV Requests from Microsoft WebDAV MiniRedir client.
21 // We MUST block WebDAV requests on the root page of the Web-Server
22 // in order to make the "Microsoft WebDAV MiniRedir" client work with ILIAS
23 // WebDAV.
24 // Important: If this index.php page is NOT at the root of your Web-Server, you
25 // MUST create an index page at the root of your Web-Server with the same
26 // blocking behaviour. If you don't implement this, the "Microsoft WebDAV
27 // MiniRedir" client will not work with ILIAS.
28 // You can copy the file rootindex.php for this.
29 
30 // Block WebDAV Requests from Microsoft WebDAV MiniRedir client.
31 if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND'
32 || $_SERVER['REQUEST_METHOD'] == 'OPTIONS')
33 {
34  $status = '404 Not Found';
35  header("HTTP/1.1 $status");
36  header("X-WebDAV-Status: $status", true);
37  exit;
38 }
39 // END WebDAV: Block WebDAV Requests from Microsoft WebDAV MiniRedir client.
40 
41 
42 require_once("Services/Init/classes/class.ilInitialisation.php");
44 
45 $ilCtrl->initBaseClass("ilStartUpGUI");
46 $ilCtrl->setTargetScript("ilias.php");
47 $ilCtrl->callBaseClass();
48 $ilBench->save();
49 
50 ?>
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
global $ilCtrl
Definition: ilias.php:18
static initILIAS()
ilias initialisation
Add a drawing to the header
Definition: 04printing.php:69
global $ilBench
Definition: ilias.php:18