1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-21 10:40:58 +02:00

FAQ system..I"m not entirly happy with it but at this stage its too late to spend alot of time on something as small as this

git-svn-id: file:///svn/phpbb/trunk@1127 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson
2001-10-05 08:29:32 +00:00
parent cd9dc47570
commit 5692f347e5
3 changed files with 74 additions and 0 deletions

View File

@ -34,6 +34,20 @@ init_userprefs($userdata);
//
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
include($phpbb_root_path . 'language/faq_' . $board_config['default_lang'] . '.' . $phpEx);
$template->set_filenames(array(
"body" => "faq_body.tpl")
);
$template->assign_vars(array("L_FAQ" => $lang['FAQ']));
for($i = 0; $i < count($faq); $i++)
{
$template->assign_block_vars("faqrow", array("FAQ_QUESTION" => $faq[$i][0], "FAQ_ANSWER" => $faq[$i][1]));
}
$template->pparse("body");
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);