12 include_once (
"../WHAT/Lib.Common.php");
14 include_once (
"DAV/Class.FdlDav.php");
21 error_log(sprintf(
"Error: Invalid DAV type '%s'",
$type));
22 header(
'HTTP/1.1 500 Invalid DAV type');
31 if (
$type ==
'webdav') {
35 error_log(
" [ " . $_SERVER[
'REQUEST_METHOD'] .
" ]=[ " . $_SERVER[
'PATH_INFO'] .
" ]=======");
38 $s->setFolderMaxItem($action->getParam(
'WEBDAV_FOLDERMAXITEM'));
41 if (
$type ==
"freedav") {
42 if (preg_match(
"|/vid-([0-9]+)-([0-9]+)-([^/]+)|",
$path, $reg)) {
52 $login = $_SERVER[
'PHP_AUTH_USER'];
55 if ((((
$path ==
"/") || (strtolower(
$path) ==
"/freedav")) && ($_SERVER[
'REQUEST_METHOD'] ==
"OPTIONS")) || (((
$path ==
"/") || (strtolower(
$path) ==
"/freedav")) && ($_SERVER[
'REQUEST_METHOD'] ==
"PROPFIND"))) {
60 header(
'HTTP/1.0 403 Forbidden');
71 $s->http_auth_realm =
"Dynacase Platform connection";
72 $s->db_freedom = $action->dbaccess;
74 $s->racine = $action->getParam(
"WEBDAV_ROOTID", 9);
79 error_log(
"================ $d $dt=====" .
$login .
"===================");
84 include_once (
'Class.User.php');
85 include_once (
'Class.Session.php');
92 $action->Set(
"",
$core);
94 $lang = $action->Getparam(
"CORE_LANG");
101 include_once (
'Class.User.php');
102 include_once (
'Class.Session.php');
106 $action->user->setLoginName(
$login);
107 $action->parent->user = $action->user;
113 include_once (
'WHAT/Lib.Main.php');
114 include_once (
'WHAT/Class.AuthenticatorManager.php');
118 $status = AuthenticatorManager::checkAccess(
'basic');