<?php

/**
 * [Discuz!] (C)2001-2099 Discuz! Team
 * This is NOT a freeware, use is subject to license terms
 * https://license.discuz.vip
 */

if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}

if(!empty($_G['setting']['i18n'][$_GET['key']])) {
	dsetcookie('i18n', $_GET['key'], 86400 * 365);
} else {
	dsetcookie('i18n', '', -1);
}

dsetcookie('d_i18n', '', -1);

dheader('location: '.dreferer());