Ejemplo n.º 1
0
 function attach_noinline($noinline, $pass)
 {
     foreach (array('refer', 'file', 'age', 'pass') as $var) {
         ${$var} = array_key_exists($var, $this->root->vars) ? $this->root->vars[$var] : '';
     }
     if ($this->cont['ATTACH_UPLOAD_EDITER_ONLY'] and !$this->func->is_editable($refer)) {
         return array('msg' => $this->root->_attach_messages['err_noparm']);
     }
     $obj = new XpWikiAttachFile($this->xpwiki, $refer, $file, $age);
     return $obj->getstatus() ? $obj->noinline($noinline, $pass) : array('msg' => $this->root->_attach_messages['err_notfound']);
 }