} } else { if ($wfsConfig['anonpost'] == 1) { $uid = 0; } else { redirect_header("index.php", 3, _NW_ANONNOTALLOWED); exit; } } $story = new WfsArticle(); $story->setTitle($subject); $story->setMainText($message); $story->setSummary($summary); $story->setUid($uid); $story->setCategoryid($id); $story->setNohtml($nohtml_db); $nosmiley = isset($nosmiley) ? intval($nosmiley) : 0; $notifypub = isset($notifypub) ? intval($notifypub) : 0; $story->setHtmlpage(""); $story->setIshtml(0); $story->setWeight(100); //$story->setGroupid($groupid); $story->setGroupid($groupid); $story->setNosmiley($nosmiley); $story->setPublished(0); $story->setExpired(0); $story->setNotifyPub($notifypub); echo $story->articleid; $story->setType('user'); $upload = new uploadfile($HTTP_POST_VARS['filename']); $distfilename = $upload->doUploadToRandumFile(XOOPS_ROOT_PATH . "/" . $wfsConfig['filesbasepath']);