19 lines
405 B
PHP
19 lines
405 B
PHP
|
<?php
|
||
|
|
||
|
$repo = $_GET['repo'];
|
||
|
$arch = $_GET['arch'];
|
||
|
$basedirs = [
|
||
|
'http://cdn.openmamba.org/pub/openmamba/',
|
||
|
'http://hetzner3.openmamba.org/pub/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";
|
||
|
}
|
||
|
?>
|