session_begin(false); $auth->acl($user->data); $user->setup(); // Set custom template for admin area $template->set_custom_template($phpbb_root_path . 'adm/style', 'admin'); $template->set_filenames(array( 'body' => 'colour_swatch.html') ); $template->assign_vars(array( 'OPENER' => addslashes(request_var('form', '')), 'NAME' => request_var('name', ''), 'T_IMAGES_PATH' => "{$phpbb_root_path}images/",) ); $template->display('body'); // Unload cache, must be done before the DB connection if closed if (!empty($cache)) { $cache->unload(); } // Close our DB connection. $db->sql_close(); ?>