index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-09-02 15:49:38 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-02 15:49:38 +0200 |
commit | 369026c9ebfafb1357f941c49b35df4361f1bbee (patch) | |
tree | ebea21ecffd46aee1020622507038cbc9c8a8c8a | |
parent | dc902e4d1cbb1229c7ee7f01b03427d39305492e (diff) |
-rw-r--r-- | keys.php | 10 |
@@ -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) |