View Single Post
Old 11-15-2003, 02:40 AM  
Smokey The Bear
So Fucking Banned
 
Join Date: Oct 2003
Location: In my house
Posts: 786
hahahahahahahaha LANGUAGE="smokeyScript1.2">
<!-- Begin
if (navigator.appName hahahaha 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;

if (language.hahahahahahaha('en') > -1) document.location.href = 'english.shtml';
else if (language.hahahahahahaha('nl') > -1) document.location.href = 'dutch.shtml';
else if (language.hahahahahahaha('fr') > -1) document.location.href = 'french.shtml';
else if (language.hahahahahahaha('de') > -1) document.location.href = 'german.shtml';
else if (language.hahahahahahaha('ja') > -1) document.location.href = 'japanese.shtml';
else if (language.hahahahahahaha('it') > -1) document.location.href = 'italian.shtml';
else if (language.hahahahahahaha('pt') > -1) document.location.href = 'portuguese.shtml';
else if (language.hahahahahahaha('es') > -1) document.location.href = 'Spanish.shtml';
else if (language.hahahahahahaha('sv') > -1) document.location.href = 'swedish.shtml';
else if (language.hahahahahahaha('zh') > -1) document.location.href = 'chinese.shtml';
else
document.location.href = 'english.shtml';
// End -->
</hahahahahahahaha



php type



<?
$user_lan = $HTTP_ACCEPT_LANGUAGE;

if($user_lanhahahaha'de') {
## German
$redir_url = "http://www.germanlanguagepageurl.com";

} elseif($user_lanhahahaha'fr') {
## French
$redir_url = "http://www.frenchlanguagepageurl.com";

} elseif($user_lanhahahaha'it') {
## Italian
$redir_url = "http://www.italianlanguagepageurl.com";

} elseif($user_lanhahahaha'es') {
## Spain
$redir_url = "http://www.spanishlanguagepageurl.com";

## US traffic or Rest of world not defined above
} else {
$redir_url = "http://www.yourmainpageurl.com";

}

header("Location: $redir_url");
exit;

?>

heres a simple language script redirect
Smokey The Bear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote