summaryrefslogtreecommitdiffstats
path: root/site/functions.php
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-05-27 12:05:56 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-05-27 12:05:56 (EDT)
commit0e94461327c7c757793587703498b206934d0484 (patch)
tree8ec8dd73e0988391f91ea02531d11676ff6caf49 /site/functions.php
parent9028420e4e48fa9d750a1dd43ab6bfe4cdf2ad47 (diff)
downloadlibreboot.org-0e94461327c7c757793587703498b206934d0484.zip
libreboot.org-0e94461327c7c757793587703498b206934d0484.tar.gz
libreboot.org-0e94461327c7c757793587703498b206934d0484.tar.bz2
download page: name each mirror
Diffstat (limited to 'site/functions.php')
-rw-r--r--site/functions.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/site/functions.php b/site/functions.php
index 689326a..0e20d2b 100644
--- a/site/functions.php
+++ b/site/functions.php
@@ -22,23 +22,21 @@
/* Functions */
/* Generic function for showing a list of URLs */
- function list_items($arrayMirrors,$strNotFoundMessage,$forIndexStart,$forIndexbelow) {
+ function mirrorList($arrayMirrors,$strNotFoundMessage,$forIndexStart,$forIndexbelow) {
?>
- <ul>
<?php
if (count($arrayMirrors)>0) {
for ($server=$forIndexStart; $server<$forIndexbelow; $server++) {
?>
- <li><a href="<?php echo $arrayMirrors[$server]; ?>"><?php echo $arrayMirrors[$server]; ?></a></li>
+ <p><a href="<?php echo $arrayMirrors[$server][0]; ?>"><?php echo $arrayMirrors[$server][0]; ?></a> (<?php echo $arrayMirrors[$server][1]; ?>)</p>
<?php
}
} else {
?>
- <li><?php echo $strNotFoundMessage; ?></li>
+ <p><?php echo $strNotFoundMessage; ?></p>
<?php
}
?>
- </ul>
<?php
}
?>