summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcheck.php35
-rw-r--r--index.html4
-rw-r--r--wizard/index.php4
3 files changed, 34 insertions, 9 deletions
diff --git a/check.php b/check.php
index e352b339..5c8dc925 100755
--- a/check.php
+++ b/check.php
@@ -70,7 +70,6 @@ $mirrors = [
'https://remi.mirror.karneval.cz/',
'https://mirror.netsite.dk/remi/',
'http://mirror.team-cymru.com/remi/',
- 'http://mirrors.ukfast.co.uk/sites/remi/',
'https://mirror.netweaver.uk/remi/',
'http://ftp.riken.jp/Linux/remi/',
'https://mir01.syntis.net/remirepo/',
@@ -103,13 +102,14 @@ $mirrors = [
'https://remi.mivzakim.net/', // 2025-01-13
'http://repo1.ash.innoscale.net/remi/', // 2025-01-13
'https://bd.mirror.vanehost.com/Remi/', // 2025-01-17
+ 'http://mirrors.ukfast.co.uk/sites/remi/', // 2025-01-28 / 2025-01-30
];
$testing = [
+ 'http://remi.conetix.com.au/', // 2025-01-22
+ 'https://mirror.usi.edu/pub/remi/', // 2024-04-03 / 2025-01-29
];
$disabled = [
- 'https://repo1.vetta.net.nz/remi/', // 2025-01-17 (too slow)
- 'http://remi.conetix.com.au/', // 2025-01-06
- 'https://mirror.usi.edu/pub/remi/', // 2024-04-03
+ 'https://repo1.vetta.net.nz/remi/', // 2025-01-17 (too slow)
'http://mirror.xeonbd.com/remi/',
'https://mirror.telkomuniversity.ac.id/remi/',
'http://mirror.uta.edu.ec/remi/',
@@ -169,6 +169,31 @@ function getRepoTime($uri) {
}
return ERR_CONTENT;
}
+
+function delta($ref, $loc) {
+ $d = ($ref > $loc ? $ref - $loc : $loc - $ref);
+ if ($d >= 60) {
+ $d /= 60;
+ if ($d >= 60) {
+ $d /= 60;
+ if ($d >= 24) {
+ $d /= 24;
+ $unit = 'day';
+ } else {
+ $unit = 'hour';
+ }
+ } else {
+ $unit = 'minute';
+ }
+ } else {
+ $unit = 'second';
+ }
+ if ($d > 1) {
+ $unit .= 's';
+ }
+ return sprintf("%s : %2d %s ago", date('r', $loc), $d, $unit);
+}
+
if (isset($_GET['mirror']) && isset($repos[$_GET['mirror']])) {
$path = $_GET['mirror'];
} else {
@@ -249,7 +274,7 @@ if ($ref) {
printf("%50.50s : Ok\n", $mirror);
exit(0);
} else if ($loc) {
- printf("%50.50s : %s\n", $mirror, date('r', $loc));
+ printf("%50.50s : %s\n", $mirror, delta($ref, $loc));
exit(1);
} else {
printf("%50.50s : N/A\n", $mirror);
diff --git a/index.html b/index.html
index 4537d6a5..32e2a881 100644
--- a/index.html
+++ b/index.html
@@ -204,8 +204,6 @@
full mirror (<strong>Thailand </strong>, IPv4, IPv6, rsync)</li>
<li><b>UA</b>: <a href="http://mirrors.bytes.ua/remi/" class="inpage">http://mirrors.bytes.ua/remi/</a> -
full mirror (<strong>Ukraine </strong>, IPv4)</li>
- <li><b>UK</b>: <a href="http://mirrors.ukfast.co.uk/sites/remi/" class="inpage">http://mirrors.ukfast.co.uk/sites/remi/</a> -
- full mirror (<strong>United Kingdom</strong>, IPv4, IPv6, https, rsync)</li>
<li><b>UK</b>: <a href="https://mirror.netweaver.uk/remi/" class="inpage">https://mirror.netweaver.uk/remi/</a> -
full mirror (<strong>United Kingdom</strong>, IPv4, IPv6, https)</li>
<li><b>US</b>: <a href="http://repo1.ash.innoscale.net/remi/" class="inpage">http://repo1.ash.innoscale.net/remi/</a> -
@@ -217,6 +215,8 @@
<li><b>US</b>: <a href="https://mirror.pit.teraswitch.com/remi/" class="inpage">https://mirror.pit.teraswitch.com/remi/</a> -
full mirror (<strong>Pennsylvania, USA</strong>, IPv4, IPv6, https, rsync)</li>
<!-- TEMPORARILY DISABLED
+ <li><b>UK</b>: <a href="http://mirrors.ukfast.co.uk/sites/remi/" class="inpage">http://mirrors.ukfast.co.uk/sites/remi/</a> -
+ full mirror (<strong>United Kingdom</strong>, IPv4, IPv6, https, rsync)</li>
<li><b>AU</b>: <a href="http://remi.conetix.com.au/" class="inpage">http://remi.conetix.com.au/</a> -
full mirror (<strong>Australia</strong>, IPv4, IPv6)</li>
<li><b>US</b>: <a href="https://mirror.usi.edu/pub/remi/" class="inpage">https://mirror.usi.edu/pub/remi/</a> -
diff --git a/wizard/index.php b/wizard/index.php
index cb33904c..9e344564 100644
--- a/wizard/index.php
+++ b/wizard/index.php
@@ -124,8 +124,8 @@ $phpname = [
'5.6' => '5.6.40 (no upstream support since January 2019)',
];
$phptest = [
-// '8.4' => '8.4.3RC1',
-// '8.3' => '8.3.16RC1',
+ '8.4' => '8.4.4RC1',
+ '8.3' => '8.3.17RC1',
];
$php = (isset($_POST['php']) && isset($phpvers[$_POST['php']]) ? $_POST['php'] : false);