/*
# UBB.threads, Version 5
# Official Release Date for UBB.threads Version5: December 12, 2000.
# First version of UBB.threads created July 30, 1996 (by Rick Baker).
# This entire program is copyright Infopop Corporation, 2001.
# For more info on the UBB.threads and other Infopop
# Products/Services, visit: http://www.infopop.com
# Program Author: Rick Baker.
# File Version 6.5.1.1
# You may not distribute this program in any manner, modified or otherwise,
# without the express, written written consent from Infopop Corporation.
# Note: if you modify ANY code within UBB.threads, we at Infopop Corporation
# cannot offer you support-- thus modify at your own peril :)
# ---------------------------------------------------------------------------
*/
// Require the library
require ("./includes/main.inc.php");
require ("languages/{$myprefs['language']}/faq.php");
// -------------
// Get the input
$Cat = get_input("Cat","get");
// ---------------------
// Send the page to them
$html = new html;
$html -> send_header("{$ubbt_lang['HEAD']}",$Cat,0,0,0,0,"");
$phpurl = $config['phpurl'];
if($config['files']) {
$attach = $ubbt_lang['B_CANATTACH'];
}
else {
$attach = $ubbt_lang['B_CANTATTACH'];
}
$nopolls = "";
if (!$config['allowpolls']) {
$nopolls = $ubbt_lang['B_NO_POLLS'];
}
$query = "
SELECT U_Posts,U_Title
FROM {$config['tbprefix']}UserTitles
ORDER BY U_Number ASC
";
$sth = $dbh->do_query($query);
$usertitles = "";
while(list($posts,$title) = $dbh->fetch_array($sth)) {
$usertitles .= "$posts\t$title
";
}
if ($config['contactlink'] == "url") {
$ubbt_lang['FAQ_BODY'] .= "{$config['emailtitle']}.";
}
else {
$ubbt_lang['FAQ_BODY'] .= "{$config['emailtitle']}.";
}
list($tbopen,$tbclose) = $html -> table_wrapper();
include("$thispath/templates/$tempstyle/faq.tmpl");
// -------------
// Send a footer
$html -> send_footer();