Posted by admin on 10/02/06 08:48
Links:
Flag En: <a href="/language.php?ln=en">English</a>
Flag Du: <a href="/language.php?ln=du">Dutch</a>
In all headers on index, etc.
<?
switch ($_COOKIE[LeeuwendeelTaal]))
{
case 'en':
// LOAD ENGLISH
break;
case 'du':
// LOAD DUTCH
break;
default:
// LOAD ENGLISH
break;
?>
// Cookie page: language.php
<?
unset($_COOKIE[LeeuwendeelTaal]);
switch ($_GET[ln])
{
case 'en':
$language = "en";
break;
case 'du':
$language = "du";
break;
default:
$language = "en";
break;
}
setcookie("LeeuwendeelTaal", $language, time()+360000);
header("Location: index.php");
header("Connection: close");
exit;
?>
If this does not work change your anti-virus software or browser to
allow all cookies. Personal I recommend using GEO-IP and auto loading
the language.
Navigation:
[Reply to this message]
|