. // get a forum as RSS feed // arguments: // threads_only // If true, only show threads (not posts within a thread) // by decreasing create time // Else enumerate threads by decreasing timestamp, // and show the post with latest timestamp for each // truncate // If true, truncate posts to 256 chars and show BBcode // else show whole post and convert to HTML require_once("../project/project.inc"); require_once("../inc/boinc_db.inc"); require_once("../inc/forum_rss.inc"); check_get_args(array("forumid", "setup", "userid", "ndays", "truncate", "threads_only")); $forumid = get_int('forumid'); $forum = BoincForum::lookup_id($forumid); if (!$forum) error_page("no such forum"); if (get_int('setup', true)) { page_head(tra("%1 RSS feed", $forum->title)); echo tra("This message board is available as an RSS feed.") .tra("Options:")."

".tra("Include only posts by user ID %1 (default: all users).", "")."

".tra("Include only posts from the last %1 days (default: 30).", "")."

".tra("Truncate posts: %1 (Include only first 265 characters of each post)", "")."

".tra("Threads only: %1 (Include only the first post of every thread)", "")."

"; page_tail(); exit; } $userid = get_int('userid', true); $ndays = get_int('ndays', true); $truncate = get_str('truncate', true); $threads_only = get_str('threads_only', true); if(!$ndays || $ndays < "1") { $ndays = "30"; } forum_rss($forumid, $userid, $truncate, $threads_only, $ndays); ?>