5
* @version $Id: faq.php,v 1.37 2007/10/05 14:30:06 acydburn Exp $
6
* @copyright (c) 2005 phpBB Group
7
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
14
define('IN_PHPBB', true);
15
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
16
$phpEx = substr(strrchr(__FILE__, '.'), 1);
17
include($phpbb_root_path . 'common.' . $phpEx);
19
// Start session management
20
$user->session_begin();
21
$auth->acl($user->data);
24
$mode = request_var('mode', '');
26
// Load the appropriate faq file
30
$l_title = $user->lang['BBCODE_GUIDE'];
31
$user->add_lang('bbcode', false, true);
35
$l_title = $user->lang['FAQ_EXPLAIN'];
36
$user->add_lang('faq', false, true);
40
// Pull the array data from the lang pack
41
$help_blocks = array();
42
foreach ($user->help as $help_ary)
44
if ($help_ary[0] == '--')
46
$template->assign_block_vars('faq_block', array(
47
'BLOCK_TITLE' => $help_ary[1])
53
$template->assign_block_vars('faq_block.faq_row', array(
54
'FAQ_QUESTION' => $help_ary[0],
55
'FAQ_ANSWER' => $help_ary[1])
59
// Lets build a page ...
60
$template->assign_vars(array(
61
'L_FAQ_TITLE' => $l_title,
62
'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP'])
65
page_header($l_title);
67
$template->set_filenames(array(
68
'body' => 'faq_body.html')
70
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
b'\\ No newline at end of file'