20 include_once (
"FDL/Class.Doc.php");
25 $docid = GetHttpVars(
"id", 0);
26 $rzone = GetHttpVars(
"rzone");
27 $rvid = GetHttpVars(
"rvid");
28 $auto = (GetHttpVars(
"auto",
"N") ==
"Y");
29 $autoclose = (GetHttpVars(
"autoclose",
"N") ==
"Y");
33 if (
$err !=
"") $action->ExitError(
$err);
35 if (!$auto) $action->AddLogMsg(sprintf(_(
"%s has been unlocked") ,
$doc->title));
37 $action->AddActionDone(
"UNLOCKDOC",
$doc->id);
39 $fdlids =
$doc->getParentFolderIds();
40 foreach ($fdlids as
$fldid) {
41 $action->AddActionDone(
"MODFOLDERCONTAINT", $fldid);
44 header(
'Content-type: text/xml; charset=utf-8');
47 if ($rzone !=
"") $opt =
"&zone=$rzone";
48 if ($rvid !=
"") $opt =
"&vid=$rvid";
49 redirect($action,
"FDL",
"FDL_CARD$opt&id=" .
$doc->id, $action->GetParam(
"CORE_STANDURL"));
unlockfile(Action &$action)
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err