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

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

Modified:
   trunk/packs.matroska.org/data/download.php
   trunk/packs.matroska.org/data/index.php.de
   trunk/packs.matroska.org/data/index.php.en
   trunk/packs.matroska.org/data/index.php.fr
Log:
Added some more checking, and removed a not needed level in the download array.

Modified: trunk/packs.matroska.org/data/download.php
===================================================================
--- trunk/packs.matroska.org/data/download.php	2004-08-21 22:12:13 UTC (rev 485)
+++ trunk/packs.matroska.org/data/download.php	2004-08-22 00:39:05 UTC (rev 486)
@@ -14,7 +14,16 @@
 	else 
 		$version = $_REQUEST["ver"];
 		
+	// Make sure we have a version number
+	if($version == "") {
+		die("Version number not found.");
+	}			
+		
 	$link = $links[$version][$_REQUEST["id"]];
+	// Make sure the link exist
+	if ($link == "") {
+		die("Link not found.");
+	}
 
 	// Save Download Stats
 	$download = unserialize(implode('', file($logfilename)));
@@ -22,7 +31,7 @@
 	// Make sure we opened the logfile correctly, otherwise we're gonna trash it
 	if (count($download) != 0)
 	{
-		$download[$_REQUEST["ver"]][$version][$_REQUEST["id"]]++;
+		$download[$version][$_REQUEST["id"]]++;
 
 		$file = fopen($logfilename,"w");
 		fputs($file, serialize($download));
@@ -35,6 +44,6 @@
 else
 {
 	// test cleanup
-	echo "File not found";
+	echo "File not found.";
 }
 ?>

Modified: trunk/packs.matroska.org/data/index.php.de
===================================================================
--- trunk/packs.matroska.org/data/index.php.de	2004-08-21 22:12:13 UTC (rev 485)
+++ trunk/packs.matroska.org/data/index.php.de	2004-08-22 00:39:05 UTC (rev 486)
@@ -32,7 +32,7 @@
 <h2><strong>Matroska Pack Full v<? echo $latest; ?></strong></h2>
   <a href="/latest/Matroska_Pack_Full.exe" target="_self">Download</a> ( 3.37 MB / 3'416'305 Bytes ) - <a href="/<?php echo $latest; ?>/Matroska_Pack_Full.exe">permalink</a><br/>
   <div class="tiny">Downloads so far: 
-  <!-- counter --> <? echo ($download["latest"][$latest]["Matroska_Pack_Full"] + $download["latest"]["1.0.2"]["Matroska_Pack_Full"]); ?>
+  <!-- counter --> <? echo ($download[$latest]["Matroska_Pack_Full"] + $download["1.0.2"]["Matroska_Pack_Full"]); ?>
   since 1st April 2004</div>
 
 <p>Das bekannte Full Pack erlaubt nicht nur das Abspielen von Matroska-Dateien (.mkv und .mka),
@@ -72,7 +72,7 @@
   <h2><strong>Matroska Pack Lite v<? echo $latest; ?></strong></h2>
   <a href="/latest/Matroska_Pack_Lite.exe" target="_self">Download</a> (0.75 MB / 768'931 Bytes) - <a href="/<?php echo $latest; ?>/Matroska_Pack_Lite.exe">permalink</a><br/>
   <div class="tiny">Downloads so far: 
-  <!-- counter --> <? echo ($download["latest"][$latest]["Matroska_Pack_Lite"] + $download["latest"]["1.0.2"]["Matroska_Pack_Lite"]); ?>
+  <!-- counter --> <? echo ($download[$latest]["Matroska_Pack_Lite"] + $download["1.0.2"]["Matroska_Pack_Lite"]); ?>
   since 1st April 2004</div>
 
 <p>Dieses Matroska-Pack enthält nur das Notwendigste, was zum Abspielen von Matroska-Dateien 
@@ -88,7 +88,7 @@
   <h2><strong>Matroska Pack MPEG4 v<? echo $latest; ?></strong></h2>
   <a href="/latest/Matroska_Pack_MPEG4.exe" target="_self">Download</a> (2.18 MB / 2'235'499 Bytes) - <a href="/<?php echo $latest; ?>/Matroska_Pack_MPEG4.exe">permalink</a><br/>
   <div class="tiny">Downloads so far: 
-  <!-- counter --> <? echo ($download["latest"][$latest]["Matroska_Pack_MPEG4"] + $download["latest"]["1.0.2"]["Matroska_Pack_MPEG4"]); ?>
+  <!-- counter --> <? echo ($download[$latest]["Matroska_Pack_MPEG4"] + $download["1.0.2"]["Matroska_Pack_MPEG4"]); ?>
   since 1st April 2004</div>
 
 <p>Dieses Pack basiert auf dem Full Pack, aber alles, was nicht zum Abspielen von typischen DivX/XVid Matroska-Dateien

Modified: trunk/packs.matroska.org/data/index.php.en
===================================================================
--- trunk/packs.matroska.org/data/index.php.en	2004-08-21 22:12:13 UTC (rev 485)
+++ trunk/packs.matroska.org/data/index.php.en	2004-08-22 00:39:05 UTC (rev 486)
@@ -32,7 +32,7 @@
 <h2><strong>Matroska Pack Full v<? echo $latest; ?></strong></h2>
   <a href="/latest/Matroska_Pack_Full.exe" target="_self">Download</a> (3.37 MB / 3'416'305 Bytes) - <a href="/<?php echo $latest; ?>/Matroska_Pack_Full.exe">permalink</a><br/>
   <div class="tiny">Downloads so far: 
-  <!-- counter --> <? echo ($download["latest"][$latest]["Matroska_Pack_Full"] + $download["latest"]["1.0.2"]["Matroska_Pack_Full"]); ?>
+  <!-- counter --> <? echo ($download[$latest]["Matroska_Pack_Full"] + $download["1.0.2"]["Matroska_Pack_Full"]); ?>
   since 1st April 2004</div>
 
 <p>The famous full pack will not only allow playing matroska media files (.mkv and .mka), but it will also allow playback 
@@ -64,7 +64,7 @@
   <h2><strong>Matroska Pack Lite v<? echo $latest; ?></strong></h2>
   <a href="/latest/Matroska_Pack_Lite.exe" target="_self">Download</a> (0.75 MB / 768'931 Bytes) - <a href="/<?php echo $latest; ?>/Matroska_Pack_Lite.exe">permalink</a><br/>
   <div class="tiny">Downloads so far: 
-  <!-- counter --> <? echo ($download["latest"][$latest]["Matroska_Pack_Lite"] + $download["latest"]["1.0.2"]["Matroska_Pack_Lite"]); ?>
+  <!-- counter --> <? echo ($download[$latest]["Matroska_Pack_Lite"] + $download["1.0.2"]["Matroska_Pack_Lite"]); ?>
   since 1st April 2004</div>
 
 <p>Reduced to the max, this pack contains only the very <strong>basic stuff needed to play matroska 
@@ -79,7 +79,7 @@
   <h2><strong>Matroska Pack MPEG4 v<? echo $latest; ?></strong></h2>
   <a href="/latest/Matroska_Pack_MPEG4.exe" target="_self">Download</a> (2.18 MB / 2'235'499 Bytes) - <a href="/<?php echo $latest; ?>/Matroska_Pack_MPEG4.exe">permalink</a><br/>
   <div class="tiny">Downloads so far: 
-  <!-- counter --> <? echo ($download["latest"][$latest]["Matroska_Pack_MPEG4"] + $download["latest"]["1.0.2"]["Matroska_Pack_MPEG4"]); ?>
+  <!-- counter --> <? echo ($download[$latest]["Matroska_Pack_MPEG4"] + $download["1.0.2"]["Matroska_Pack_MPEG4"]); ?>
   since 1st April 2004</div>
 
 <p>This pack is based on the full pack, but has all the stuff removed which is not necessary for playback 

Modified: trunk/packs.matroska.org/data/index.php.fr
===================================================================
--- trunk/packs.matroska.org/data/index.php.fr	2004-08-21 22:12:13 UTC (rev 485)
+++ trunk/packs.matroska.org/data/index.php.fr	2004-08-22 00:39:05 UTC (rev 486)
@@ -32,7 +32,7 @@
 <h2><strong>Matroska Pack Complet v<? echo $latest; ?></strong></h2>
   <a href="/latest/Matroska_Pack_Full.exe" target="_self">Téléchargement</a> (3,37 Mo / 3.416.305 Octets) - <a href="/<?php echo $latest; ?>/Matroska_Pack_Full.exe">permalink</a><br/>
   <div class="tiny">Chargements jusqu'à présent: 
-  <!-- counter --> <? echo ($download["latest"][$latest]["Matroska_Pack_Full"] + $download["latest"]["1.0.2"]["Matroska_Pack_Full"]); ?>
+  <!-- counter --> <? echo ($download[$latest]["Matroska_Pack_Full"] + $download["1.0.2"]["Matroska_Pack_Full"]); ?>
   depuis le 1er Avril 2004</div>
 
 <p>Le pack complet pourra jouer non seulement les fichiers Matroska (.mkv et .mka), 
@@ -62,7 +62,7 @@
   <h2><strong>Matroska Pack Lite v<? echo $latest; ?></strong></h2>
   <a href="/latest/Matroska_Pack_Lite.exe" target="_self">Téléchargement</a> (0,75 MB / 768.931 Octets) - <a href="/<?php echo $latest; ?>/Matroska_Pack_Lite.exe">permalink</a><br/>
   <div class="tiny">Chargements jusqu'à présent:
-  <!-- counter --> <? echo ($download["latest"][$latest]["Matroska_Pack_Lite"] + $download["latest"]["1.0.2"]["Matroska_Pack_Lite"]); ?>
+  <!-- counter --> <? echo ($download[[$latest]["Matroska_Pack_Lite"] + $download["1.0.2"]["Matroska_Pack_Lite"]); ?>
   depuis le 1er Avril 2004</div>
 
 <p>Réduit à sa plus simple expression, ce pack contient le <strong>minimum nécessaire pour lire un fichier matroska</strong> avec du Vorbis et des sous-titres et un lecteur DirectShow. 
@@ -75,7 +75,7 @@
   <h2><strong>Matroska Pack MPEG4 v<? echo $latest; ?></strong></h2>
   <a href="/latest/Matroska_Pack_MPEG4.exe" target="_self">Téléchargement</a> (2,18 MB / 2.235.499 Octets) - <a href="/<?php echo $latest; ?>/Matroska_Pack_MPEG4.exe">permalink</a><br/>
   <div class="tiny">Chargements jusqu'à présent:
-  <!-- counter --> <? echo ($download["latest"][$latest]["Matroska_Pack_MPEG4"] + $download["latest"]["1.0.2"]["Matroska_Pack_MPEG4"]); ?>
+  <!-- counter --> <? echo ($download[$latest]["Matroska_Pack_MPEG4"] + $download["1.0.2"]["Matroska_Pack_MPEG4"]); ?>
   depuis le 1er Avril 2004</div>
 
 <p>Ce pack est basé sur le pack complet mais sans les filtres non nécessaires à la lecture d'un fichier typique contenant du DivX/XviD. Il contient les décodeurs suivants</p><ul>
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.