17 include_once (
"FDL/Class.Doc.php");
18 include_once (
"FDL/Class.DocAttr.php");
19 include_once (
"FDL/Lib.Attr.php");
20 include_once (
"FDL/Class.DocFam.php");
21 include_once (
"FDL/freedom_util.php");
26 $ftitle = GetHttpVars(
"ftitle", _(
"new familly document"));
29 $action->
exitError(_(
"Logical name must not be empty."));
38 $doc->title = $ftitle;
39 $doc->owner = $action->user->id;
40 $doc->locked = $action->user->id;
42 $doc->fromid = GetHttpVars(
"classid");
44 if (GetHttpVars(
"classid") > 0) {
50 $doc->profid = $cdoc->cprofid;
63 $cmd =
$wsh .
"--userid={$action->user->id} --api=generateDocumentClass --docid=" .
$doc->initid;
70 redirect($action,
"FDL",
"FDL_CARD&id=" .
$doc->id, $action->GetParam(
"CORE_STANDURL"));
createthefam(Action &$action)
exitError($texterr, $exit=true, $code="")
foreach($argv as $arg) $cmd
getWshCmd($nice=false, $userid=0, $sudo=false)
getHttpVars($name, $def="", $scope="all")
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err