wordpress-theme-openmamba/mirrors.php

27 lines
613 B
PHP
Raw Normal View History

<?php
$repo = $_GET['repo'];
$arch = $_GET['arch'];
$basedirs = [
2023-08-05 22:40:16 +02:00
'https://cdn.openmamba.org/pub/openmamba/',
'https://hetzner1.openmamba.org/pub/openmamba/',
2024-05-16 12:58:11 +02:00
'https://mirror.freedif.org/openmamba/'
];
if (!$repo || !$arch) {
echo "Missing required arguments.<br>";
echo "Usage example: mirrors.php?repo=devel&arch=x86_64";
exit;
}
#if ($repo == "base") {
# $basedir = "http://hetzner1.openmamba.org/pub/openmamba/";
# echo $basedir . $repo . "/RPMS." . $arch . "/" . "\n";
# exit;
#}
foreach ($basedirs as $basedir) {
echo $basedir . $repo . "/RPMS." . $arch . "/" . "\n";
}
2019-02-02 11:18:39 +01:00
?>