From 0e94461327c7c757793587703498b206934d0484 Mon Sep 17 00:00:00 2001
From: Francis Rowe <info@gluglug.org.uk>
Date: Wed, 27 May 2015 12:05:56 -0400
Subject: download page: name each mirror

---
(limited to 'site/functions.php')

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
 	}
 ?>
--
cgit v0.9.1