index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
-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) |