2004-05-24 03:40:38 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once('../inc/forum.inc');
|
|
|
|
require_once('../inc/util.inc');
|
|
|
|
require_once('../inc/time.inc');
|
2005-09-21 21:39:35 +00:00
|
|
|
require_once('../project/project.inc');
|
2004-05-24 03:40:38 +00:00
|
|
|
|
2004-12-27 03:42:11 +00:00
|
|
|
db_init();
|
|
|
|
|
2004-05-24 03:40:38 +00:00
|
|
|
page_head('Message boards');
|
|
|
|
|
|
|
|
echo "<p>
|
|
|
|
If you have a question or problem, please use the
|
2004-05-30 21:47:11 +00:00
|
|
|
<a href=forum_help_desk.php>Questions/problems</a>
|
2004-05-24 03:40:38 +00:00
|
|
|
area instead of the Message boards.</p>
|
|
|
|
<p>
|
|
|
|
";
|
2005-09-21 21:39:35 +00:00
|
|
|
if (true) {
|
|
|
|
echo "
|
|
|
|
<form action=http://www.google.com/search>
|
|
|
|
<input type=hidden name=domains value=".URL_BASE.">
|
|
|
|
<input type=hidden name=sitesearch value=".URL_BASE."/forum_thread.php>
|
|
|
|
<input class=small name=q size=20>
|
|
|
|
<input type=submit value=Search>
|
|
|
|
</form>
|
|
|
|
";
|
|
|
|
} else {
|
|
|
|
echo "
|
|
|
|
Do a <a href=forum_text_search_form.php>keyword search</a> of messages.
|
|
|
|
<p>
|
|
|
|
";
|
|
|
|
}
|
2004-05-24 03:40:38 +00:00
|
|
|
|
|
|
|
function show_category($category) {
|
|
|
|
echo "
|
|
|
|
<tr class=subtitle>
|
|
|
|
<td class=category colspan=4>", $category->name, "</td>
|
|
|
|
</tr>
|
|
|
|
";
|
|
|
|
|
|
|
|
$forums = getForums($category->id);
|
|
|
|
while ($forum = mysql_fetch_object($forums)) {
|
|
|
|
show_forum_summary($forum);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function show_forums() {
|
2005-02-13 06:13:33 +00:00
|
|
|
$categories = getCategories();
|
|
|
|
while ($category = mysql_fetch_object($categories)) {
|
2004-05-24 03:40:38 +00:00
|
|
|
show_category($category);
|
2005-02-13 06:13:33 +00:00
|
|
|
}
|
2004-05-24 03:40:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
start_forum_table(array("Topic", "Threads", "Posts", "Last post"));
|
|
|
|
show_forums();
|
|
|
|
end_table();
|
|
|
|
page_tail();
|
|
|
|
?>
|