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
webdav.php
Go to the documentation of this file.
1
<?php
2
// BEGIN WebDAV
3
/*
4
+-----------------------------------------------------------------------------+
5
| ILIAS open source |
6
+-----------------------------------------------------------------------------+
7
| Copyright (c) 1998-2005 ILIAS open source, University of Cologne |
8
| |
9
| This program is free software; you can redistribute it and/or |
10
| modify it under the terms of the GNU General Public License |
11
| as published by the Free Software Foundation; either version 2 |
12
| of the License, or (at your option) any later version. |
13
| |
14
| This program is distributed in the hope that it will be useful, |
15
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
16
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17
| GNU General Public License for more details. |
18
| |
19
| You should have received a copy of the GNU General Public License |
20
| along with this program; if not, write to the Free Software |
21
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
22
+-----------------------------------------------------------------------------+
23
*/
24
34
// Initialize
35
// -----------------------------------------------------
36
37
// Retrieve the client id from PATH_INFO
38
// Component 1 contains the ILIAS client_id.
39
$path_info_components
= explode(
'/'
,$_SERVER[
'PATH_INFO'
]);
40
$client_id
=
$path_info_components
[1];
41
42
// For all requests, except for GET-Requests for files, we enforce HTTP
43
// authentication for the WebDAV protocol.
44
if
($_SERVER[
'REQUEST_METHOD'
] !=
'GET'
||
45
count(
$path_info_components
) < 3 ||
46
substr(
$path_info_components
[2],0,5) !=
'file_'
) {
47
define (
'WebDAV_Authentication'
,
'HTTP'
);
48
}
49
define (
'WebDAV_Authentication'
,
'HTTP'
);
50
51
// Launch ILIAS using the client id we have determined
52
// -----------------------------------------------------
53
$_COOKIE
[
"ilClientId"
] =
$client_id
;
54
55
// we can't include inc.header.php here, because we need to pass the
56
// context 'webdav' to initILIAS.
57
//require_once "include/inc.header.php";
58
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
59
$ilInit
=
new
ilInitialisation
();
60
$GLOBALS
[
'ilInit'
] =&
$ilInit
;
61
$ilInit
->initILIAS(
'webdav'
);
62
63
// Launch the WebDAV Server
64
// -----------------------------------------------------
65
include_once
"Services/WebDAV/classes/class.ilDAVServer.php"
;
66
$server
=
new
ilDAVServer
();
67
$server
->ServeRequest();
68
// END WebDAV
69
?>
webdav.php
Generated on Tue Apr 26 2016 19:00:53 for ILIAS by
1.8.1.2 (using
Doxyfile
)