summaryrefslogtreecommitdiffstats
path: root/site/variables.template.php
diff options
context:
space:
mode:
Diffstat (limited to 'site/variables.template.php')
-rw-r--r--site/variables.template.php36
1 files changed, 34 insertions, 2 deletions
diff --git a/site/variables.template.php b/site/variables.template.php
index 98bda0b..54a95a1 100644
--- a/site/variables.template.php
+++ b/site/variables.template.php
@@ -20,6 +20,35 @@
<?php
/* Copy this to variables.php, and adapt for your needs */
+ /*
+ * ------FUNCTIONS:
+ */
+
+ /* Generic function for showing a list of URLs */
+ function list_items($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>
+<?php
+ }
+ } else {
+?>
+ <li><?php echo strNotFoundMessage; ?></li>
+<?php
+ }
+?>
+ </ul>
+<?php
+ }
+
+ /*
+ * ------DATA:
+ */
+
/* Project name
* NOTE: Not all parts of the site use this, because
* parts of the site talking about things that are very
@@ -51,11 +80,14 @@
$lbHttpMirror = array(
"http://www.libreboot.org/release/",
"https://freedombox.org/libreboot/",
- "http://www.mirrorservice.org/sites/libreboot.org/release/",
+ "http://www.mirrorservice.org/sites/libreboot.org/release/"
+ );
+ /* HTTP mirrors (for release archives) */
+ $lbFtpMirror = array(
"ftp://ftp.mirrorservice.org/sites/libreboot.org/release/"
);
- /* rsync servers. Put the main one first */
+ /* rsync servers (for release archives). Put the main one first */
$lbRsyncServer = array (
"libreboot.org::mirrormirror",
"rsync://rsync.mirrorservice.org/libreboot.org/release/"