ILIAS
Release_4_1_x_branch Revision 61804
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
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
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4
14
// Initialize
15
// -----------------------------------------------------
16
17
// Retrieve the client id from PATH_INFO
18
// Component 1 contains the ILIAS client_id.
19
$path_info_components
= explode(
'/'
,$_SERVER[
'PATH_INFO'
]);
20
$client_id
=
$path_info_components
[1];
21
22
// For all requests, except for GET-Requests for files, we enforce HTTP
23
// authentication for the WebDAV protocol.
24
#if ($_SERVER['REQUEST_METHOD'] != 'GET' ||
25
# count($path_info_components) < 3 ||
26
# substr($path_info_components[2],0,5) != 'file_') {
27
# define ('WebDAV_Authentication', 'HTTP');
28
#}
29
define (
'WebDAV_Authentication'
,
'HTTP'
);
30
31
// Set context for authentication
32
include_once
'Services/Authentication/classes/class.ilAuthFactory.php'
;
33
ilAuthFactory::setContext
(
ilAuthFactory::CONTEXT_HTTP
);
34
35
// Launch ILIAS using the client id we have determined
36
// -----------------------------------------------------
37
$_COOKIE
[
"ilClientId"
] =
$client_id
;
38
39
// we can't include inc.header.php here, because we need to pass the
40
// context 'webdav' to initILIAS.
41
//require_once "include/inc.header.php";
42
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
43
$ilInit
=
new
ilInitialisation
();
44
$GLOBALS
[
'ilInit'
] =&
$ilInit
;
45
$ilInit
->initILIAS(
'webdav'
);
46
47
// Launch the WebDAV Server
48
// -----------------------------------------------------
49
include_once
"Services/WebDAV/classes/class.ilDAVServer.php"
;
50
$server
=
new
ilDAVServer
();
51
$server
->ServeRequest();
52
// END WebDAV
53
?>
webdav.php
Generated on Thu Apr 21 2016 19:03:05 for ILIAS by
1.8.1.2 (using
Doxyfile
)