X-Git-Url: https://git.m6w6.name/?p=m6w6%2Freplicator;a=blobdiff_plain;f=public%2Findex.php;h=fbb285b4fa293a57b6d0b522b9e3ec1c913b7207;hp=181dfcb02be0319053bba0b1296092d3768d6ad7;hb=21410b3d1375c3ca011c08913ae2b62029146f56;hpb=c55ec759c79a2ab370df0020f3b66dc1bef2a693 diff --git a/public/index.php b/public/index.php index 181dfcb..fbb285b 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,15 @@ -
PackagePackage Date SizePharext
+ + + + >ext.phar + +