Diff for Metafox/lib/Platon.php between version 1.3 and 1.4
| version 1.3, 2005/11/07 22:24:36 |
version 1.4, 2005/11/07 23:32:32 |
|
|
| * @access public |
* @access public |
| */ |
*/ |
| |
|
| /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.32 2005/11/07 22:02:29 nepto Exp $ */ |
/* $Platon: phpPlatonLib/Platon/Platon.php,v 1.33 2005/11/07 23:21:17 nepto Exp $ */ |
| |
|
| class Platon |
class Platon |
| { |
{ |
|
|
| array('sk', 'cz', 'cs'), |
array('sk', 'cz', 'cs'), |
| array('en', 'gb', 'us', 'au') |
array('en', 'gb', 'us', 'au') |
| ); |
); |
| $l_default = array_shift($l_core_ar); |
|
| $l_user_ar = Platon::parse_HTTP_accept_language($accept_lang); |
$l_user_ar = Platon::parse_HTTP_accept_language($accept_lang); |
| $l_tld = Platon::get_top_level_domain($remote_host); |
$l_tld = Platon::get_top_level_domain($remote_host); |
| $l_tld != false && $l_user_ar += array($l_tld); |
$l_tld != false && $l_user_ar += array($l_tld); |
|
|
| break; |
break; |
| } |
} |
| } |
} |
| return $l_default; |
return false; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|