<style>
body {
padding-bottom: 4em;
+ padding-top: 10em;
+ }
+ .header {
+ top: 0;
+ width: 100%;
}
.footer {
bottom: 0;
- position: fixed;
width: 100%;
text-align: center;
}
.header, .footer {
+ position: fixed;
+ box-shadow: 0px 0px 1em .4em #89a;
background: #62B3E7;
padding: 1em 0;
}
.header h1 a:hover {
text-decoration: underline;
}
- .header h1 big , .footer, .footer a {
+ .header h1 big {
+ /* normalize browser difference */
+ font-size: 1.8em;
+ }
+ .header h1 big, .footer, .footer a {
color: #fdfdfd;
text-shadow: grey 0 0 .1em;
}
</header>
</div>
<div class="container">
- <?php $packages = array_map("basename", glob("phars/*")); ?>
+ <?php
+
+ $packages = array_map("basename", glob("phars/*", GLOB_NOSORT|GLOB_ONLYDIR));
+ sort($packages, SORT_NATURAL|SORT_FLAG_CASE);
+
+ ?>
<?php if ($_SERVER["QUERY_STRING"] && in_array($_SERVER["QUERY_STRING"], $packages, true)) : ?>
<th class="text-left">Package</th>
<th class="text-left">Date</th>
<th class="text-right">Size</th>
+ <th class="text-right">Pharext</th>
</tr>
</thead>
<tbody>
?>
</td>
+ <td class="text-right">
+ <?php
+ $data = new Phar($phar);
+ $meta = $data->getMetadata();
+ if ($meta) {
+ printf("v%s\n", $meta["version"]);
+ } else {
+ print "v2.0.1\n";
+ }
+ ?>
+ </td>
</tr>
<?php endforeach; ?>
</div>
<div class="footer">
<footer>
- © 2015 m6w6, Michael Wallner
+ © 2015 m6w6, Michael Wallner — Powered by <a href="//github.com/m6w6/pharext">pharext
+ <?php
+ require_once __DIR__."/../vendor/m6w6/pharext/src/pharext/Version.php";
+ printf("v%s\n", pharext\VERSION);
+ ?>
+ </a>
</footer>
</div>
</body>