2003-07-18 21:38:51 +00:00
|
|
|
<?php
|
|
|
|
|
2003-08-13 22:08:12 +00:00
|
|
|
require_once('forum.inc');
|
|
|
|
require_once('../util.inc');
|
2003-07-18 21:38:51 +00:00
|
|
|
|
2003-11-30 21:05:57 +00:00
|
|
|
page_head('Message boards', NULL, NULL);
|
2003-07-18 21:38:51 +00:00
|
|
|
|
2003-08-13 22:08:12 +00:00
|
|
|
show_forum_title(NULL, NULL, false);
|
2003-07-18 21:38:51 +00:00
|
|
|
|
2003-11-30 21:05:57 +00:00
|
|
|
echo "<p>Note: For questions or problems about the ".PROJECT."
|
|
|
|
client, server, or web site, please visit the
|
|
|
|
<a href=\"help_desk.php\">Help Desk / FAQ</a>.</p>
|
|
|
|
";
|
2003-07-18 21:38:51 +00:00
|
|
|
|
2003-11-30 21:05:57 +00:00
|
|
|
start_forum_table(array("Topic", "Threads", "Posts", "Last post"));
|
2003-08-13 22:08:12 +00:00
|
|
|
show_forums();
|
|
|
|
end_table();
|
2003-08-15 01:01:00 +00:00
|
|
|
page_tail();
|
2003-08-13 22:08:12 +00:00
|
|
|
|
|
|
|
function show_forums() {
|
|
|
|
$categories = getCategories();
|
2003-08-14 00:56:20 +00:00
|
|
|
while ($category = mysql_fetch_object($categories)) {
|
2003-08-13 22:08:12 +00:00
|
|
|
echo "
|
2003-11-30 21:05:57 +00:00
|
|
|
<tr class=subtitle>
|
|
|
|
<td class=category colspan=4>", $category->name, "</td>
|
2003-08-13 22:08:12 +00:00
|
|
|
</tr>
|
|
|
|
";
|
2003-08-15 01:01:00 +00:00
|
|
|
|
2003-08-14 00:56:20 +00:00
|
|
|
$forums = getForums($category->id);
|
|
|
|
while ($forum = mysql_fetch_object($forums)) {
|
2003-08-13 22:08:12 +00:00
|
|
|
echo "
|
2003-11-30 21:05:57 +00:00
|
|
|
<tr class=row1 style=\"font-size:8pt; text-align:right\">
|
|
|
|
<td class=indent style=\"text-align:left\">
|
|
|
|
<span style=\"font-size:10pt; font-weight:bold\">
|
|
|
|
<a href=\"forum.php?id=", $forum->id, "\">", $forum->title,
|
|
|
|
"</a></span>
|
2003-08-13 22:08:12 +00:00
|
|
|
<br>", $forum->description, "
|
|
|
|
</td>
|
|
|
|
<td>", $forum->threads, "</td>
|
|
|
|
<td>", $forum->posts, "</td>
|
2003-08-22 19:07:43 +00:00
|
|
|
<td>", pretty_time_str($forum->timestamp), "</td>
|
2003-08-13 22:08:12 +00:00
|
|
|
</tr>
|
|
|
|
";
|
|
|
|
}
|
|
|
|
}
|
2003-08-15 01:01:00 +00:00
|
|
|
}
|
2003-11-30 21:05:57 +00:00
|
|
|
?>
|