Site Map

"; define('IN_PHPBB', true); $phpbb_root_path = './'; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx); echo "

All Categories

"; $result = mysql_query("SELECT cat_title, cat_id FROM phpbb_categories ORDER BY cat_title"); while($row= mysql_fetch_assoc($result)) { echo "".$row["cat_title"]."
"; } echo "

All Forums

"; $result = mysql_query("SELECT forum_id, forum_name, forum_desc FROM phpbb_forums where auth_view=0 ORDER BY forum_name"); while($row= mysql_fetch_assoc($result)) { echo "".$row["forum_name"].""." - ".$row["forum_desc"]."
"; } echo "

All Topics

"; $sql = "SELECT count(t.topic_id) as total_spider_topics FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f WHERE f.forum_id = t.forum_id AND f.auth_view=0"; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not query count info', '', __LINE__, __FILE__, $sql); } if ($countrow = $db->sql_fetchrow($result)) { $total_spider_topics = $countrow['total_spider_topics']; } if( isset($HTTP_GET_VARS['offset']) || isset($HTTP_POST_VARS['offset']) ) { $offset = ( isset($HTTP_POST_VARS['offset']) ) ? intval($HTTP_POST_VARS['offset']) : intval($HTTP_GET_VARS['offset']); } else { $offset = 0; } $sql = "SELECT t.topic_id, t.topic_title FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f WHERE f.forum_id = t.forum_id AND f.auth_view=0 ORDER BY t.topic_last_post_id DESC LIMIT $offset, 200"; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not query topic info', '', __LINE__, __FILE__, $sql); } while( $topicrow = $db->sql_fetchrow($result)) { echo '' . $topicrow['topic_title'] . '
'; } $offset = $offset + 200; if ( ($total_spider_topics - $offset) > 0 ) { $new_url = 'Next'; echo $new_url; } echo "
"; ?>