17 include_once (
"FDL/modcard.php");
19 include_once (
"FDL/Class.Dir.php");
20 include_once (
"FDL/Class.DocFam.php");
26 $dirid = GetHttpVars(
"dirid", 0);
27 $docid = GetHttpVars(
"id", 0);
28 $retedit = GetHttpVars(
"retedit",
"N") ==
"Y";
32 if (
$err !=
"") $action->AddWarningMsg(
$err);
36 if (
$docid > 0) $action->AddLogMsg(sprintf(_(
"%s has been modified") ,
$doc->title));
46 if ($fld->doctype !=
'D')
$dirid = 0;
50 $err = $fld->insertDocument(
$doc->id);
52 $action->AddLogMsg(
$err);
74 $home = $fld->getHome();
76 if ($home->id > 0) $fld = $home;
77 $err = $fld->insertDocument(
$doc->id);
78 if (
$err !=
"") $action->AddLogMsg(
$err);
84 redirect($action, GetHttpVars(
"redirect_app",
"FREEDOM") , GetHttpVars(
"redirect_act",
"FREEDOM_EDIT&id=$ndocid") , $action->GetParam(
"CORE_STANDURL"));
87 redirect($action, GetHttpVars(
"redirect_app",
"FDL") , GetHttpVars(
"redirect_act",
"FDL_CARD&refreshfld=Y&id=$ndocid") , $action->GetParam(
"CORE_STANDURL"));
freedom_mod(Action &$action)
new_Doc($dbaccess, $id= '', $latest=false)
modcard(Action &$action, &$ndocid, &$info=array())
if($file) if($subject==""&&$file) if($subject=="") $err