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

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: toff
Date: 2004-09-18 13:31:06 +0400 (Sat, 18 Sep 2004)
New Revision: 707

Modified:
   trunk/packs.matroska.org/data/ircstats.php
   trunk/packs.matroska.org/data/showlog.php
Log:
Add some locking capability

Modified: trunk/packs.matroska.org/data/ircstats.php
===================================================================
--- trunk/packs.matroska.org/data/ircstats.php	2004-09-18 09:26:26 UTC (rev 706)
+++ trunk/packs.matroska.org/data/ircstats.php	2004-09-18 09:31:06 UTC (rev 707)
@@ -4,7 +4,7 @@
 
 $logfilename = "logs.txt";
 include("links.txt");
-$download = unserialize(implode('', file($logfilename)));
+$download = unserialize(safe_read_file($logfilename));
 
 $totalcount = 0;
 $totalsize = 0;
@@ -17,14 +17,14 @@
 	
 	foreach($versionArray as $linkKey => $linkValue) {
 	  echo str_replace('Matroska_Pack_', '', $linkKey);	  
-	  if(next($versionArray) == true) echo "/";
+	  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 "/";	  
+	  if(next($versionArray) == true) echo " / ";	  
 	}		
 	echo  " downloads\n";
 	

Modified: trunk/packs.matroska.org/data/showlog.php
===================================================================
--- trunk/packs.matroska.org/data/showlog.php	2004-09-18 09:26:26 UTC (rev 706)
+++ trunk/packs.matroska.org/data/showlog.php	2004-09-18 09:31:06 UTC (rev 707)
@@ -3,7 +3,7 @@
 <pre>
 <?php
 $logfilename = "logs.txt";
-$download = unserialize(implode('', file($logfilename)));
+$download = unserialize(safe_read_file($logfilename));
 print_r($download);
 ?>
 </pre>
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.