aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/faq.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-10-08 20:11:59 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-10-08 20:11:59 +0000
commit1d0e4ee436cf7ca5790d83aac11ed9cf90a4ccda (patch)
tree73ca6e624983f82af9507b3e5fd94e581c8103f3 /phpBB/faq.php
parent64aee6d171aaf3e74b7b3755e054cdcc89061a5d (diff)
downloadforums-1d0e4ee436cf7ca5790d83aac11ed9cf90a4ccda.tar
forums-1d0e4ee436cf7ca5790d83aac11ed9cf90a4ccda.tar.gz
forums-1d0e4ee436cf7ca5790d83aac11ed9cf90a4ccda.tar.bz2
forums-1d0e4ee436cf7ca5790d83aac11ed9cf90a4ccda.tar.xz
forums-1d0e4ee436cf7ca5790d83aac11ed9cf90a4ccda.zip
Permission related updates ... is still not final but is getting there ... faster than British Rail too
git-svn-id: file:///svn/phpbb/trunk@2943 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/faq.php')
-rw-r--r--phpBB/faq.php21
1 files changed, 5 insertions, 16 deletions
diff --git a/phpBB/faq.php b/phpBB/faq.php
index e326fb0833..180c0902f5 100644
--- a/phpBB/faq.php
+++ b/phpBB/faq.php
@@ -24,26 +24,16 @@ $phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
-//
// Start session management
-//
$userdata = $session->start();
$auth->acl($userdata);
-//
+$user = new user($userdata);
// End session management
-//
-
-//
-// Configure style, language, etc.
-//
-$session->configure($userdata);
-//
// Load the appropriate faq file
-//
-if ( isset($HTTP_GET_VARS['mode']) )
+if ( isset($_GET['mode']) )
{
- switch( $HTTP_GET_VARS['mode'] )
+ switch( $_GET['mode'] )
{
case 'bbcode':
$lang_file = 'lang_bbcode';
@@ -60,11 +50,10 @@ else
$lang_file = 'lang_faq';
$l_title = $lang['FAQ'];
}
-include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx);
-//
+include($user->lang_path . $lang_file . '.' . $phpEx);
+
// Pull the array data from the lang pack
-//
$j = 0;
$counter = 0;
$counter_2 = 0;