17 include_once (
"FDL/Lib.Dir.php");
18 include_once (
"FDL/freedom_util.php");
24 $todirid = GetHttpVars(
"todirid");
25 $fromdirid = GetHttpVars(
"fromdirid");
26 $docid = GetHttpVars(
"docid");
27 $return = GetHttpVars(
"return");
37 if (
$dir->locked == - 1) {
38 $ldocid =
$dir->getLatestId();
44 $action->AddLogMsg(sprintf(_(
"%s has been added in %s folder") ,
$doc->title,
$dir->title));
47 if ($dir2->locked == - 1) {
48 $ldocid = $dir2->getLatestId();
52 if (method_exists($dir2,
"DelFile")) {
56 $action->AddLogMsg(sprintf(_(
"%s has been removed in %s folder") ,
$doc->title, $dir2->title));
58 if ((
$doc->prelid == 0) && (
$err ==
"")) {
60 $doc->modify(
true, array(
65 if ($return ==
"folio") redirect($action, GetHttpVars(
"app") ,
"FOLIOLIST&dirid=$todirid");
66 else redirect($action, GetHttpVars(
"app") ,
"FREEDOM_VIEW&dirid=$todirid");
movedirfile(Action &$action)
exitError($texterr, $exit=true, $code="")
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err