// And finally, load the relevant language files include($phpbb_root_path . 'language/' . $language . '/common.' . $phpEx); include($phpbb_root_path . 'language/' . $language . '/acp/common.' . $phpEx); include($phpbb_root_path . 'language/' . $language . '/acp/board.' . $phpEx); include($phpbb_root_path . 'language/' . $language . '/install.' . $phpEx); include($phpbb_root_path . 'language/' . $language . '/posting.' . $phpEx); $mode = request_var('mode', 'overview'); $sub = request_var('sub', ''); // Set PHP error handler to ours set_error_handler('msg_handler'); $config_file = $phpbb_root_path . 'config.' . $phpEx; if ( file_exists($config_file) && filesize($config_file) > 0 && $sub != 'advanced' && $sub != 'final' ) { trigger_error('phpBB has already been installed. Please empty the file "config.php" to be able to continue with this wizard', E_USER_ERROR); } $user = new user(); $auth = new auth(); $cache = new cache(); $template = new Template(); $template->set_custom_template('../adm/style', 'admin'); $template->assign_var('T_TEMPLATE_PATH', '../adm/style'); $install = new module(); $install->create('install', "index.$phpEx", $mode, $sub);