17 include_once (
"FDL/Class.Doc.php");
18 include_once (
"FDL/Class.DocAttr.php");
19 include_once (
"FDL/freedom_util.php");
30 $docid = GetHttpVars(
"id");
31 $recursive = (GetHttpVars(
"recursive") ==
"yes");
41 if (
$err !=
"") $action->ExitError(
$err);
45 if (
$doc->doctype ==
'D')
$err =
$doc->deleteRecursive();
46 else $action->ExitError(sprintf(_(
"%s document it is not a folder and cannot support recursive deletion") ,
$doc->title));
50 if (
$err !=
"") $action->ExitError(
$err);
52 $action->AddActionDone(
"DELFILE",
$doc->prelid);
53 $action->AddActionDone(
"TRASHFILE",
$doc->prelid);
54 redirect($action,
"FDL",
"FDL_CARD&sole=Y&refreshfld=Y&id=$docid");
57 redirect($action, GetHttpVars(
"app") ,
"GENERIC_LOGO");
generic_del(Action &$action)
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err