diff --git a/plugins/serendipity_event_statistics/ChangeLog b/plugins/serendipity_event_statistics/ChangeLog index 955cf8c7..4eff1032 100644 --- a/plugins/serendipity_event_statistics/ChangeLog +++ b/plugins/serendipity_event_statistics/ChangeLog @@ -1,3 +1,18 @@ +20070723 Version 1.60: +---------------------- +(By kalkin) + +- rewrote the botfilter. Now it's smarter. +- the graphs can be maximal 200px large +- the bar colors are now relative. + +20070121 Version 1.50: +---------------------- +(By kalkin) + +- added lots of bots +- now the plugin just count each ip as an visitor at this day, not evry refresh + Version 1.40: ------------- diff --git a/plugins/serendipity_event_statistics/UTF-8/lang_bg.inc.php b/plugins/serendipity_event_statistics/UTF-8/lang_bg.inc.php index 170701e0..b207c789 100644 --- a/plugins/serendipity_event_statistics/UTF-8/lang_bg.inc.php +++ b/plugins/serendipity_event_statistics/UTF-8/lang_bg.inc.php @@ -61,8 +61,8 @@ @define('PLUGIN_EVENT_STATISTICS_EXT_OPT1', ' Не'); @define('PLUGIN_EVENT_STATISTICS_EXT_OPT2', 'Да, долу на страницата'); @define('PLUGIN_EVENT_STATISTICS_EXT_OPT3', 'Да, горе на страницата'); - @define('PLUGIN_EVENT_STATISTICS_EXT_ALL', 'Показване на пълна статистика?'); - @define('PLUGIN_EVENT_STATISTICS_EXT_ALL_DESC', 'Установете \'не\' за да показвате само статистиката за посетителите'); + @define('PLUGIN_EVENT_STATISTICS_EXT_ALL', 'Установете \'не\' за да показвате само статистиката за посетителите'); + @define('PLUGIN_EVENT_STATISTICS_EXT_ALL_DESC', 'Показване на всичко? (по подразбиране: не)'); @define('PLUGIN_EVENT_STATISTICS_EXT_ALL1', 'Не, скриване на всичко освен броячите'); @define('PLUGIN_EVENT_STATISTICS_EXT_ALL2', 'Пълна статистика'); @define('PLUGIN_EVENT_STATISTICS_EXT_VISITORS', 'Брой на посетителите'); diff --git a/plugins/serendipity_event_statistics/UTF-8/lang_de.inc.php b/plugins/serendipity_event_statistics/UTF-8/lang_de.inc.php index a3cb206f..95637de5 100644 --- a/plugins/serendipity_event_statistics/UTF-8/lang_de.inc.php +++ b/plugins/serendipity_event_statistics/UTF-8/lang_de.inc.php @@ -61,12 +61,17 @@ @define('PLUGIN_EVENT_STATISTICS_EXT_ALL1', 'Nein, alles außer dem Zähler verbergen.'); @define('PLUGIN_EVENT_STATISTICS_EXT_ALL2', 'Ja, alle Statistiken anzeigen!'); @define('PLUGIN_EVENT_STATISTICS_EXT_VISITORS', 'Anzahl der Besucher'); - @define('PLUGIN_EVENT_STATISTICS_EXT_VISTODAY', 'Anzahl der Besucher heute'); + @define('PLUGIN_EVENT_STATISTICS_EXT_HITSTODAY', 'Aufrufe heute'); + @define('PLUGIN_EVENT_STATISTICS_EXT_HITSTOTAL', 'Aufrufe gesamt'); + @define('PLUGIN_EVENT_STATISTICS_EXT_VISTODAY', 'Besucher heute'); @define('PLUGIN_EVENT_STATISTICS_EXT_VISTOTAL', 'Besucher gesamt'); @define('PLUGIN_EVENT_STATISTICS_EXT_VISSINCE', 'Die erweiterte Besucherstatistik hat seit folgendem Zeitpunkt Daten gesammelt:'); + @define('PLUGIN_EVENT_STATISTICS_EXT_COUNTDESC','Die Zahl der Aufrufe kann sehr groß werden, liefert jedoch einen Wert bezüglich der einzelnen Seitenanfragen. Diese Zahl erhöht sich deshalb mit JEDEM Seitenaufruf sowie jeder Aktualisierung der Seite und kann damit NICHT als Besucherzähler verstanden werden.'); @define('PLUGIN_EVENT_STATISTICS_EXT_VISLATEST', 'Letzte Besucher'); @define('PLUGIN_EVENT_STATISTICS_EXT_TOPREFS', 'Top-Referrer'); @define('PLUGIN_EVENT_STATISTICS_EXT_TOPREFS_NONE', 'Bisher wurden keine Referrer registriert.'); + @define('PLUGIN_EVENT_STATISTICS_EXT_DAYGRAPH', 'Aufrufe, auf den Tag bezogen'); + @define('PLUGIN_EVENT_STATISTICS_EXT_MONTHGRAPH', 'Aufrufe, auf den Monat bezogen'); @define('PLUGIN_EVENT_STATISTICS_OUT_EXT_STATISTICS', 'Erweiterte Besucherstatistik'); @define('PLUGIN_EVENT_STATISTICS_BANNED_HOSTS1', 'Aktivieren, keine Robots zählen'); @define('PLUGIN_EVENT_STATISTICS_BANNED_HOSTS2', 'Nein, Robots bitte mitzählen'); diff --git a/plugins/serendipity_event_statistics/UTF-8/lang_pl.inc.php b/plugins/serendipity_event_statistics/UTF-8/lang_pl.inc.php index f31e1831..335b1443 100644 --- a/plugins/serendipity_event_statistics/UTF-8/lang_pl.inc.php +++ b/plugins/serendipity_event_statistics/UTF-8/lang_pl.inc.php @@ -1,4 +1,4 @@ -add('name', PLUGIN_EVENT_STATISTICS_NAME); $propbag->add('description', PLUGIN_EVENT_STATISTICS_DESC); $propbag->add('stackable', false); - $propbag->add('author', 'Arnan de Gans, Garvin Hicking, Fredrik Sandberg'); - $propbag->add('version', '1.47'); + $propbag->add('author', 'Arnan de Gans, Garvin Hicking, Fredrik Sandberg, kalkin'); + $propbag->add('version', '1.48'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -144,7 +143,7 @@ class serendipity_event_statistics extends serendipity_event // excludelist botagents $banned_array = array( '1' => "unknown", - '2' => "Yahoo! Slurp", + '2' => "bot", '3' => "slurpy", '4' => "agent 007", '5' => "ichiro", @@ -170,39 +169,31 @@ class serendipity_event_statistics extends serendipity_event '25' => "Dumbot", '26' => "GeoBot", '27' => "DigExt", - '28' => "Feedfetcher-Google", + '28' => "Jeeves/Teoma", '29' => "FeedBurner", - '30' => "Jeeves/Teoma", - '31' => "FeedBurner/1.0(http://www.FeedBurner.com)", - '32' => "Technorati Feed Engine/0.01 (Java 1.4.2_07 Sun Microsystems Inc./Linux 2.6.9-22.0.1.ELsmp)", - '33' => "Java/1.5.0_10", - '34' => "Java/1.5.0_06", - '35' => "MarsEdit", - '36' => "Blogslive (info@blogslive.com)", - '37' => "XMLRPCCocoa", - '38' => "Feedfetcher-Google; (+www.google.com/feedfetcher.html)", - '39' => "YahooFeedSeeker/2.0 (compatible; Mozilla 4.0; MSIE 5.5; http://publisher.yahoo.com/rssguide)", - '40' => "Mediapartners-Google/2.1", - '41' => "MagpieRSS/0.61 (+http://magpierss.sf.net)", - '42' => "www.google.com/feedfetcher.html)", - '43' => "Sphere Scout&v4.0 (beta)- scout at sphere dot com", - '44' => "Mozilla 5.0(BlogCorpusReader 1.4142)", - '45' => "libwww-perl/5.76", - '46' => "Mozilla 5.0(BlogCorpusReader 1.4142)", - '48' => "WordPress/2.0.5", - '49' => "Incutio XML-RPC -- WordPress/2.0.5", - '50' => "-- WordPress/2.1-alpha3", - '51' => "WordPress/2.1.1", - '52' => "WordPress/2.1", - '53' => "ping.wordblog.de/ping/1.0", - '54' => "PEAR HTTP_Request class (http://pear.php.net/ )", - '55' => "Java/1.5.0_07", - '56' => "Mozilla 5.0(BlogCorpusReader 1.4142)", - '57' => "BlogPulseLive(support@blogpulse.com)" + '30' => "Technorati", + '31' => "Java/1.5.0_10", + '32' => "Java/1.5.0_06", + '33' => "MarsEdit", + '34' => "Blogslive", + '35' => "XMLRPCCocoa", + '36' => "Google", + '37' => "MagpieRSS", + '38' => "Sphere Scout", + '39' => "BlogCorpusReader", + '41' => "libwww-perl", + '42' => "WordPress", + '43' => "ping.wordblog.de", + '44' => "PEAR HTTP_Request", + '45' => "Java/1.5.0_07", + '46' => "BlogPulseLive(support@blogpulse.com)", + '47' => "TrackBack", + '48' => "Blogdimension", + '49' => "Yahoo" ); foreach($banned_array AS $ban) { - if (stristr($useragent, $ban)) { + if (stripos($useragent, $ban) !== false) { $found = 1; break; } @@ -797,17 +788,19 @@ class serendipity_event_statistics extends serendipity_event } $num = $this->statistics_getmonthlystats($i, $visitors_count[0]); + $rep = $num; + rsort($rep); + $maxVisHeigh = 100/$rep[0]*2; echo '