header('Location: tr/');?>
if (1==2) {
/* Ziyaret edilen ülkeye göre yönlendirme s */
require_once('ulke_config.php'); //The above code
$geoplugin = new geoPlugin();
$geoplugin->locate();
// create a variable for the country code
$var_country_code = $geoplugin->countryCode;
// redirect based on country code:
if ($var_country_code == "TR")
{
header('Location: tr/');
}
else if ($var_country_code == "DE")
{
header('Location: de/');
}
/* else if ($var_country_code == "US")
{
header('Location: en/');
}*/
else
{
header('Location: en/');
}
/* Ziyaret edilen ülkeye göre yönlendirme f */
}
?>
// facebook og tags (s) // ?>
// facebook og tags (f) // ?>
// twitter og tags (s) // ?>
// twitter og tags (f) // ?>