function find_langue()
{
global $HTTP_ACCEPT_LANGUAGE;
$langueary=explode(",",$HTTP_ACCEPT_LANGUAGE);
$lg="";
for($i=0;$i<count($langueary);$i++)
{
switch(substr($langueary[$i],0,2))
{
case "zh":
$lg = "zh";
}
}
if($lg!="zh" )
$lg = "en";// $lg="en";
return $lg;
}
$lg=find_langue();
if($lg=="zh" )
看中文首页
[ Last edited by befree on 2004-10-22 at 03:59 ] |