From: eldy <>
Date: Fri, 28 Mar 2003 21:11:38 +0000 (+0000)
Subject: Fixed a bug when using HBL codes in ShowRobotsStats parameter.
X-Git-Tag: AWSTATS_5_5_BETA~45
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bbf6288fd09ffb73ec4546676da2e44cdcc7c2c;p=thirdparty%2FAWStats.git
Fixed a bug when using HBL codes in ShowRobotsStats parameter.
---
diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt
index 2871ee06..c5fc777e 100644
--- a/docs/awstats_changelog.txt
+++ b/docs/awstats_changelog.txt
@@ -8,6 +8,7 @@ $Revision$ - $Author$ - $Date$
Fixes:
- Summary robots list was limited to MaxNbOfLoginShown instead of
being limited to MaxNbOfRobotShown value.
+- Fixed a bug when using HBL codes in ShowRobotsStats parameter.
New features/improvments:
- Added a 'Screen Size' report.
diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl
index adada052..5c81f921 100644
--- a/wwwroot/cgi-bin/awstats.pl
+++ b/wwwroot/cgi-bin/awstats.pl
@@ -6845,8 +6845,8 @@ if (scalar keys %HTMLOutput) {
print "
| $key | ";
if ($ShowAuthenticatedUsers =~ /P/i) { print "".($_login_p{$key}?$_login_p{$key}:" ")." | "; }
if ($ShowAuthenticatedUsers =~ /H/i) { print "$_login_h{$key} | "; }
- if ($ShowAuthenticatedUsers =~ /B/i) { print "".Format_Bytes($_login_k{$key})." | "; }
- if ($ShowAuthenticatedUsers =~ /L/i) { print "".($_login_l{$key}?Format_Date($_login_l{$key},1):'-')." | "; }
+ if ($ShowAuthenticatedUsers =~ /B/i) { print "".Format_Bytes($_login_k{$key})." | "; }
+ if ($ShowAuthenticatedUsers =~ /L/i) { print "".($_login_l{$key}?Format_Date($_login_l{$key},1):'-')." | "; }
print "
\n";
$total_p += $_login_p{$key}||0;
$total_h += $_login_h{$key};
@@ -6875,7 +6875,10 @@ if (scalar keys %HTMLOutput) {
if ($HTMLOutput{'lastrobots'}) { $title.="$Message[9]"; }
&tab_head("$title",19);
print "| ".(scalar keys %_robot_h)." $Message[51] | ";
- print "$Message[57] | $Message[75] | $Message[9] |
\n";
+ if ($ShowRobotsStats =~ /H/i) { print "$Message[57] | "; }
+ if ($ShowRobotsStats =~ /B/i) { print "$Message[75] | "; }
+ if ($ShowRobotsStats =~ /L/i) { print "$Message[9] | "; }
+ print "\n";
$total_p=$total_h=$total_k=0;
my $count=0;
if ($HTMLOutput{'allrobots'}) { &BuildKeyList($MaxRowsInHTMLOutput,$MinHit{'Robot'},\%_robot_h,\%_robot_h); }