Hello, I've been using awstats for some years now and have a suggestion for viewing "Daily"
stats within the browser report. I've
added code to the awstats.pl file. Between lines 173 and 174 Ive added:
Â
################################################################
#Added code for "day" or "Month" reporting…
if ( $ENV{QUERY_STRING} ne '') {
 my $file = $ENV{QUERY_STRING};
 my ($one, $two, $three, $four, $five, $six, $seven) = split (/&/, $file);
 my ($month1, $month2) = split (/=/, $one);
 my ($day1, $day) = split (/=/, $two);
 my ($year1, $year2) = split (/=/, $three);
 #$DatabaseBreak='day';
 if ($day ne 'all')
 {
 $DatabaseBreak='day';
 }
}
$myawstatsver  = 'awstats70';
 ################################################################
Â
and between lines ~9888 and 9889 I've added:
Â
##############################################################################################################
   #Modification added By John Ridgway: Added "Day" pulldown to html page that only
lists days for existing data
   #Also adds "- Full Month – " option to see regular monthly output
    print "<select class="aws_formfield" name="day">n";
    my $Diritem = "";
    my $file = $ENV{QUERY_STRING};
    my ($one, $two, $three, $four, $five, $six, $seven) = split (/&/, $file);
    my ($month1, $month2) = split (/=/, $one);
    my ($day1, $day) = split (/=/, $two);
    my ($year1, $year2) = split (/=/, $three);
    my ($reportname1, $reportname2) = split(/=/, $five);
    my $FullMonth = "";
    if ($AllowFullYearView >= 2) {
     print "<option value="all">- Full Month -</option>n";
    }
    if ($day eq 'all') {
     my $FullMonth = $day;
    }
    foreach (1..9) {
    if (! DateIsValid($_,$month2,$year2)) { next; }
     my $daynum = "0".$_;
     my $checkfile = "E:".$myawstatsver."".$reportname2."awstats".$month2.$year2.$daynum.".".$reportname2.".txt";
     #my $dayix=sprintf("%02s",$_);
     if (-e $checkfile) {print "<option".("$daynum" eq "$day"?" selected="true"":"")." value="$daynum">$daynum</option>n"}; #if -e $checkfile;
    }
    foreach (10..31) {
    if (! DateIsValid($_,$month2,$year2)) { next; }
     my $daynum = $_;
     my $checkfile = "E:".$myawstatsver."".$reportname2."awstats".$month2.$year2.$daynum.".".$reportname2.".txt";
     #my $dayix=sprintf("%02s",$_);
     if (-e $checkfile) {print "<option".("$daynum" eq "$day"?" selected="true"":"")." value="$daynum">$daynum</option>n"}; #if -e $checkfile;
    }
    if ($FullMonth eq 'all') {print "<option value="$day">$day</option>n"};
   #
   #
   ##############################################################################################################
Â
Don't know if this is helpful to anyone or if it's alrwady been done, but it works for me.
Â
Thanks for a great, low-cost, logfile statistical analyzer!
Â
John Ridgway