diff options
Diffstat (limited to 'check.php')
-rwxr-xr-x | check.php | 36 |
1 files changed, 24 insertions, 12 deletions
@@ -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/', @@ -101,11 +100,13 @@ $mirrors = [ 'https://mirror.netzwerge.de/remi/', ]; $testing = [ + 'https://mirror.geo.yer.cloud/remi/', // 2025-01-07 'https://pit1.mirror.jurassicinnovations.com/remi/', 'https://mirror.raiolanetworks.com/remi/', 'http://repo1.ash.innoscale.net/remi/', ]; $disabled = [ + '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 @@ -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,35 @@ 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 '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) { |