Ignore:
Timestamp:
11/30/05 14:03:46 (7 years ago)
Author:
sam
Message:
  • store dates in reverse order so that the latest hits are found at the beginning of the database.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trollforge/lastmeasure/stats/index.php

    r114 r115  
    1313    while($key != false) { 
    1414        $val = dba_fetch($key, $id); 
    15         list($ip, $port, $hostname, $uagent, $referer, $user, $clipboard) = explode(' ', $val); 
     15        list($ip, $port, $hostname, $uagent, 
     16             $referer, $user, $clipboard) = explode(' ', $val); 
     17        $str = "<li>"; 
     18        $str .= date('Y-m-d H:M:S', -1 - '0x' . substr($key, 0, 8)); 
     19        $str .= " $ip:$port ($hostname)"; 
    1620        $str = "<li>$key --- $ip:$port ($hostname)"; 
    17         $str .= " useragent: " . base64_decode($uagent); 
    1821        $str .= " referer: " . base64_decode($referer); 
    1922        $str .= " user: " . base64_decode($user); 
     
    7073<head> 
    7174   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    72    <title>LM stats</title> 
     75   <title>GNAA Last Measure Statistics</title> 
    7376   <link rel="icon" type="image/x-icon" href="/favicon.ico" /> 
    7477   <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> 
    7578</head> 
    7679<body> 
    77   <div style="float: right; margin-top: 0px; background-color: transparent; 
     80  <div style="float: left; margin-top: 0px; background-color: transparent; 
    7881              border: 30px; clear: both;"> 
    7982    <img src="/gnaa.png" width="108" height="40" 
    8083         alt="GNAA" /> 
    8184  </div> 
     85 
     86  <h1> GNAA Last Measure Statistics </h1> 
    8287 
    8388  <p> Attempt at some lmstats. Unfinished. </p> 
Note: See TracChangeset for help on using the changeset viewer.