aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2024-04-15 17:45:26 +0200
committerarf20 <aruizfernandez05@gmail.com>2024-04-15 17:45:26 +0200
commite89e2574c02f8bc893721aeaf705cb57de9489ee (patch)
tree5ea73446a6246d4896e83dd5410bcf8527851e0e /index.php
downloadarfnet2-lists-e89e2574c02f8bc893721aeaf705cb57de9489ee.tar.gz
arfnet2-lists-e89e2574c02f8bc893721aeaf705cb57de9489ee.zip
Initial commit
Diffstat (limited to 'index.php')
-rw-r--r--index.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..cc0b1bd
--- /dev/null
+++ b/index.php
@@ -0,0 +1,36 @@
+<?php
+
+// Get lists
+$lists = scandir("/var/spool/mlmmj/");
+$lists = array_diff($lists, array(".", ".."));
+
+?>
+
+<!doctype html>
+<html>
+ <head>
+ <meta charset="UTF-8">
+ <link rel="stylesheet" type="text/css" href="/style.css">
+ <title>ARFNET Lists</title>
+ </head>
+ <body>
+ <header><a href="https://arf20.com/">
+ <img src="arfnet_logo.png" width="64"><span class="title"><strong>ARFNET</strong></span>
+ </a></header>
+ <hr>
+ <main>
+ <div class="row">
+ <div class="col8">
+ <h2 class="center">ARFNET Mailing Lists</h2>
+ <ul>
+ <?php
+ foreach ($lists as $list) {
+ echo "<li>".$list." <a href=\"subscribe.php?list=".$list."\">subscribe</a> <a href=\"/archive/".$list."\">archive</a></li>\n";
+ }
+ ?>
+ </ul>
+ </div>
+ </div>
+ </main>
+ </body>
+</html>