Changeset 1288
- Timestamp:
- 08/16/08 05:21:57 (4 months ago)
- Files:
-
- mini-track/trunk/mini-track-admin.php (modified) (1 diff)
- mini-track/trunk/mini-track.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
mini-track/trunk/mini-track-admin.php
r1286 r1288 125 125 $page=''; fputs ($fp, $request); while (!feof($fp)) {$page.=fgets ($fp,1024);} fclose ($fp); // echo $page; 126 126 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]);}} 128 128 } else {$data['error'] = "$errstr ($errno)\n";} 129 129 $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 41 41 // (not recommended to set this lower than 50 ppm because some bots like google move that fast) 42 42 // 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 session44 // (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) 45 45 // set to 0 (zero) to disable. 46 46 … … 60 60 /* STOP EDITING HERE */ 61 61 62 $mini_track_options['geoip'] = false; // "ip2c"; // cc lookup -> false | mysql | ip2c63 $mini_track_options['flags'] = false; // "/images/flags/"; // images instead of cc - path to flags64 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 regularly62 $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 66 66 67 67 $bb->load_options = true; // better db performance, but probably won't work here, put it into your bb-config.php
