/[debian]/nanobloggerplugins/trunk/weblog_visits.sh
ViewVC logotype

Annotation of /nanobloggerplugins/trunk/weblog_visits.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 162 - (hide annotations)
Sat Feb 25 18:12:21 2006 UTC (15 years, 6 months ago) by gregoa
File MIME type: application/x-sh
File size: 369 byte(s)
[svn-inject] Forking nanobloggerplugins source to Trunk
1 gregoa 160 # NanoBlogger Total Vists Plugin
2     # gets hits on /blog from apache access logs
3     #
4     # sample code for templates - based on default stylesheet
5     #
6     # <div class="side">
7     # Total visits (last year): $TOTAL_VISITS
8     # </div>
9    
10     nb_msg "generating last visits ..."
11    
12     TOTAL_VISITS=0
13    
14     for log in $ACCESS_LOG; do
15     TOTAL_VISITS=$(($TOTAL_VISITS + $(zgrep -c -h "GET /blog/ " $log)))
16     done
17    

  ViewVC Help
Powered by ViewVC 1.1.26