summaryrefslogtreecommitdiffstats
path: root/site/download/index.php
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-05-27 13:16:27 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-05-27 13:16:27 (EDT)
commita8ec455783e179515782a3c6a5e53474af2eca59 (patch)
treebf111a97e603e3fd0f699b08f57106bbd929d222 /site/download/index.php
parent0e94461327c7c757793587703498b206934d0484 (diff)
downloadlibreboot.org-a8ec455783e179515782a3c6a5e53474af2eca59.zip
libreboot.org-a8ec455783e179515782a3c6a5e53474af2eca59.tar.gz
libreboot.org-a8ec455783e179515782a3c6a5e53474af2eca59.tar.bz2
download page: rsync mirrors now shown via function
Diffstat (limited to 'site/download/index.php')
-rw-r--r--site/download/index.php38
1 files changed, 5 insertions, 33 deletions
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 @@
</p>
<h2 id="http">HTTP mirrors</h2>
-
<?php
/* show HTTP mirrors */
echo mirrorList($lbHttpMirror, gettext("HTTP mirrors not added yet."),0,count($lbHttpMirror));
@@ -122,44 +121,17 @@
<div class="s">
- <h1 id="mirror"><?php echo gettext("Rsync mirrors (for mirroring libreboot)"); ?></h1>
+ <h1 id="mirror"><?php echo gettext("Mirroring libreboot (via rsync)"); ?></h1>
<p>
<?php echo gettext("Create a directory in your web server document root (e.g. libreboot/), and add one of these to your crontab:"); ?>
</p>
-<?php
- if (count($lbRsyncServer)>0) {
-?>
- <h2><?php echo gettext("Main rsync mirror:"); ?></h2>
- <p>
- $ <b>rsync -avxP --delete --stats <?php echo $lbRsyncServer[0]; ?> /path/to/docroot/libreboot/</b>
- </p>
-<?php
- if(count($lbRsyncServer)>1) {
-?>
- <h2><?php echo gettext("Backup rsync mirrors:"); ?></h2>
- <p>
-<?php
- for ($server=1; $server<count($lbRsyncServer); $server++) {
-?>
- $ <b>rsync -avxP --delete --stats <?php echo $lbRsyncServer[$server]; ?> /path/to/docroot/libreboot/</b><br/>
-<?php
- }
-?>
- </p>
-<?php
- }
- } else {
-?>
- <p>
- <b><?php echo gettext("No mirrors available yet."); ?></b>
- </p>
-<?php
- }
-?>
+ <?php
+ echo rsyncList($lbRsyncServer, gettext("No mirrors available in this range."), 0, count($lbRsyncServer));
+ ?>
<p>
- <?php echo gettext("Are you running a mirror? Contact the libreboot project (details are on the home page), and the link will be added here."); ?>
+ <?php echo gettext("Are you running a mirror? Contact the libreboot project (details are on the home page), and the link will be added on this page."); ?>
</p>
</div>