aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/faq.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-12-17 00:24:06 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-12-17 00:24:06 +0000
commit4fcab05574c8c93448a9234b79d11ef717657922 (patch)
tree57085c045caf750d2a34ab9d66ab212d72e95eaf /phpBB/faq.php
parentaaea20206d8ad2cdad77078d6b012a716342f39e (diff)
downloadforums-4fcab05574c8c93448a9234b79d11ef717657922.tar
forums-4fcab05574c8c93448a9234b79d11ef717657922.tar.gz
forums-4fcab05574c8c93448a9234b79d11ef717657922.tar.bz2
forums-4fcab05574c8c93448a9234b79d11ef717657922.tar.xz
forums-4fcab05574c8c93448a9234b79d11ef717657922.zip
Added BBCode guide as separate file ... no doubt this will annoy some, oh well :)
git-svn-id: file:///svn/phpbb/trunk@1614 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/faq.php')
-rw-r--r--phpBB/faq.php26
1 files changed, 23 insertions, 3 deletions
diff --git a/phpBB/faq.php b/phpBB/faq.php
index a0c3dcb878..9b716eab9b 100644
--- a/phpBB/faq.php
+++ b/phpBB/faq.php
@@ -36,7 +36,27 @@ init_userprefs($userdata);
//
// Load the appropriate faq file
//
-include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_faq.' . $phpEx);
+
+if( isset($HTTP_GET_VARS['mode']) )
+{
+ switch( $HTTP_GET_VARS['mode'] )
+ {
+ case 'bbcode':
+ $lang_file = "lang_bbcode";
+ $l_title = $lang['BBCode_guide'];
+ break;
+ default:
+ $lang_file = "lang_faq";
+ $l_title = $lang['FAQ'];
+ break;
+ }
+}
+else
+{
+ $lang_file = "lang_faq";
+ $l_title = $lang['FAQ'];
+}
+include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx);
//
// Pull the array data from the lang pack
@@ -71,7 +91,7 @@ for($i = 0; $i < count($faq); $i++)
//
// Lets build a page ...
//
-$page_title = $lang['FAQ'];
+$page_title = $l_title;
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
@@ -91,7 +111,7 @@ $template->assign_vars(array(
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
$template->assign_vars(array(
- "L_FAQ" => $lang['FAQ'])
+ "L_FAQ_TITLE" => $l_title)
);
for($i = 0; $i < count($faq_block); $i++)