mirror of https://github.com/BOINC/boinc.git
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?php
|
|
|
|
require_once('forum.inc');
|
|
require_once('../util.inc');
|
|
|
|
page_head('Forum', NULL, NULL);
|
|
|
|
show_forum_title(NULL, NULL, false);
|
|
|
|
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>";
|
|
|
|
start_forum_table(array("Forum", "Threads", "Posts", "Last Post"), array(NULL, 60, 60, 160));
|
|
show_forums();
|
|
end_table();
|
|
page_tail();
|
|
|
|
function show_forums() {
|
|
$categories = getCategories();
|
|
while ($category = mysql_fetch_object($categories)) {
|
|
echo "
|
|
<tr class=\"subtitle\">
|
|
<td class=\"category\" colspan=\"4\">", $category->name, "</td>
|
|
</tr>
|
|
";
|
|
|
|
$forums = getForums($category->id);
|
|
while ($forum = mysql_fetch_object($forums)) {
|
|
echo "
|
|
<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>
|
|
<br>", $forum->description, "
|
|
</td>
|
|
<td>", $forum->threads, "</td>
|
|
<td>", $forum->posts, "</td>
|
|
<td>", pretty_time_str($forum->timestamp), "</td>
|
|
</tr>
|
|
";
|
|
}
|
|
}
|
|
}
|
|
?>
|