aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/faq.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-10-05 08:29:32 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-10-05 08:29:32 +0000
commit5692f347e501deb53e03b474adb10c919e5e7966 (patch)
treecf98dd4ad7e139b47dc48efe826fc4f220e7a3b1 /phpBB/faq.php
parentcd9dc47570b3407567beaea60916807358503398 (diff)
downloadforums-5692f347e501deb53e03b474adb10c919e5e7966.tar
forums-5692f347e501deb53e03b474adb10c919e5e7966.tar.gz
forums-5692f347e501deb53e03b474adb10c919e5e7966.tar.bz2
forums-5692f347e501deb53e03b474adb10c919e5e7966.tar.xz
forums-5692f347e501deb53e03b474adb10c919e5e7966.zip
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
Diffstat (limited to 'phpBB/faq.php')
-rw-r--r--phpBB/faq.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/faq.php b/phpBB/faq.php
index 574689ee2b..f78fbd0424 100644
--- a/phpBB/faq.php
+++ b/phpBB/faq.php
@@ -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);