Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/keys.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-02 15:49:38 +0200
committerErich Eckner <git@eckner.net>2019-09-02 15:49:38 +0200
commit369026c9ebfafb1357f941c49b35df4361f1bbee (patch)
treeebea21ecffd46aee1020622507038cbc9c8a8c8a /keys.php
parentdc902e4d1cbb1229c7ee7f01b03427d39305492e (diff)
keys.php: print example
Diffstat (limited to 'keys.php')
-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)