diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-04-10 20:16:13 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-04-10 20:16:13 +0200 |
commit | 2f9daf1661e0661f4400685164a54d4aa0b35bd6 (patch) | |
tree | 2e1f4cb4129ad920e663106eb0be9b555a9e9b7c /inc/auth.php | |
parent | d0a9c58614887a2f0b84b49588a131006e446a1d (diff) | |
download | rpg-2f9daf1661e0661f4400685164a54d4aa0b35bd6.tar.gz rpg-2f9daf1661e0661f4400685164a54d4aa0b35bd6.tar.bz2 |
Make more use of clientIP() FS#1668
Ignore-this: 13616da575fbe56064b2aa3d1d803bf5
darcs-hash:20090410181613-7ad00-b74c82c1f9296a2cb0d00b03316141b19821bda1.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index 5625d6efb..23031a29c 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -245,12 +245,13 @@ function auth_createToken(){ * @return string a MD5 sum of various browser headers */ function auth_browseruid(){ + $ip = clientIP(true); $uid = ''; $uid .= $_SERVER['HTTP_USER_AGENT']; $uid .= $_SERVER['HTTP_ACCEPT_ENCODING']; $uid .= $_SERVER['HTTP_ACCEPT_LANGUAGE']; $uid .= $_SERVER['HTTP_ACCEPT_CHARSET']; - $uid .= substr($_SERVER['REMOTE_ADDR'],0,strpos($_SERVER['REMOTE_ADDR'],'.')); + $uid .= substr($ip,0,strpos($ip,'.')); return md5($uid); } |