View Single Post
Old 01-03-2008, 10:30 PM  
lemosbiz
Registered User
 
Join Date: Jun 2007
Posts: 6
Drama Drama Drama

Any Coder can do this

if u wanna use php code and other users cant copy
Don't telling "AF copy your code" but anybody can copy JS

For multiple languages

<?php
$lang=split('[,;]',$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$lang=strtoupper($lang[0]);
$lang=split('[-]',$lang);
if (($lang[0]=="ZH") or ($lang[0]=="UY") or ($lang[0]=="BO")) {
header('Location: url_here');
exit;
}
?>

Only ZH traffic (I dont know what is ZH :P but see in the javascript and coded to php lol)
<?php
$lang=split('[,;]',$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$lang=strtoupper($lang[0]);
$lang=split('[-]',$lang);
if ($lang[0]=="ZH") {
header('Location: url_here');
exit;
}
?>
__________________
Looking for Babehunter =(

Last edited by lemosbiz; 01-03-2008 at 10:33 PM..
lemosbiz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote