Witam, mam problem z jezykami na stronie.. trzeba nacisnac na przycisk od zmiany jezyku 2 razy zeby cokolwiek odnioslo efekt. Oto skrypt:
<?php
$lang = Array('US', 'PL', 'BR', 'SE', 'DE'); if($_GET['l'] != "" && in_array($_GET['l'], $lang)){ }
//Set geolocation cookie
if(!$_COOKIE["geolocation"]){
$visitor_country = visitorCountry();
}else{
$visitor_country = $_COOKIE["geolocation"];
}
if($visitor_country == "PL"){
include_once("pl.php");
}
else if($visitor_country == "SWE" || $visitor_country == "SE"){
include_once("swe.php");
}
else if($visitor_country == "DE"){
include_once("de.php");
}
else if($visitior_country == "BR" || $visitior_country == "ES" || $visitior_country == "PT"){
include_once("br.php");
}
else{
include_once("en.php");
}
?>