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 " getID()."\">".$forum->getTitle()."
".$forum->getDescription()." ".$forum->getThreadCount()." ".$forum->getPostCount()." ".time_diff_str($forum->getLastTimestamp(), time())." "; } page_head(tra("%1 Message boards", PROJECT)); 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(tra("Topic"), tra("Threads"), tra("Posts"), tra("Last post"))); $categories = $mainFactory->getCategories(); $i=0; while (isset($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 (isset($forums[$ii])) { echo forum_summary($forums[$ii]); $ii++; } } $i++; } end_table(); page_tail(); flush(); cleanup_forum_log(); ?>