예제 #1
0
파일: index.php 프로젝트: 3D-I/quickinstall
    $auth = new \phpbb\auth\auth();
    require $phpbb_root_path . 'includes/functions_compatibility.' . $phpEx;
} else {
    require $phpbb_root_path . 'includes/acm/acm_file.' . $phpEx;
    require $phpbb_root_path . 'includes/auth.' . $phpEx;
    require $phpbb_root_path . 'includes/cache.' . $phpEx;
    require $phpbb_root_path . 'includes/session.' . $phpEx;
    // Create the user.
    $user = new user();
    $auth = new auth();
    $cache = new cache();
}
// We need to set the template here.
$template = new template();
$template->set_custom_template('style', 'qi');
$profiles = $settings->get_profiles();
if (empty($profiles['count'])) {
    $template->assign_var('S_NO_PROFILE', true);
    $page = $page == 'main' || $page == '' ? 'settings' : $page;
}
$template->assign_var('CONFIG_TEXT', false);
// If there is a language selected in the dropdown menu in settings it's sent as GET, then igonre the hidden POST field.
if (isset($_GET['lang'])) {
    $language = request_var('lang', '');
} else {
    if (!empty($_POST['sel_lang'])) {
        $language = request_var('sel_lang', '');
    } else {
        $language = '';
    }
}