ILIAS
Release_3_10_x_branch Revision 61812
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
index.php
Go to the documentation of this file.
1
<?php
2
/*
3
+-----------------------------------------------------------------------------+
4
| ILIAS open source |
5
+-----------------------------------------------------------------------------+
6
| Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7
| |
8
| This program is free software; you can redistribute it and/or |
9
| modify it under the terms of the GNU General Public License |
10
| as published by the Free Software Foundation; either version 2 |
11
| of the License, or (at your option) any later version. |
12
| |
13
| This program is distributed in the hope that it will be useful, |
14
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
15
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16
| GNU General Public License for more details. |
17
| |
18
| You should have received a copy of the GNU General Public License |
19
| along with this program; if not, write to the Free Software |
20
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21
+-----------------------------------------------------------------------------+
22
*/
23
24
34
// jump to setup if ILIAS3 is not installed
35
if
(!file_exists(getcwd().
"/ilias.ini.php"
))
36
{
37
header(
"Location: ./setup/setup.php"
);
38
exit
();
39
}
40
41
// BEGIN WebDAV: Block WebDAV Requests from Microsoft WebDAV MiniRedir client.
42
// We MUST block WebDAV requests on the root page of the Web-Server
43
// in order to make the "Microsoft WebDAV MiniRedir" client work with ILIAS
44
// WebDAV.
45
// Important: If this index.php page is NOT at the root of your Web-Server, you
46
// MUST create an index page at the root of your Web-Server with the same
47
// blocking behaviour. If you don't implement this, the "Microsoft WebDAV
48
// MiniRedir" client will not work with ILIAS.
49
// You can copy the file rootindex.php for this.
50
51
// Block WebDAV Requests from Microsoft WebDAV MiniRedir client.
52
if
($_SERVER[
'REQUEST_METHOD'
] ==
'PROPFIND'
53
|| $_SERVER[
'REQUEST_METHOD'
] ==
'OPTIONS'
)
54
{
55
$status =
'404 Not Found'
;
56
header(
"HTTP/1.1 $status"
);
57
header(
"X-WebDAV-Status: $status"
,
true
);
58
exit
;
59
}
60
// END WebDAV: Block WebDAV Requests from Microsoft WebDAV MiniRedir client.
61
62
63
// start correct client
64
// if no client_id is given, default client is loaded (in class.ilias.php)
65
if
(isset(
$_GET
[
"client_id"
]))
66
{
67
setcookie(
"ilClientId"
,
$_GET
[
"client_id"
]);
68
$_COOKIE
[
"ilClientId"
] =
$_GET
[
"client_id"
];
69
}
70
71
require_once
"include/inc.header.php"
;
72
73
$ilCtrl
->initBaseClass(
"ilStartUpGUI"
);
74
$ilCtrl
->setTargetScript(
"ilias.php"
);
75
$ilCtrl
->callBaseClass();
76
$ilBench
->save();
77
78
?>
index.php
Generated on Tue Apr 26 2016 19:00:32 for ILIAS by
1.8.1.2 (using
Doxyfile
)