[www] r497 - trunk/packs.matroska.org/data

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: toff
Date: 2004-08-22 13:47:34 +0400 (Sun, 22 Aug 2004)
New Revision: 497

Added:
   trunk/packs.matroska.org/data/ircstats.php
Log:
little page for irc counter

Added: trunk/packs.matroska.org/data/ircstats.php
===================================================================
--- trunk/packs.matroska.org/data/ircstats.php	2004-08-22 07:48:35 UTC (rev 496)
+++ trunk/packs.matroska.org/data/ircstats.php	2004-08-22 09:47:34 UTC (rev 497)
@@ -0,0 +1,35 @@
+<?
+
+header("Content-Type: text/plain");
+
+$logfilename = "logs.txt";
+include("links.txt");
+$download = unserialize(implode('', file($logfilename)));
+
+$totalcount = 0;
+$totalsize = 0;
+echo "Downloads for Matroska Pack (http://packs.matroska.org) :\n";
+foreach($links as $versionKey => $versionArray) {
+	asort($versionArray);
+	reset($versionArray);
+	
+	echo "v$versionKey (" . $release[$versionKey] .") : ";
+	
+	foreach($versionArray as $linkKey => $linkValue) {
+	  echo str_replace('Matroska_Pack_', '', $linkKey);	  
+	  if(next($versionArray) == true) echo "/";
+	}
+	echo " => ";
+	foreach($versionArray as $linkKey => $linkValue) {
+	  echo $download[$versionKey][$linkKey];
+	  $totalcount += $download[$versionKey][$linkKey];
+	  $totalsize += ($filesize[$versionKey][$linkKey] * $download[$versionKey][$linkKey]);
+	  if(next($versionArray) == true) echo "/";	  
+	}		
+	echo  " downloads\n";
+	
+}
+
+echo "Total: $totalcount, ".round($totalsize/1024/1024/1024,2)." GiB";
+
+?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.