projects
/
pharext
/
replicator.pharext.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
ec57ed0
)
display pharext version
author
Michael Wallner
<mike@php.net>
Mon, 30 Mar 2015 21:02:50 +0000
(23:02 +0200)
committer
Michael Wallner
<mike@php.net>
Mon, 30 Mar 2015 21:02:50 +0000
(23:02 +0200)
public/index.php
patch
|
blob
|
history
diff --git
a/public/index.php
b/public/index.php
index 4832a229a794095e28c7d07b5c55797225b438b4..f132afb1ac77265ea3203ac59a45c48ebdd0db47 100644
(file)
--- a/
public/index.php
+++ b/
public/index.php
@@
-79,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>
@@
-128,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; ?>
@@
-155,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>