summaryrefslogtreecommitdiffstats
path: root/site/functions.php
diff options
context:
space:
mode:
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
}
?>