From: eldy <> Date: Sun, 2 Dec 2001 04:37:32 +0000 (+0000) Subject: Show Browser/OS/Searchengine key if lib not found. X-Git-Tag: AWSTATS_1_0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98293bc03ea1e0355a145487c2944385951dee97;p=thirdparty%2FAWStats.git Show Browser/OS/Searchengine key if lib not found. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 17fee8cd..d35bfa31 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -93,7 +93,7 @@ $color_h, $color_k, $color_link, $color_p, $color_s, $color_u, $color_v, $color_ %monthlib = %monthnum = (); -$VERSION="3.2 (build 72)"; +$VERSION="3.2 (build 74)"; $Lang="en"; # Default value @@ -3500,7 +3500,8 @@ EOF print "$Message[0]$_browser_h{$key}$p %\n"; } else { - print "$BrowsersHashIDLib{$key}$_browser_h{$key}$p %\n"; + my $newbrowser=$BrowsersHashIDLib{$key}||$key; + print "$newbrowser$_browser_h{$key}$p %\n"; } $count++; } @@ -3522,8 +3523,9 @@ EOF print "$p %\n"; } else { - my $nameicon = $OSHashLib{$key}; $nameicon =~ s/\s.*//; $nameicon =~ tr/A-Z/a-z/; - print "$OSHashLib{$key}$_os_h{$key}"; + my $newos=$OSHashLib{$key}||$key; + my $nameicon=$newos; $nameicon =~ s/\s.*//; $nameicon =~ tr/A-Z/a-z/; + print "$newos$_os_h{$key}"; print "$p %\n"; } $count++; @@ -3560,7 +3562,8 @@ EOF print "\n"; $count=0; foreach my $key (sort { $SortDir*$_se_referrals_h{$a} <=> $SortDir*$_se_referrals_h{$b} } keys (%_se_referrals_h)) { - print "\n"; + my $newreferer=$SearchEnginesHashIDLib{$key}||$key; + print "\n"; $count++; } print "
- $SearchEnginesHashIDLib{$key} $_se_referrals_h{\"$key\"}
- $newreferer $_se_referrals_h{$key}
\n";