Ignore:
Timestamp:
11/08/06 04:14:50 (7 years ago)
Author:
Rucas
Message:

fixed failed internets and now it works lolol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trollforge/lastmeasure/include/db.php

    r201 r242  
    44 * with -time() so that newest hits are stored first in alphabetical order. */ 
    55function 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); 
    77} 
    88 
    99/* Get back the date value from a key */ 
    1010function key2date($key) { 
    11     return 0xffffffff - hexdec(substr($key, 0, 8)); 
     11return 0xffffffff - hexdec(substr($key, 0, 8)); 
    1212} 
    1313 
Note: See TracChangeset for help on using the changeset viewer.