} $forumpost = new ForumPosts(); $forumpost->setForum($forum); if (isset($pid) && $pid != "") { $forumpost->setParent($pid); } if (!empty($topic_id)) { $forumpost->setTopicId($topic_id); $isreply = 1; } $forumpost->setIp($HTTP_SERVER_VARS['REMOTE_ADDR']); $forumpost->setUid($uid); } $subject = xoops_trim($HTTP_POST_VARS['subject']); $subject = $subject == '' ? _NOTITLE : $subject; $forumpost->setSubject($subject); $forumpost->setText($HTTP_POST_VARS['message']); $forumpost->setNohtml($HTTP_POST_VARS['nohtml']); $forumpost->setNosmiley($HTTP_POST_VARS['nosmiley']); $forumpost->setIcon($HTTP_POST_VARS['icon']); $forumpost->setAttachsig($HTTP_POST_VARS['attachsig']); if (!($postid = $forumpost->store())) { include_once XOOPS_ROOT_PATH . '/header.php'; xoops_error('Could not insert forum post'); include_once XOOPS_ROOT_PATH . '/footer.php'; exit; } if (is_object($xoopsUser) && !empty($isnew)) { $xoopsUser->incrementPost(); } // RMV-NOTIFY