From 1d0e4ee436cf7ca5790d83aac11ed9cf90a4ccda Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 8 Oct 2002 20:11:59 +0000 Subject: 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 --- phpBB/faq.php | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'phpBB/faq.php') 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; -- cgit v1.2.1