function finish_conversion()
{
global $db, $phpbb_root_path, $phpEx, $convert, $config, $language, $user;
global $cache, $auth, $phpbb_container, $phpbb_log;
include_once $phpbb_root_path . 'includes/functions_admin.' . $phpEx;
$db->sql_query('DELETE FROM ' . CONFIG_TABLE . "\n\t\t\tWHERE config_name = 'convert_progress'\n\t\t\t\tOR config_name = 'convert_options'\n\t\t\t\tOR config_name = 'convert_db_server'\n\t\t\t\tOR config_name = 'convert_db_user'");
$db->sql_query('DELETE FROM ' . SESSIONS_TABLE);
@unlink($phpbb_container->getParameter('core.cache_dir') . 'data_global.' . $phpEx);
phpbb_cache_moderators($db, $cache, $auth);
// And finally, add a note to the log
$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_INSTALL_CONVERTED', false, array($convert->convertor_data['forum_name'], $config['version']));
$url = $this->controller_helper->route('phpbb_convert_finish');
$this->template->assign_vars(array('L_SUBMIT' => $user->lang['FINAL_STEP'], 'U_ACTION' => $url));
$this->meta_refresh($url);
return;
}