From f59833d39a7afd6cb2b9abdd70d81c581eb96943 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Thu, 24 Jan 2019 01:06:24 +0100 Subject: [PATCH] Implement download_links() function, refactor download page --- common/download.inc | 46 ++++++--------------------------------------- common/styles.css | 5 ++++- includes/common.php | 23 +++++++++++++++++++++++ 3 files changed, 33 insertions(+), 41 deletions(-) diff --git a/common/download.inc b/common/download.inc index fdc7216..9a765df 100644 --- a/common/download.inc +++ b/common/download.inc @@ -2,49 +2,15 @@
ngIRCd Release 24 (2017-01-20):
-
- Server: ngircd.barton.de - (https 🔒): - ngircd-24.tar.gz - (Sig), - tar.xz - (Sig), - tar.Z - (Sig) -
-
- Server: ngircd.mirror.3rz.org - (https 🔒): - ngircd-24.tar.gz - (Sig), - tar.xz - (Sig), - tar.Z - (Sig) -
+ + +
ngIRCd Release 25~rc1 (2018-08-11):
-
- Server: ngircd.barton.de - (https 🔒): - ngircd-25~rc1.tar.gz - (Sig), - tar.xz - (Sig), - tar.Z - (Sig) -
-
- Server: ngircd.mirror.3rz.org - (https 🔒): - ngircd-25~rc1.tar.gz - (Sig), - tar.xz - (Sig), - tar.Z - (Sig) -
+ + +
diff --git a/common/styles.css b/common/styles.css index e2e945c..d772005 100644 --- a/common/styles.css +++ b/common/styles.css @@ -109,6 +109,10 @@ a:link, a:visited { color: #005555; } +dd { + line-height: 150%; +} + div#vertical_slide { border: 1px solid gray; padding: 1em; @@ -142,4 +146,3 @@ p#footer { } /* @end */ - diff --git a/includes/common.php b/includes/common.php index 2e9f247..e81644d 100644 --- a/includes/common.php +++ b/includes/common.php @@ -68,4 +68,27 @@ function end_page() { echo ''; } +function download_links($rel, $server, $protocol = "https") { + echo "
"; + echo "Server: $server:"; + /* Download folder */ + echo "($protocol"; + if ($protocol == "https") + echo " 🔒"; + echo "): "; + /* Archive files */ + $count = 1; + foreach (array('tar.gz', 'tar.xz', 'tar.Z') as $suffix) { + if ($count > 1) + echo ', '; + echo ""; + if ($suffix == "tar.gz") + echo "ngircd-$rel."; + echo "$suffix "; + echo "(Sig)"; + $count++; + } + echo "
"; +} + ?> -- 2.39.2