16 include_once (
"FDL/Class.Doc.php");
 
   24     $dirid = GetHttpVars(
"dirid");
 
   27     $attrid = 
"FREEDOM_UBOOK";
 
   29     $ubook = $action->GetParam($attrid);
 
   30     if (strlen($ubook) > 2) $tubook = explode(
'][', substr($ubook, 1, -1));
 
   31     else $tubook = array();
 
   34     foreach ($tubook as $k => $v) {
 
   35         list($id, $label) = explode(
"|", $v);
 
   40     if (
$doc->isAlive()) {
 
   43         $err = sprintf(_(
"folder is not valid: bookmark unchanged"));
 
   47     foreach (
$tid as $k => $v) {
 
   54         AddWarningMsg(sprintf(_(
"folder %s as been added in your bookmark") , 
$doc->title));
 
   55         $action->parent->param->
Set($attrid, $newbook, 
Param::PARAM_USER . $action->user->id, $action->parent->id);
 
freedom_addbookmark(Action &$action)
 
new_Doc($dbaccess, $id= '', $latest=false)
 
if($file) if($subject==""&&$file) if($subject=="") $err