17 include_once (
"FDL/Class.Doc.php");
18 include_once (
"DAV/Class.FdlDav.php");
25 header(
'Content-type: text/xml; charset=utf-8');
28 $vid = GetHttpVars(
"vid");
29 $docid = GetHttpVars(
"docid");
31 $action->lay->set(
"warning",
"");
32 $action->lay->set(
"CODE",
"OK");
34 $action->lay->set(
"sessid",
$sessid);
35 $action->lay->set(
"count", 1);
43 $s->setFolderMaxItem(
getParam(
'WEBDAV_FOLDERMAXITEM'));
44 $sid =
$s->getSession(
$docid, $vid, $action->user->login);
46 $sid = md5(uniqid($vid));
47 $s->addsession($sid, $vid,
$docid, $action->user->login, time() + 3600);
48 if (!
$s) $action->lay->set(
"CODE",
"KO");
50 return "$docid-$vid-$sid";
57 $sdav =
getParam(
"FREEDAV_SERVEUR",
false);
58 if ($sdav &&
$vf->Show($vid,
$info) ==
"") {
newFreeVaultFile($dbaccess)
dav_getdavurl($docid, $vid)
getParam($name, $def="")
must be in core or global type
dav_sessionid($docid, $vid)
getsessionid(Action &$action)