From 8792f2598251eb8a77d2c19d32e5265eece47ade Mon Sep 17 00:00:00 2001 From: Paul Mutton Date: Fri, 25 May 2001 18:02:15 +0000 Subject: [PATCH 1/1] 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! --- cgi-bin/logviewer.cgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.44.0