From: Paul Mutton Date: Fri, 25 May 2001 18:02:15 +0000 (+0000) Subject: Now displays the total number of downloads at the bottom of the X-Git-Tag: PRE_WWW_REDESIGN~176 X-Git-Url: http://git.i-scream.org/?a=commitdiff_plain;h=8792f2598251eb8a77d2c19d32e5265eece47ade;hp=374eadca4d94df9fd11726246adbd2a42236e131;p=www.i-scream.org.git Now displays the total number of downloads at the bottom of the page... always nice to know. Perhaps one day I shall have to change this so it doesn't display the whole lot! --- diff --git a/cgi-bin/logviewer.cgi b/cgi-bin/logviewer.cgi index df05c69..3de416e 100755 --- a/cgi-bin/logviewer.cgi +++ b/cgi-bin/logviewer.cgi @@ -12,6 +12,8 @@ print "Content-type: text/html\n\n"; print ''; +$download_count = 0; + open(FILE, ") { @row = split(/\|/, $line); @@ -25,6 +27,7 @@ while($line = ) { EOT + $download_count++; } -print "
$row[5]
"; \ No newline at end of file +print "Download count: $download_count"; \ No newline at end of file