X-Git-Url: https://git.m6w6.name/?p=m6w6%2Freplicator;a=blobdiff_plain;f=public%2Findex.php;h=9f35721218519a6fcae5402c58b39738f4c56dfd;hp=181dfcb02be0319053bba0b1296092d3768d6ad7;hb=344c869c38c22c9a0e1590c1dc5640b308c0fe5e;hpb=c55ec759c79a2ab370df0020f3b66dc1bef2a693 diff --git a/public/index.php b/public/index.php index 181dfcb..9f35721 100644 --- a/public/index.php +++ b/public/index.php @@ -63,7 +63,12 @@
- + @@ -71,19 +76,57 @@ - + + - + + getMetadata(); + if ($meta) { + $release = $meta["release"]; + } else { + $release = substr($name, strlen($package)+1); + } + $versions[$release][$enc] = [$phar, $meta]; + uksort($versions[$release], function($a, $b) { + $al = strlen($a); + $bl = strlen($b); + if ($al < $bl) return -1; + if ($al > $bl) return 1; + return 0; + }); + } + uksort($versions, "version_compare"); + + ?> + $phars) : ?> + + + list($phar, $meta)) : ?> + + + + + + + @@ -146,11 +198,16 @@ - +
PackagePackage Date SizePharext
+ + + + >ext.phar + +