Changeset 242 for trollforge/lastmeasure/include
- Timestamp:
- 11/08/06 04:14:50 (7 years ago)
- File:
-
- 1 edited
-
trollforge/lastmeasure/include/db.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trollforge/lastmeasure/include/db.php
r201 r242 4 4 * with -time() so that newest hits are stored first in alphabetical order. */ 5 5 function genkey($ip) { 6 return sprintf('%08x', -1- time()) . substr(md5($ip . rand()), 0, 8);6 return sprintf('%08x', 0xffffffff - time()) . substr(md5($ip . rand()), 0, 8); 7 7 } 8 8 9 9 /* Get back the date value from a key */ 10 10 function key2date($key) { 11 return 0xffffffff - hexdec(substr($key, 0, 8));11 return 0xffffffff - hexdec(substr($key, 0, 8)); 12 12 } 13 13
Note: See TracChangeset
for help on using the changeset viewer.
