17 include_once (
"FDL/Class.Doc.php");
18 include_once (
"FDL/Class.Dir.php");
19 include_once (
"FDL/Class.DocAttr.php");
20 include_once (
"FDL/freedom_util.php");
26 $docid = GetHttpVars(
"docid");
27 $current = (GetHttpVars(
"current",
"N") ==
"Y");
28 $newfolder = (GetHttpVars(
"autofolder",
"N") ==
"Y");
29 $fldid = GetHttpVars(
"dfldid");
38 if (
$doc === null || !
$doc->isAlive()) $action->
exitError(sprintf(_(
"Document with id '%s' not found.") ,
$docid));
43 $action->
exitError(_(
"Error creating new default folder."));
50 if ($fld === null || !$fld->isAlive()) {
51 $action->
exitError(sprintf(_(
"Document with id '%s' not found.") ,
$fldid));
53 if ($fld->defDoctype !=
'D' && $fld->defDoctype !=
'S') {
54 $action->
exitError(sprintf(_(
"Document with id '%s' is not a folder or search.") , $fld->id));
65 if (
$err !=
"") $action->ExitError(
$err);
70 redirect($action,
"FDL",
"FDL_CARD&id=$docid", $action->GetParam(
"CORE_STANDURL"));
exitError($texterr, $exit=true, $code="")
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err