From a8ec455783e179515782a3c6a5e53474af2eca59 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Wed, 27 May 2015 13:16:27 -0400 Subject: download page: rsync mirrors now shown via function --- (limited to 'site') diff --git a/site/download/index.php b/site/download/index.php index 8de4669..750e604 100644 --- a/site/download/index.php +++ b/site/download/index.php @@ -107,7 +107,6 @@

HTTP mirrors

- -

+

-0) { -?> -

-

- $ rsync -avxP --delete --stats /path/to/docroot/libreboot/ -

-1) { -?> -

-

- - $ rsync -avxP --delete --stats /path/to/docroot/libreboot/
- -

- -

- -

- +

- +

diff --git a/site/functions.php b/site/functions.php index 0e20d2b..fb023b9 100644 --- a/site/functions.php +++ b/site/functions.php @@ -16,15 +16,12 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ -?> - -0) { for ($server=$forIndexStart; $server<$forIndexbelow; $server++) { ?> @@ -36,7 +33,31 @@

0 && ($forIndexStart<=count($arrayRsync)-1) + && ($forIndexBelow<=count($arrayRsync)) && ($forIndexStart<=$forIndexBelow)) { + + for ($server=$forIndexStart; $server<$forIndexBelow; $server++) { +?> +

+ +

+

+ rsync -avxP --delete --stats /path/to/docroot/libreboot/ +

+ +

+ +

diff --git a/site/variables.php b/site/variables.php index 06b6f4b..1e67605 100644 --- a/site/variables.php +++ b/site/variables.php @@ -57,9 +57,9 @@ /* rsync servers (for release archives). Put the main one first */ $lbRsyncServer = array ( - "rsync.libreboot.org::mirrormirror", - "rsync://rsync.mirrorservice.org/libreboot.org/release/", - "rsync://ftp.linux.ro/libreboot/" + array("rsync.libreboot.org::mirrormirror","Libreboot Project (main rsync mirror)"), + array("rsync://rsync.mirrorservice.org/libreboot.org/release/","University of Kent, UK (backup mirror)"), + array("rsync://ftp.linux.ro/libreboot/","linux.ro, Romania (backup mirror)") ); /* Bug tracker URL */ -- cgit v0.9.1