summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--httpdocs/index.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/httpdocs/index.php b/httpdocs/index.php
index 2bda913..7879034 100644
--- a/httpdocs/index.php
+++ b/httpdocs/index.php
@@ -93,5 +93,21 @@ if (isset($_GET['r'])) {
}
-print 'Hi, this is an <a href="https://git.eckner.net/Erich/archive-server/">archive server</a>!' . "\n";
+print 'Hi, this is an <a href="https://git.eckner.net/Erich/archive-server/">archive server</a>!<br>' . "\n";
+print 'I provide archives of these upstreams:<br>' . "\n";
+
+print
+ implode(
+ "<br>\n",
+ array_map(
+ "base64_decode",
+ explode(
+ "\n",
+ shell_exec(
+ 'ls "' . $work_dir . 'repositories"'
+ )
+ )
+ )
+ );
+
die();