(feedback for shell version deleted).
It'd be nice to show visitors for a given date, both in absolute and relative ("-3" days) form.
--
MartinCleaver - 22 Nov 2004
# go through the logfile and collect visitor names
foreach( reverse split( /\n/, $logfile ) ) {
@bar = split( /\|/ );
if( ( ! %exclude ) || ( ! $exclude{ $bar[2] } ) ) {
# strip off all days not today
next unless sprintf( "%.2u ${tmon} %.2u", $mday, $year ) eq substr( $bar[1], 1, 11 );
push @visitorList, $bar[2];
$exclude{ $bar[2] } = "1";
}
}
the sprintf is invariant inside the loop - it would be faster to precalculate it.
--
MartinCleaver - 23 Nov 2004
I had started to convert this over to pure Perl, and then just before checking in, saw that it was already done. In my version, I have a "period=thismonth" that will produce a report on all people visiting in the current month. I had thought about being able to specify a more specific period, but haven't done it yet. I hope to roll in my changes soon; perhaps then I can take a look at
MartinCleaver's suggestion. Unless, of course, someone beats me to it again.
--
DavidBright - 23 Nov 2004
I am sorry you wasted time David. I so hate wastage. Its a shame that the
InterestedParties field is so utterly useless; all we need is a good subscription / email notification system that mailed people when topics changed.
--
MartinCleaver - 23 Nov 2004
If you are in the code David, can you make it count
TWikiGuests from different IP addresses as different visitors? Many people visit as
TWikiGuest and it is good to show these as separate visitors. Thanks.
Oh - and it would be nice to be able to recognise those IPs that definitely belong to certain spiders. For example:
Related is:
--
MartinCleaver - 24 Nov 2004
checked
.zip
into
CVS
--
WillNorris - 19 Jul 2005