]> git.ozlabs.org Git - ccan/blobdiff - web/staticall.php
tal/str: accept take() for arguments.
[ccan] / web / staticall.php
index 60f7fa77b419e66fb8c70da4b7ab7818e2336a64..e976406b3330a9082d20c5c5c69e38eca90869a9 100644 (file)
@@ -16,7 +16,7 @@ download.
 </p>
 
 <p>
-Or you can just download the <a href="ccan.tar.bz2">tarball of everything (<?=$tarballsize?>K)</a>.
+Or you can just download the <a href="ccan.tar.bz2">tarball of everything including CCAN tools (<?=$tarballsize?>K)</a>.
 </p>
 
 <table align="center" width="80%" border="0" cellpadding="3" cellspacing="1">
@@ -25,13 +25,7 @@ Or you can just download the <a href="ccan.tar.bz2">tarball of everything (<?=$t
 <th align="right">Download</th>
 
 <?php 
-$d = dir($argv[1]);
-$modules = array();
-while (false !== ($entry = $d->read())) {
-       if ($entry[0] != '.') {
-               array_push($modules, $entry);
-       }
-}
+$modules = array_slice($argv, 4);
 sort($modules);
 
 foreach ($modules as $module) {
@@ -49,7 +43,6 @@ foreach ($modules as $module) {
        </tr>
        <?php
 }
-$d->close();
 ?>
 </table>