2003-07-18 21:38:51 +00:00
< ? php
2003-08-13 22:08:12 +00:00
require_once ( '../include/template.inc' );
require_once ( 'forum.inc' );
require_once ( '../util.inc' );
2003-07-18 21:38:51 +00:00
doHeader ( 'Forum' , 'forum.css' );
2003-08-13 22:08:12 +00:00
show_forum_title ( NULL , NULL , false );
2003-07-18 21:38:51 +00:00
2003-08-13 22:08:12 +00:00
echo " <p>Note: For questions or problems pertaining to the " , PROJECT , " client, server, or website, please visit the <a href= \" help_desk.php \" >Help Desk / FAQ</a>.</p> " ;
2003-07-18 21:38:51 +00:00
2003-08-13 22:08:12 +00:00
start_forum_table ( array ( " Forum " , " Threads " , " Posts " , " Last Post " ), array ( NULL , 60 , 60 , 160 ));
show_forums ();
end_table ();
2003-07-18 21:38:51 +00:00
doFooter ();
2003-08-13 22:08:12 +00:00
function show_forums () {
$categories = getCategories ();
while ( $category = getNextCategory ( $categories )) {
echo "
< tr class = \ " subtitle \" >
< td colspan = \ " 4 \" > " , $category -> name , " </td>
</ tr >
" ;
$forums = $category -> getForums ();
while ( $forum = getNextForum ( $forums )) {
echo "
< tr style = \ " font-size:8pt; text-align:right \" >
< td style = \ " text-align:left \" >
< span style = \ " font-size:10pt; font-weight:bold \" ><a href= \" forum.php?id= " , $forum -> id , " \" > " , $forum -> title , " </a></span>
< br > " , $forum->description , "
</ td >
< td > " , $forum->threads , " </ td >
< td > " , $forum->posts , " </ td >
< td > " , date('D M j, Y g:i a', $forum->timestamp ), " </ td >
</ tr >
" ;
}
}
}
2003-07-18 21:38:51 +00:00
?>