<?php
if(strstr($HTTP_ACCEPT_LANGUAGE,"en")) {
Header("Location: http://www.site.com/site");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"en-us")) {
Header("Location: http://www.site.com/site");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"de")) {
Header("Location: http://www.site.com/de/");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"tr")) {
Header("Location: http://www.site.com/site/turkce/");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"it")) {
Header("Location: http://www.site.com/site/Italiano/");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"es")) {
Header("Location: http://www.site.com/site/spain/");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"fr")) {
Header("Location: http://www.site.com/site/Fran%c3%a7ais/");
}
else {Header("Location: http://www.site.com/site");
}
?> Ülkeye göre sayfa yönlendirme (PHP)
16
●8.947
- 01-05-2006, 18:19:56
- 01-05-2006, 19:07:50usta sen ne yaptın yaw.ne gerek var onlara.mokoko adlı üyeden alıntı:
al kullan
https://www.r10.net/hazyr-kodlar/7567...banly-php.html - 03-11-2006, 20:40:52Üyeliği durdurulduhtml içinde ülke diline göre sayfa yönlendirme koduda bu sanırım
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080">
<!--Don't forget to add your FREE HitBOX statistics to your web page. To
do so, click on Online Services\HitBox Statistics...-->
<script>
/*
Copyright Stephen Shellard 2000 (c)
*/
var type=navigator.appName
if (type=="Netscape")
var lang = navigator.language
else
var lang = navigator.userLanguage
//cut down to first 2 chars of country code
var lang = lang.substr(0,2)
// italian
if (lang == "it")
window.location.replace('giris4.html')
// english
if (lang == "en")
window.location.replace('giris4-eng.html')
// french
if (lang == "fr")
window.location.replace('giris4.html')
// german
else if (lang == "de")
window.location.replace('giris4.html')
// turkish
else if (lang == "tr")
window.location.replace('giriss.html')
// spanish (add or remove copies of 2 lines below as needed)
else if (lang == "es")
window.location.replace('giris4.html')
// if none of above (default to English or any other)
else
window.location.replace('giris4.html')
</script>
</BODY> - 27-12-2007, 21:14:57Kimlik doğrulama veya yönetimden onay bekliyor.son mesaj tarihi : 03-11-2006, 08:40 PMRostwell adlı üyeden alıntı: mesajı görüntüle