Changeset 3166 for trunk/include/functions_session.inc.php
- Timestamp:
- Feb 26, 2009, 9:12:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_session.inc.php
r3049 r3166 94 94 function get_remote_addr_session_hash() 95 95 { 96 return vsprintf( "%02X%02X", explode('.',$_SERVER['REMOTE_ADDR']) ); 96 $separator = (FALSE === strpos($_SERVER['REMOTE_ADDR'],'.')) 97 ? ':' 98 : '.' 99 ; 100 101 return vsprintf( 102 "%02X%02X", 103 explode($separator,$_SERVER['REMOTE_ADDR']) 104 ); 97 105 } 98 106
Note: See TracChangeset
for help on using the changeset viewer.