get_perm_object($_REQUEST['forumId'], 'forum'); if ($tiki_p_forum_read != 'y') { $smarty->assign('errortype', 401); $errmsg = tra("You do not have permission to view this section"); require_once('tiki-rss_error.php'); } $commentslib = TikiLib::lib('comments'); $feed = "forum"; $id = "forumId"; $uniqueid = "$feed.$id=" . $_REQUEST["$id"]; $output = $rsslib->get_from_cache($uniqueid); if ($output["data"] == "EMPTY") { $tmp = $commentslib->get_forum($_REQUEST["forumId"]); $title = $prefs['feed_forum_title'] . $tmp["name"]; $desc = $prefs['feed_forum_desc'] . $tmp["description"]; $param = "threadId"; $descId = "data"; $dateId = "commentDate"; $authorId = "userName"; $titleId = "title"; $readrepl = "tiki-view_forum_thread.php?comments_parentId=%s"; $changes = $tikilib->list_forum_topics($_REQUEST["$id"], 0, $prefs['feed_forum_max'], $dateId . '_desc', ''); $output = $rsslib->generate_feed($feed, $uniqueid, '', $changes, $readrepl, '', $param, $title, $titleId, $desc, $descId, $dateId, $authorId); } header("Content-type: " . $output["content-type"]); print $output["data"];