ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
webdav.php
Go to the documentation of this file.
1
<?
php
2
3
// BEGIN WebDAV
4
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
5
15
// Initialize
16
// -----------------------------------------------------
17
18
// Retrieve the client id from PATH_INFO
19
// Component 1 contains the ILIAS client_id.
20
$path_info_components
= explode(
'/'
,
$_SERVER
[
'PATH_INFO'
]);
21
$client_id
=
$path_info_components
[1];
22
23
// For all requests, except for GET-Requests for files, we enforce HTTP
24
// authentication for the WebDAV protocol.
25
#if ($_SERVER['REQUEST_METHOD'] != 'GET' ||
26
# count($path_info_components) < 3 ||
27
# substr($path_info_components[2],0,5) != 'file_') {
28
# define ('WebDAV_Authentication', 'HTTP');
29
#}
30
define (
'WebDAV_Authentication'
,
'HTTP'
);
31
32
// Set context for authentication
33
include_once
'Services/Authentication/classes/class.ilAuthFactory.php'
;
34
ilAuthFactory::setContext
(
ilAuthFactory::CONTEXT_HTTP
);
35
36
// Launch ILIAS using the client id we have determined
37
// -----------------------------------------------------
38
$_COOKIE
[
"ilClientId"
] =
$client_id
;
39
40
include_once
"Services/Context/classes/class.ilContext.php"
;
41
ilContext::init
(
ilContext::CONTEXT_WEBDAV
);
42
43
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
44
ilInitialisation::initILIAS
();
45
46
// Launch the WebDAV Server
47
// -----------------------------------------------------
48
include_once
"Services/WebDAV/classes/class.ilDAVServer.php"
;
49
$server
=
ilDAVServer::getInstance
();
50
$server
->ServeRequest();
51
// END WebDAV
52
?>
$_COOKIE
$_COOKIE["ilClientId"]
Definition:
webdav.php:38
$_SERVER
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
Definition:
tcpdf_autoconfig.php:54
ilAuthFactory\CONTEXT_HTTP
const CONTEXT_HTTP
Definition:
class.ilAuthFactory.php:29
ilContext\CONTEXT_WEBDAV
const CONTEXT_WEBDAV
Definition:
class.ilContext.php:24
$server
$server
Definition:
webdav.php:49
$path_info_components
$path_info_components
Definition:
webdav.php:20
$client_id
$client_id
Definition:
webdav.php:21
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:839
ilAuthFactory\setContext
static setContext($a_context)
set context
Definition:
class.ilAuthFactory.php:95
ilDAVServer\getInstance
static getInstance()
Get singelton instance.
Definition:
class.ilDAVServer.php:184
ilContext\init
static init($a_type)
Init context by type.
Definition:
class.ilContext.php:42
php
webdav.php
Generated on Fri Jan 17 2025 19:01:21 for ILIAS by
1.8.13 (using
Doxyfile
)