authenticator); mysql_query("UPDATE forum_preferences SET mark_as_read_timestamp=".time()." WHERE userid=".$logged_in_user->id.";"); Header("Location: ".get_str("return", true)); } function forum_summary($forum) { echo ' '.$forum->getTitle().'
'.$forum->getDescription().' '.$forum->getThreadCount().' '.$forum->getPostCount().' '.time_diff_str($forum->getLastTimestamp(), time()).' '; } page_head(tr(FORUM_TITLE)); echo "

If you have a question or problem, please use the Questions & answers area instead of the Message boards.

"; show_forum_title(NULL, NULL); start_forum_table(array(tr(FORUM_TOPIC), tr(FORUM_THREADS), tr(FORUM_POSTS), tr(FORUM_LAST_POST))); $categories = $mainFactory->getCategories(); $i=0; while ($categories[$i]){ if (!$categories[$i]->getType()) { echo ' '.$categories[$i]->getName().' '; $forums = $categories[$i]->getForums(); $ii=0; // Show a summary of each of the forums while ($forums[$ii]){ echo forum_summary($forums[$ii]); $ii++; } } $i++; } end_table(); page_tail(); flush(); cleanup_forum_log(); ?>