From: eldy <> Date: Sat, 23 Aug 2003 11:34:24 +0000 (+0000) Subject: Fixed the not showing icons for file type chart after update from a browser. X-Git-Tag: AWSTATS_WEBMIN_1_0_RELEASE~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6ebd2f13fbcf28c8bcba6f04cc1d0f9a19de7c4;p=thirdparty%2FAWStats.git Fixed the not showing icons for file type chart after update from a browser. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index ce37aaa6..13b0b420 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -21,7 +21,7 @@ use Socket; #----------------------------------------------------------------------------- use vars qw/ $REVISION $VERSION /; $REVISION='$Revision$'; $REVISION =~ /\s(.*)\s/; $REVISION=$1; -$VERSION="5.7 (build $REVISION)"; +$VERSION="5.8 (build $REVISION)"; # ----- Constants ----- use vars qw/ @@ -4946,7 +4946,11 @@ if (! $FrameName) { if ($FrameName ne 'index') { &Read_Language_Data($Lang); if ($FrameName ne 'mainleft') { - if ($UpdateStats) { &Read_Ref_Data('browsers','domains','operating_systems','robots','search_engines','worms'); } + # Update only + if ($UpdateStats && ! scalar keys %HTMLOutput) { &Read_Ref_Data('browsers','domains','operating_systems','robots','search_engines','worms','referer_spam'); } + # Update and output + elsif ($UpdateStats && scalar keys %HTMLOutput) { &Read_Ref_Data('browsers','domains','operating_systems','robots','search_engines','worms','referer_spam','mime'); } + # Output only elsif (scalar keys %HTMLOutput) { &Read_Ref_Data('browsers','domains','operating_systems','robots','search_engines','worms','mime'); } &Read_Plugins(); } diff --git a/wwwroot/cgi-bin/lib/referer_spam.pm b/wwwroot/cgi-bin/lib/referer_spam.pm index e706aa36..f9cda342 100644 --- a/wwwroot/cgi-bin/lib/referer_spam.pm +++ b/wwwroot/cgi-bin/lib/referer_spam.pm @@ -17,31 +17,31 @@ # key, cost #------------------------------------------------------- %RefererSpamKeys = ( -'adult',1, -'anal',2, -'dick',1, -'erotic',2, # erotic, erotica -'gay',2, -'lesbian',2 -'free',1, -'porn',2, -'sex',2 - -'full-list.net',4 -'voodoomachine.com',4 -'mastodonte.com',4 -'surfnomore.com',4 -'raverpussies.com',4 -'quiveringfuckholes.com',4 -'burningbush.netfirms.com',4 -'lesbo-tennie-girls.lesbian-hardcore-porn-teen-pics.com',4 -'free-people-search-engines.com',4 -'iaea.org',4 -'1stchoicecolo.com',4 -'globoads.com',4 -'morganindustriesinc.com',4 -'chicagodrugclub.com',4 -'massivecocks.com',4 +'adult'=>1, +'anal'=>2, +'dick'=>1, +'erotic'=>2, # erotic, erotica +'gay'=>2, +'lesbian'=>2, +'free'=>1, +'porn'=>2, +'sex'=>2, + +'full-list.net'=>4, +'voodoomachine.com'=>4, +'mastodonte.com'=>4, +'surfnomore.com'=>4, +'raverpussies.com'=>4, +'quiveringfuckholes.com'=>4, +'burningbush.netfirms.com'=>4, +'lesbo-tennie-girls.lesbian-hardcore-porn-teen-pics.com'=>4, +'free-people-search-engines.com'=>4, +'iaea.org'=>4, +'1stchoicecolo.com'=>4, +'globoads.com'=>4, +'morganindustriesinc.com'=>4, +'chicagodrugclub.com'=>4, +'massivecocks.com'=>4, );