5 <title
>Replicator
</title
>
6 <link rel
="stylesheet" href
="concise/css/concise.min.css">
7 <link href
="//fonts.googleapis.com/css?family=Droid+Sans" rel
="stylesheet" type
="text/css">
8 <meta name
="viewport" content
="width=device-width, initial-scale=1">
26 .header h1 a
, .footer a
:hover
{
27 text
-decoration
: none
;
30 text
-decoration
: underline
;
32 .header h1 big
, .footer
, .footer a
{
34 text
-shadow
: grey
0 0 .1em
;
38 text
-shadow
: white
0 0 .2em
;
41 list-style
-type
: circle
;
48 <h1
class="container">
49 <a href
="?"><big
>Replicator
</big
></a
><br
>
50 <small
>Replicating PECL releases
as pharext packages since
2015</small
>
52 <a href
="https://github.com/m6w6/replicator"><img style
="position: absolute; top: 0; right: 0; border: 0;" src
="https://camo.githubusercontent.com/652c5b9acfaddf3a9c326fa6bde407b87f7be0f4/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt
="Fork me on GitHub" data
-canonical
-src
="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"></a
>
55 <div
class="container">
56 <?php
$packages = array_map("basename", glob("phars/*")); ?
>
58 <?php
if ($_SERVER["QUERY_STRING"] && in_array($_SERVER["QUERY_STRING"], $packages, true)) : ?
>
60 <h2
><?
= $package = $_SERVER["QUERY_STRING"]; ?
></h2
>
61 <table
class="table table-full">
64 <th
class="text-left">Package
</th
>
65 <th
class="text-left">Date
</th
>
66 <th
class="text-right">Size
</th
>
70 <?php
foreach (array_reverse(glob("phars/$package/*.ext.phar*")) as $phar) : ?
>
73 <td
class="text-left">
74 <a href
="<?= htmlspecialchars($phar) ?>"
75 ><?
= htmlspecialchars(basename($phar)) ?
></a
>
77 <td
class="text-left">
82 $lmod = filemtime($phar);
83 $days = [1 => "today", "yesterday"];
85 for ($i = 1; $i < 7; ++
$i) {
86 if ($lmod > $time - $dsec * $i) {
100 echo date("Y-m-d", $lmod);
106 <td
class="text-right">
109 $u = ["Bytes", "KB", "MB"];
110 $s = filesize($phar);
111 $l = floor(log10($s));
112 printf("%1.1F %s\n", $s/pow(10,$l-($l%3
)), $u[$l/3]);
123 <h2
>Available Packages
</h2
>
124 <ul
class="list-inline">
125 <?php
foreach (array_map("htmlspecialchars", $packages) as $index => $package) : ?
>
126 <?php
$next = strtolower($package{0}); ?
>
127 <?php
if (isset($prev) && $next != $prev) : ?
>
130 <ul
class="list-inline">
133 <li
><a href
="?<?= $package ?>"><?
= $package ?
></a
></li
>
134 <?php
$prev = $next; ?
>
143 ©
; 2015 m6w6
, Michael Wallner