1 # NanoBlogger Total Vists Plugin
2 # gets hits on /blog from apache access logs
4 # sample code for templates - based on default stylesheet
7 # Total visits (last year): $TOTAL_VISITS
10 nb_msg "generating last visits ..."
14 for log in $ACCESS_LOG; do
15 TOTAL_VISITS=$(($TOTAL_VISITS + $(zgrep -c -h "GET /blog/ " $log)))