Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keys.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/keys.php b/keys.php
index 42d9c01..baa12d8 100644
--- a/keys.php
+++ b/keys.php
@@ -3,7 +3,15 @@
require_once "init.php";
if (!array_key_exists('k', $_GET)) {
- print 'There are ' . shell_exec('gpg --list-keys --with-colons | grep "^fpr:" | cut -d: -f10 | wc -l') . ' keys on this server.';
+ print
+ 'There are ' .
+ trim(shell_exec('gpg --list-keys --with-colons | grep "^fpr:" | cut -d: -f10 | wc -l')) .
+ ' keys on this server.<br>' .
+ "\n";
+ print
+ 'You can <a href="?k=' .
+ trim(shell_exec('gpg --list-keys --with-colons deep42thought@archlinux32.org | grep -m1 "^fpr:" | cut -d: -f10')) .
+ '">download</a> them.' . "\n";
die();
}
if (preg_match('/^[0-9A-Fa-f]{16,40}$/', $_GET['k']) !== 1)