\n"); // The XML declaration ?> AdrenalinTrip.net: latest forum posts AdrenalinTrip is an open resource with forums for snowboarding, motocross, mountain biking and all extreme sports. http:/// en-gb Copyright 1999-2005, AdrenalinTrip.net. All Rights Reserved. http:///syndication/ AdrenalinTrip Latest Forum Posts [<?php if (isset($_GET['forums'])) echo $_GET['forums']; else echo "all"; ?>] http:///gfx/logotext.png http:/// $v) { if (!is_numeric($v)) unset($forum_sql[$k]); } $forum_sql = implode(" OR t.forum_id = ", $forum_sql); $sql = "SELECT pt.post_text, t.topic_last_post_id, t.topic_replies, t.topic_title, t.topic_id, f.forum_id, f.forum_name, t.topic_time FROM forum_header fh FORCE INDEX (site_id) LEFT JOIN catagories c ON c.cat_id = fh.cat_id LEFT JOIN forums f ON f.forum_id = fh.forum_id LEFT JOIN topics t ON t.forum_id = f.forum_id LEFT JOIN posts_text pt ON pt.post_id = t.topic_last_post_id WHERE fh.site_id = $siteid AND c.cat_title not like '^%' AND NOT f.forum_flags & ".FORUM_FLAG_NO_SYNDICATION." AND f.forum_type = ".FORUM_TYPE_PUBLIC." AND (t.forum_id = ".$forum_sql.") AND t.topic_state = ".TOPIC_STATE_APPROVED." AND t.topic_status <> ".TOPIC_STATUS_LOCKED." AND f.cat_id != 2 ORDER BY topic_time DESC LIMIT $PostNumber"; } else //Type of display posts or topics $sql = "SELECT pt.post_text, t.topic_last_post_id, t.topic_replies, t.topic_title, t.topic_id, f.forum_id, f.forum_name, t.topic_time FROM forum_header fh FORCE INDEX (site_id) LEFT JOIN catagories c ON c.cat_id = fh.cat_id LEFT JOIN forums f ON f.forum_id = fh.forum_id LEFT JOIN topics t ON t.forum_id = f.forum_id LEFT JOIN posts_text pt ON pt.post_id = t.topic_last_post_id WHERE fh.site_id = $siteid AND c.cat_title not like '^%' AND NOT f.forum_flags & ".FORUM_FLAG_NO_SYNDICATION." AND f.forum_type = ".FORUM_TYPE_PUBLIC." AND t.topic_state = ".TOPIC_STATE_APPROVED." AND t.topic_status <> ".TOPIC_STATUS_LOCKED." AND f.cat_id != 2 ORDER BY topic_time DESC LIMIT $PostNumber"; $result = @mysql_query($sql) or die ("Cannot execute query"); $rdfli = ""; $rdfitem = ""; $search = array ("'\*PATH_uploads\*'si", "'\*query\*'si"); $replace = array ($_PATHS['uploads'], $_URLQUERY); while ($row = @mysql_fetch_assoc($result)) { $row['post_text'] = str_replace("[addsig]", "",$row['post_text']); $rdfli .= ("\n\n"); $start = floor($row['topic_replies']/15)*15; $rdfitem .= (" http://".$_SERVER['SERVER_NAME']."/forum/viewtopic/".$row['forum_id']."/".$row['topic_id']."?start=$start#".$row['topic_last_post_id']." [".preg_replace ($search, $replace, stripslashes(htmlspecialchars($row['forum_name'])))."] ".htmlspecialchars($row['topic_title'])." ".preg_replace ($search, $replace, stripslashes(htmlspecialchars($row['post_text'])))." ".str_replace(" ", "T", $row['topic_time'])."+00:00 \n\n"); } // echo $rdfli; ?>