projects
/
m6w6
/
replicator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
display pharext version
[m6w6/replicator]
/
public
/
index.php
diff --git
a/public/index.php
b/public/index.php
index 39d24c07a39cf1986ef57d2a5ff0fbcf93752779..f132afb1ac77265ea3203ac59a45c48ebdd0db47 100644
(file)
--- a/
public/index.php
+++ b/
public/index.php
@@
-9,14
+9,20
@@
<style>
body {
padding-bottom: 4em;
<style>
body {
padding-bottom: 4em;
+ padding-top: 10em;
+ }
+ .header {
+ top: 0;
+ width: 100%;
}
.footer {
bottom: 0;
}
.footer {
bottom: 0;
- position: fixed;
width: 100%;
text-align: center;
}
.header, .footer {
width: 100%;
text-align: center;
}
.header, .footer {
+ position: fixed;
+ box-shadow: 0px 0px 1em .4em #89a;
background: #62B3E7;
padding: 1em 0;
}
background: #62B3E7;
padding: 1em 0;
}
@@
-29,7
+35,11
@@
.header h1 a:hover {
text-decoration: underline;
}
.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;
}
color: #fdfdfd;
text-shadow: grey 0 0 .1em;
}
@@
-53,7
+63,12
@@
</header>
</div>
<div class="container">
</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)) : ?>
<?php if ($_SERVER["QUERY_STRING"] && in_array($_SERVER["QUERY_STRING"], $packages, true)) : ?>
@@
-64,6
+79,7
@@
<th class="text-left">Package</th>
<th class="text-left">Date</th>
<th class="text-right">Size</th>
<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>
</tr>
</thead>
<tbody>
@@
-113,6
+129,17
@@
?>
</td>
?>
</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; ?>
</tr>
<?php endforeach; ?>
@@
-140,7
+167,12
@@
</div>
<div class="footer">
<footer>
</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>
</footer>
</div>
</body>