Diff for phpPlatonLib/Platon/Platon.php between version 1.21 and 1.22
| version 1.21, 2004/01/02 11:31:39 |
version 1.22, 2004/01/26 13:53:55 |
|
|
| * @access public |
* @access public |
| */ |
*/ |
| |
|
| /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.20 2003/07/19 11:52:04 nepto Exp $ */ |
/* $Platon: phpPlatonLib/Platon/Platon.php,v 1.21 2004/01/02 11:31:39 nepto Exp $ */ |
| |
|
| class Platon |
class Platon |
| { |
{ |
|
|
| return true; |
return true; |
| } |
} |
| if (strlen($url) <= 0) { |
if (strlen($url) <= 0) { |
| die('empty $url in redirect_test()'); |
trigger_error('empty input parameter $url' |
| |
.' in Platon::redirect_test()'.$method, E_USER_ERROR); |
| |
return; |
| } |
} |
| $schema = ''; |
$schema = ''; |
| if (strncmp($url, "http://", 7)) { |
if (strncmp($url, "http://", 7)) { |
|
|
| $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); |
| //var_dump($l_user_ar); |
|
| for ($i = 0; $i < count($l_user_ar); $i++) { |
for ($i = 0; $i < count($l_user_ar); $i++) { |
| $lang = $l_user_ar[$i]; |
$lang = $l_user_ar[$i]; |
| if (in_array($lang, $l_core_ar)) { |
if (in_array($lang, $l_core_ar)) { |
Platon Group <platon@platon.org> http://platon.org/
|
|