[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2630 - GNUnet-docs/WWW
From: |
grothoff |
Subject: |
[GNUnet-SVN] r2630 - GNUnet-docs/WWW |
Date: |
Sat, 22 Apr 2006 08:11:53 -0700 (PDT) |
Author: grothoff
Date: 2006-04-22 08:11:53 -0700 (Sat, 22 Apr 2006)
New Revision: 2630
Modified:
GNUnet-docs/WWW/hostlist.php
Log:
fix
Modified: GNUnet-docs/WWW/hostlist.php
===================================================================
--- GNUnet-docs/WWW/hostlist.php 2006-04-22 15:10:44 UTC (rev 2629)
+++ GNUnet-docs/WWW/hostlist.php 2006-04-22 15:11:53 UTC (rev 2630)
@@ -9,13 +9,15 @@
if (! $dir)
die("Cannot open directory $path.\n");
$mas = array();
-while ($fname = readdir($dir))
- if (is_file($path . '/' . $fname)) {
+while ($fname = readdir($dir)) {
+ $fn = $path . '/' . $fname;
+ if (is_file($fn)) {
$dpo = strpos($fname, '.') + 1;
$len = strlen($fname);
if (in_array(substr($fname, $dpo - $len), $extmas))
- $mas[] = $fname;
+ $mas[] = $fn;
}
+}
shuffle($mas); // randomize order
foreach ($mas as $val)
echo file_get_contents($val);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2630 - GNUnet-docs/WWW,
grothoff <=