]> i-scream Git - www.i-scream.org.git/blobdiff - cgi-bin/logviewer.cgi
Don't specifically give an ihost download, rather, give the dir.
[www.i-scream.org.git] / cgi-bin / logviewer.cgi
index df05c6948e77f983f6115a60d5b982541c6949bc..3de416e50a41d17ba43856ac5aaf6b28d49b6194 100755 (executable)
@@ -12,6 +12,8 @@ print "Content-type: text/html\n\n";
 
 print '<html><body><table border="1">';
 
+$download_count = 0;
+
 open(FILE, "<download_log");
 while($line = <FILE>) {
     @row = split(/\|/, $line);
@@ -25,6 +27,7 @@ while($line = <FILE>) {
   <td>$row[5]</td>
  </tr>
 EOT
+    $download_count++;
 }
 
-print "</table></body></html>";
\ No newline at end of file
+print "</table>Download count: $download_count</body></html>";
\ No newline at end of file