<?php
require('core/start.php');
if (empty($_GET['type'])) {
redirect(HOME);
exit;
}
if ($_GET['type'] == 'ru') {
setcookie("lang", "ru", time()+360000);
} else if ($_GET['type'] == 'ua') {
setcookie("lang", "ua", time()+360000);
} else {
setcookie("lang", "en", time()+360000);
}
redirect(HOME);
?>