Mod package mirroring scripts.
This commit is contained in:
8
web/packages/ra-packages.php
Normal file
8
web/packages/ra-packages.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$mirrors = file_get_contents("ra-mirrors.txt");
|
||||
$mirrors_array = explode("\n", $mirrors);
|
||||
|
||||
$mirror = $mirrors_array[array_rand($mirrors_array, 1)];
|
||||
|
||||
header('Location: '. $mirror);
|
||||
?>
|
||||
Reference in New Issue
Block a user