Mod package mirroring scripts.
This commit is contained in:
2
web/packages/cnc-mirrors.txt
Normal file
2
web/packages/cnc-mirrors.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
http://metahash.com/packages/cnc-packages.zip
|
||||||
|
http://openra.res0l.net/packages/cnc-packages.zip
|
||||||
8
web/packages/cnc-packages.php
Normal file
8
web/packages/cnc-packages.php
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
$mirrors = file_get_contents("cnc-mirrors.txt");
|
||||||
|
$mirrors_array = explode("\n", $mirrors);
|
||||||
|
|
||||||
|
$mirror = $mirrors_array[array_rand($mirrors_array, 1)];
|
||||||
|
|
||||||
|
header('Location: '. $mirror);
|
||||||
|
?>
|
||||||
2
web/packages/ra-mirrors.txt
Normal file
2
web/packages/ra-mirrors.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
http://metahash.com/packages/ra-packages.zip
|
||||||
|
http://openra.res0l.net/packages/ra-packages.zip
|
||||||
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