]> git.ozlabs.org Git - ccan/blobdiff - web/staticall.php
tools/configurator: better descriptions for --autotools-style.
[ccan] / web / staticall.php
index 60f7fa77b419e66fb8c70da4b7ab7818e2336a64..3e9d445a3eaed74f7e5222b38adddfc3560fbbf3 100644 (file)
@@ -6,7 +6,7 @@ include('static-configuration');
 
 $tarballsize=round((filesize($argv[3]."/ccan.tar.bz2") + 1023) / 1024);
 ?>
-
+<div class='content'>
 <h1> List of all CCAN modules: </h1>
 
 <p>
@@ -16,22 +16,16 @@ 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">
+<table align="center" cellpadding="3" cellspacing="1">
 <th align="left">Name</th>
 <th align="left">Summary / Link to details</th>
 <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>
 
@@ -57,7 +50,7 @@ $d->close();
 
 (This is contributed code which was dumped here: these gems may need some polishing.)
 
-<table align="center" width="80%" border="0" cellpadding="3" cellspacing="1">
+<table align="center" cellpadding="3" cellspacing="1">
 
 <?php
 $d = dir($argv[2]);
@@ -77,5 +70,5 @@ foreach ($dirs as $dir) {
 $d->close();
 ?>
 </table>
-<hr>
+</div>
 </body></html>