"Fossies" - the Fresh Open Source Software Archive

Member "ILIAS-5.4.9/index.php" (24 Jan 2020, 1448 Bytes) of package /linux/www/ILIAS-5.4.9.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "index.php" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 5.4.8_vs_5.4.9.

    1 <?php
    2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
    3 
    4 /**
    5 * start page of ilias
    6 *
    7 * @author Peter Gabriel <pgabriel@databay.de>
    8 * @version $Id$
    9 *
   10 * @package ilias
   11 */
   12 
   13 // jump to setup if ILIAS3 is not installed
   14 if (!file_exists(getcwd() . "/ilias.ini.php")) {
   15     header("Location: ./setup/setup.php");
   16     exit();
   17 }
   18 
   19 // BEGIN WebDAV: Block WebDAV Requests from Microsoft WebDAV MiniRedir client.
   20 // We MUST block WebDAV requests on the root page of the Web-Server
   21 // in order to make the "Microsoft WebDAV MiniRedir" client work with ILIAS
   22 // WebDAV.
   23 // Important: If this index.php page is NOT at the root of your Web-Server, you
   24 // MUST create an index page at the root of your Web-Server with the same
   25 // blocking behaviour. If you don't implement this, the "Microsoft WebDAV
   26 // MiniRedir" client will not work with ILIAS.
   27 // You can copy the file rootindex.php for this.
   28 
   29 // Block WebDAV Requests from Microsoft WebDAV MiniRedir client.
   30 if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND'
   31 || $_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
   32     $status = '404 Not Found';
   33     header("HTTP/1.1 $status");
   34     header("X-WebDAV-Status: $status", true);
   35     exit;
   36 }
   37 // END WebDAV: Block WebDAV Requests from Microsoft WebDAV MiniRedir client.
   38 
   39 
   40 require_once("Services/Init/classes/class.ilInitialisation.php");
   41 ilInitialisation::initILIAS();
   42 
   43 $ilCtrl->initBaseClass("ilStartUpGUI");
   44 $ilCtrl->callBaseClass();
   45 $ilBench->save();