summaryrefslogtreecommitdiffstats
path: root/check.php
diff options
context:
space:
mode:
Diffstat (limited to 'check.php')
-rwxr-xr-xcheck.php59
1 files changed, 37 insertions, 22 deletions
diff --git a/check.php b/check.php
index 16138543..2997a06b 100755
--- a/check.php
+++ b/check.php
@@ -35,12 +35,12 @@ if ($cli) {
<?php
}
$repos = [
+ 'enterprise/9' => 'Enterprise Linux 9',
'enterprise/8' => 'Enterprise Linux 8',
'enterprise/7' => 'Enterprise Linux 7',
- 'enterprise/6' => 'Enterprise Linux 6',
- 'fedora/31' => 'Fedora 31',
- 'fedora/30' => 'Fedora 30',
- 'fedora/29' => 'Fedora 29',
+ 'fedora/41' => 'Fedora 41',
+ 'fedora/40' => 'Fedora 40',
+ 'fedora/39' => 'Fedora 39',
];
$subs = [
'remi',
@@ -53,7 +53,6 @@ $archs = [
];
$mirrors = [
- 'http://remi.conetix.com.au/',
'http://mirrors.neterra.net/remi/',
'http://remi.schlundtech.de/',
'http://mirror.cedia.org.ec/remi/',
@@ -67,7 +66,6 @@ $mirrors = [
'https://mirrors.tuna.tsinghua.edu.cn/remi/',
'https://mirror.23m.com/remi/',
'https://mirror.oxilion.nl/remi/',
- 'https://remi.mirror.wearetriple.com/',
'https://mirrors.uni-ruse.bg/remi/',
'https://remi.mirror.karneval.cz/',
'https://mirror.netsite.dk/remi/',
@@ -76,7 +74,6 @@ $mirrors = [
'https://mirror.netweaver.uk/remi/',
'http://ftp.riken.jp/Linux/remi/',
'https://mir01.syntis.net/remirepo/',
- 'http://mirrors.bytes.ua/remi/',
'http://mirror.hoster.kz/remi/',
'http://remirepo.reloumirrors.net/',
'https://mirror.pit.teraswitch.com/remi/',
@@ -99,24 +96,28 @@ $mirrors = [
'https://mirror.fjordos.no/remi/',
'https://muug.ca/mirror/remi/',
'https://mirror.netzwerge.de/remi/',
+ 'https://pit.mirror.jurassicinnovations.com/remi/',
+ 'http://mirror.yer.az/remi/',
+ 'https://mirror.raiolanetworks.com/remi/', // 2025-01-08
+ 'https://remi.mirror.wearetriple.com/', // 2025-01-10
+ 'https://mirror.geo.yer.cloud/remi/', // 2025-01-07
];
$testing = [
- 'https://pit1.mirror.jurassicinnovations.com/remi/',
- 'https://mirror.raiolanetworks.com/remi/',
'http://repo1.ash.innoscale.net/remi/',
];
$disabled = [
+ 'http://mirrors.bytes.ua/remi/', // 2025-01-09
+ 'http://remi.conetix.com.au/', // 2025-01-06
'https://remi.mivzakim.net/', // 2024-04-03
'https://mirror.usi.edu/pub/remi/', // 2024-04-03
- 'http://mirror.awanti.com/remi/', // 2024-03-20
'http://mirror.xeonbd.com/remi/',
'https://mirror.telkomuniversity.ac.id/remi/',
'http://mirror.uta.edu.ec/remi/',
'http://repo1.dal.innoscale.net/remi/',
'http://repo1.sea.innoscale.net/remi/',
- 'http://mirror.yer.az/remi/',
];
$deprecated = [
+ 'http://mirror.awanti.com/remi/', // 2025-01-08
'https://remi.srv.magticom.ge/',
'https://mirror.sjc02.svwh.net/remi/',
'http://mirror.upb.edu.co/remi/',
@@ -171,7 +172,7 @@ function getRepoTime($uri) {
if (isset($_GET['mirror']) && isset($repos[$_GET['mirror']])) {
$path = $_GET['mirror'];
} else {
- $path = 'enterprise/8';
+ $path = 'enterprise/9';
}
if (isset($_GET['repo']) && in_array($_GET['repo'], $subs)) {
$repo = $_GET['repo'];
@@ -199,24 +200,38 @@ if (!$cli) {
}
$pids = array();
$ref = getRepoTime($full);
-$mirrors = array_merge($mirrors, $testing);
if ($ref) {
if (!$cli) echo "<ul class='pkglist'>\n";
if (isset($_SERVER['argv'][1])) {
- $tocheck = [];
- foreach ($mirrors as $mirror) {
- if (preg_match('|'.$_SERVER['argv'][1].'|', $mirror)) {
- $tocheck[] = $mirror;
- }
+ switch ($_SERVER['argv'][1]) {
+ case 'active':
+ $tocheck = $mirrors;
+ break;
+ case 'testing':
+ $tocheck = $testing;
+ break;
+ case 'disabled':
+ $tocheck = $disabled;
+ break;
+ case 'deprecated':
+ $tocheck = $deprecated;
+ break;
+ default:
+ $tocheck = [];
+ foreach ($mirrors as $mirror) {
+ if (preg_match('|'.$_SERVER['argv'][1].'|', $mirror)) {
+ $tocheck[] = $mirror;
+ }
+ }
+ if (empty($tocheck)) {
+ $tocheck[] = $_SERVER['argv'][1];
+ }
}
} else {
- $tocheck = $mirrors;
+ $tocheck = array_merge($mirrors, $testing);
}
printf(($cli ? "Check %d mirror(s) of %s (%s)\n" : "<h3>%s - %s</h3>\n"), count($tocheck), $name, date('r', $ref));
foreach ($tocheck as $mirror) {
- if ($_SERVER['argc']>1 && !strpos($mirror, $_SERVER['argv'][1])) {
- continue;
- }
if ($cli) {
$pid = pcntl_fork();
if ($pid<0) {