#
OnlyFiles=""
+# Add here a list of kind of url (file extension) that must be counted as
+# "Hit only" and not as a "Hit" and "Page viewed". You can set here all images
+# extensions as they are hit downloaded but they are not viewed pages.
+# URL with such extensions are not included in the TOP Pages/URL report.
+# Example: ""
+# Example: "gif jpg jpeg png bmp zip arj gz z wav mp3 wma"
+# Default: "gif jpg jpeg png bmp"
+#
+NotPageList="gif jpg jpeg png bmp"
+
# Keep or attach the query string to the URL in the statistics for individual
# pages. This is primarily used to differentiate between the URLs of dynamic
-# pages.
+# pages. If set to 1, mypage.html?id=x and mypage.html?id=y are counted as
+# two different pages.
# Possible values:
# 0 - URLs are cleaned from the query string (ie: "/mypage.html")
# 1 - Full URL with query string is used (ie: "/mypage.html?x=y")
%MonthBytes = %MonthHits = %MonthHostsKnown = %MonthHostsUnknown = %MonthPages = %MonthUnique = %MonthVisits =
%monthlib = %monthnum = ();
-$VERSION="3.2 (build 62)";
+$VERSION="3.2 (build 63)";
$Lang="en";
# Default value
$AddOn=0;
#require "${DIR}addon.pl"; $AddOn=1; # Keep this line commented in standard version
-# URL with such end signature are kind of URL we only need to count as hits
-@NotPageList= (
- "gif","jpg","jpeg","png","bmp",
-# "zip","arj","gz","z",
-# "pdf","doc","ppt","rtf","txt",
-# "mp3","wma"
- );
-
# Those addresses are shown with those lib (First column is full exact relative URL, second column is text to show instead of URL)
%Aliases = (
"/", "<b>HOME PAGE</b>",
}
if ($FileConfig eq "") { error("Error: Couldn't open config file \"$PROG.$SiteConfig.conf\" nor \"$PROG.conf\" : $!"); }
&debug("Call to Read_Config_File [FileConfig=\"$FileConfig\"]");
+ my $foundNotPageList=0;
while (<CONFIG>) {
chomp $_; s/\r//;
$_ =~ s/#.*//; # Remove comments
$i=0; foreach $elem (@felter) { $OnlyFiles[$i]=$elem; $i++; }
next;
}
+ if ($param =~ /^NotPageList/) {
+ my @felter=split(/\s+/,$value);
+ $i=0; foreach $elem (@felter) { $NotPageList[$i]=$elem; $i++; }
+ $foundNotPageList=1;
+ next;
+ }
if ($param =~ /^URLWithQuery/) { $URLWithQuery=$value; next; }
if ($param =~ /^WarningMessages/) { $WarningMessages=$value; next; }
if ($param =~ /^NbOfLinesForCorruptedLog/) { $NbOfLinesForCorruptedLog=$value; next; }
if ($param =~ /^color_s/) { $color_s=$value; next; }
}
close CONFIG;
+ # If parameter NotPageList not found. Init for backward compatibility
+ if (! $foundNotPageList) {
+ $NotPageList[0]="gif";
+ $NotPageList[1]="jpg";
+ $NotPageList[2]="jpeg";
+ $NotPageList[3]="png";
+ $NotPageList[4]="bmp";
+ }
}
if ($URLFilter) { print "<TR bgcolor=\"#$color_TableBGRowTitle\"><TH>$Message[79]: <b>$URLFilter</b> - ".(scalar keys %_url_p)." $Message[28]</TH>"; }
else { print "<TR bgcolor=\"#$color_TableBGRowTitle\"><TH>".(scalar keys %_url_p)." $Message[28]</TH>"; }
print "<TH bgcolor=\"#$color_p\"> $Message[29] </TH>";
+ print "<TH bgcolor=\"#$color_s\"> $Message[104] </TH>";
if ($AddOn) { AddOn_ShowFields(""); }
print "<TH> </TH></TR>\n";
$max_p=1; foreach my $key (values %_url_p) { if ($key > $max_p) { $max_p = $key; } }
if (length($nompage)>$MaxLengthOfURL) { $nompage=substr($nompage,0,$MaxLengthOfURL)."..."; }
if ($ShowLinksOnUrl) { print "<A HREF=\"http://$SiteToAnalyze$key\">$nompage</A>"; }
else { print "$nompage"; }
- my $bredde=int($BarWidth*$_url_p{$key}/$max_p)+1;
- print "</TD><TD>$_url_p{$key}</TD>";
+ my $bredde_p=0; my $bredde_s=0;
+ if ($max_p > 0) { $bredde_p=int($BarWidth*$_url_p{$key}/$max_p)+1; }
+ if ($_url_p{$key} && ($bredde_p==1)) { $bredde_p=2; }
+ if ($max_p > 0) { $bredde_e=int($BarWidth*$_url_e{$key}/$max_p)+1; }
+ if ($_url_e{$key} && ($bredde_e==1)) { $bredde_e=2; }
+ print "</TD>";
+ print "<TD>$_url_p{$key}</TD><TD>".($_url_e{$key}?$_url_e{$key}:" ")."</TD>";
if ($AddOn) { AddOn_ShowFields($key); }
- print "<TD CLASS=AWL><IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_p\" WIDTH=$bredde HEIGHT=8></TD></TR>\n";
+ print "<TD CLASS=AWL>";
+ print "<IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_p\" WIDTH=$bredde_p HEIGHT=8><br>";
+ print "<IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_e\" WIDTH=$bredde_e HEIGHT=8>";
+ print "</TD></TR>";
$count++;
}
&tab_end;
if ($_url_p{$key} && ($bredde_p==1)) { $bredde_p=2; }
if ($max_p > 0) { $bredde_e=int($BarWidth*$_url_e{$key}/$max_p)+1; }
if ($_url_e{$key} && ($bredde_e==1)) { $bredde_e=2; }
- print "</TD><TD>$_url_p{$key}</TD><TD>".($_url_e{$key}?$_url_e{$key}:" ")."</TD><TD CLASS=AWL>";
+ print "</TD><TD>$_url_p{$key}</TD><TD>".($_url_e{$key}?$_url_e{$key}:" ")."</TD>";
+ print "<TD CLASS=AWL>";
print "<IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_p\" WIDTH=$bredde_p HEIGHT=8 ALT=\"$Message[56]: ".int($_url_p{$key})."\" title=\"$Message[56]: ".int($_url_p{$key})."\"><br>";
print "<IMG SRC=\"$DirIcons\/other\/$BarImageHorizontal_e\" WIDTH=$bredde_e HEIGHT=8 ALT=\"$Message[104]: ".int($_url_e{$key})."\" title=\"$Message[104]: ".int($_url_e{$key})."\">";
print "</TD></TR>\n";