Changeset 1288

Show
Ignore:
Timestamp:
08/16/08 05:21:57 (4 months ago)
Author:
_ck_
Message:

page count ban too low for google, bug in ip lookup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mini-track/trunk/mini-track-admin.php

    r1286 r1288  
    125125        $page=''; fputs ($fp, $request); while (!feof($fp)) {$page.=fgets ($fp,1024);} fclose ($fp);    // echo $page; 
    126126        preg_match("/\<pre\>(.*)\<\/pre\>/sim",$page,$temp); $lines=explode("\n",strip_tags($temp[0])); 
    127         foreach ($lines as $line) {$line=trim($line);if ((!ereg('^\#|\%.*$',$line)) && ($line>'')) {$temp=explode(":",$line,2); @$data[trim($temp[0])] = trim($temp[1]);}} 
     127        foreach ($lines as $line) {$line=trim($line);if ((!ereg('^\#|\%.*$',$line)) && ($line>'')) {$temp=explode(":",$line,2); $data[trim($temp[0])] = trim($temp[1]);}} 
    128128} else {$data['error'] = "$errstr ($errno)\n";}          
    129129$server=0; for ($i = 1; $i <= count($host); $i++){if (isset($data['ReferralServer']) && strpos($data['ReferralServer'],$keyword[$i])){$server=$i;break;}} 
  • mini-track/trunk/mini-track.php

    r1287 r1288  
    4141                                                                        // (not recommended to set this lower than 50 ppm because some bots like google move that fast) 
    4242                                                                        // set to 0 (zero) to disable. 
    43 $mini_track_options['ban_pages'] = 95;                                // temporarily ban any user for the track_time if they exceed this many pages in a single session 
    44                                                                         // (not recommended to set this lower than 100 because some bots like google take that many at once) 
     43$mini_track_options['ban_pages'] = 200;                               // temporarily ban any user for the track_time if they exceed this many pages in a single session 
     44                                                                        // (not recommended to set this lower than 200 because some bots like google take that many at once) 
    4545                                                                        // set to 0 (zero) to disable. 
    4646                                                                         
     
    6060/* STOP EDITING HERE */ 
    6161 
    62 $mini_track_options['geoip'] =  false;         // "ip2c";             // cc lookup ->  false | mysql | ip2c 
    63 $mini_track_options['flags'] = false;         // "/images/flags/";    // images instead of cc - path to flags 
    64  
    65 $mini_track_options['debug'] = false;       // true = shows more info when you hover over IP in display panel - makes saved data very large, don't use regularly 
     62$mini_track_options['geoip'] =  "mysql";               // false;       // "ip2c";             // cc lookup ->  false | mysql | ip2c 
     63$mini_track_options['flags'] = "/images/flags/";       // false;      // "/images/flags/";    // images instead of cc - path to flags 
     64 
     65$mini_track_options['debug'] = true;       // true = shows more info when you hover over IP in display panel - makes saved data very large, don't use regularly 
    6666 
    6767$bb->load_options = true;       // better db performance, but probably won't work here, put it into your bb-config.php