projects
/
m6w6
/
replicator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
update pharext
[m6w6/replicator]
/
public
/
index.php
diff --git
a/public/index.php
b/public/index.php
index 9f35721218519a6fcae5402c58b39738f4c56dfd..639f1e2238881cd05222a21964538ad4c87051d3 100644
(file)
--- a/
public/index.php
+++ b/
public/index.php
@@
-78,7
+78,6
@@
<tr>
<th class="text-left" colspan="4">Package</th>
<th class="text-left">Date</th>
<tr>
<th class="text-left" colspan="4">Package</th>
<th class="text-left">Date</th>
- <th class="text-right">Size</th>
<th class="text-right">Pharext</th>
</tr>
</thead>
<th class="text-right">Pharext</th>
</tr>
</thead>
@@
-119,7
+118,15
@@
<?php foreach ($phars as $ext => list($phar, $meta)) : ?>
<td class="text-left">
<a href="<?= htmlspecialchars($phar) ?>"
<?php foreach ($phars as $ext => list($phar, $meta)) : ?>
<td class="text-left">
<a href="<?= htmlspecialchars($phar) ?>"
- >ext.phar<?= htmlspecialchars($ext) ?></a>
+ >ext.phar<?= htmlspecialchars($ext) ?></a><br>
+ <small><?php
+
+ $u = ["Bytes", "KB", "MB"];
+ $s = filesize($phar);
+ $l = floor(log10($s));
+ printf("⤋ %1.1F %s", $s/pow(10,$l-($l%3)), $u[$l/3]);
+
+ ?></small>
</td>
<?php endforeach; ?>
<?php for($i = 0; $i < 3-count($phars); ++$i) : ?>
</td>
<?php endforeach; ?>
<?php for($i = 0; $i < 3-count($phars); ++$i) : ?>
@@
-132,7
+139,7
@@
$time = time();
$dsec = 86400;
$time = time();
$dsec = 86400;
- $lmod = filemtime($phar);
+ $lmod =
isset($meta["date"]) ? strtotime($meta["date"]) :
filemtime($phar);
$days = [1 => "today", "yesterday"];
do {
for ($i = 1; $i < 7; ++$i) {
$days = [1 => "today", "yesterday"];
do {
for ($i = 1; $i < 7; ++$i) {
@@
-156,16
+163,6
@@
?>
</td>
?>
</td>
- <td class="text-right">
- <?php
-
- $u = ["Bytes", "KB", "MB"];
- $s = filesize($phar);
- $l = floor(log10($s));
- printf("%1.1F %s\n", $s/pow(10,$l-($l%3)), $u[$l/3]);
-
- ?>
- </td>
<td class="text-right">
<?php
if ($meta) {
<td class="text-right">
<?php
if ($meta) {
@@
-198,7
+195,6
@@
</ul>
<?php endif; ?>
</ul>
<?php endif; ?>
- <pre><?php var_dump($versions)?></pre>
</div>
<div class="footer">
<footer>
</div>
<div class="footer">
<footer>