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 $wid = GetHttpVars(
"wid");
30 if (
$docid == 0) $action->
exitError(_(
"the document is not referenced: cannot apply profile access modification"));
39 if (
$err !=
"") $action->ExitError(
$err);
45 $doc->exec_query(
"update doc" .
$doc->id .
" set wid=$wid where usefor !~ 'W'");
50 $firststate = $wdoc->firstState;
51 $doc->exec_query(
"update doc" .
$doc->id .
" set state='$firststate' where usefor !~ 'W' and (state is null or state='')");
53 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