wordpress-theme-openmamba/mirrors.php

21 lines
453 B
PHP
Executable File

<?php
$repo = $_GET['repo'];
$arch = $_GET['arch'];
$basedirs = [
'https://cdn.openmamba.org/pub/openmamba/',
'https://hetzner3.openmamba.org/pub/openmamba/',
'https://mirror.freedif.org/openmamba/'
];
if (!$repo || !$arch) {
echo "Missing required arguments.<br>";
echo "Usage example: mirrors.php?repo=devel&arch=x86_64";
exit;
}
foreach ($basedirs as $basedir) {
echo $basedir . $repo . "/RPMS." . $arch . "/" . "\n";
}
?>