Diff for phpPlatonLib/Auth_AuthDB/AuthDB.php between version 1.16 and 1.17
| version 1.16, 2007/09/22 06:13:06 |
version 1.17, 2008/05/01 14:15:57 |
|
|
| * http://platon.sk/projects/phpPlatonLib/ |
* http://platon.sk/projects/phpPlatonLib/ |
| */ |
*/ |
| |
|
| /* $Platon: phpPlatonLib/Auth_AuthDB/AuthDB.php,v 1.15 2007-09-22 06:09:11 nepto Exp $ */ |
/* $Platon: phpPlatonLib/Auth_AuthDB/AuthDB.php,v 1.16 2007-09-22 06:13:06 nepto Exp $ */ |
| |
|
| /* |
/* |
| * History: |
* History: |
|
|
| /* Sending HTTP_X_FORWARDED_FOR? OK, send anything you want, |
/* Sending HTTP_X_FORWARDED_FOR? OK, send anything you want, |
| but it must persist for the whole session. */ |
but it must persist for the whole session. */ |
| $ret = array(); |
$ret = array(); |
| foreach (array('REMOTE_ADDR', 'HTTP_X_FORWARDED_FOR') as $key) { |
foreach (array('REMOTE_ADDR', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_REAL_IP') as $key) { |
| if (isset($_SERVER[$key])) { |
if (isset($_SERVER[$key])) { |
| $ret[] = $_SERVER[$key]; |
$ret[] = $_SERVER[$key]; |
| } |
} |
| } |
} |
| |
$ret = array_unique($ret); |
| $ret = join(' / ', $ret); |
$ret = join(' / ', $ret); |
| break; |
break; |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|