$options = array(
'YandexBot', 'YandexAccessibilityBot', 'YandexMobileBot','YandexDirectDyn',
if ($var_country_code == "RU") {
header('Location: https://www.site.ru/ru/');
}
else if ($var_country_code == "US") {
header('Location: https://www.site.ru/en/');
}
$array = [
"RU" => "ru",
"US" => "en"
];
header('Location: https://www.site.ru/{$array["US"]}/');
$user = mysqli_query($connection, "SELECT * FROM `users` WHERE `login` = '$login'");
$user = mysqli_fetch_assoc($user);
$_SESSION['user'] = $user['login'];
$_SESSION['user'] = $login;