Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-02 15:04:29 +0200
committerErich Eckner <git@eckner.net>2019-09-02 15:04:29 +0200
commit474c67778253ee71eb07e4f24e64d55839024573 (patch)
tree98624899abcf101ae95628ab29c4e3216d62b749
parent20fc32355be51db17e2da216dee7bca6889fe96d (diff)
keys.php new
-rw-r--r--.gitignore1
-rw-r--r--keys.php17
2 files changed, 18 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 7d570a8..0ff74d6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
user-agent-log
log
+key-wishlist
diff --git a/keys.php b/keys.php
new file mode 100644
index 0000000..b5e6f8f
--- /dev/null
+++ b/keys.php
@@ -0,0 +1,17 @@
+<?php
+
+require_once "init.php";
+
+if (array_key_exists('k', $_GET)
+&& (preg_match('/^[0-9A-Fa-f]{40}$/', $_GET['k']) !== false))
+ $output = shell_exec('gpg -a --export ' . $_GET['k']);
+ print $output;
+ if (empty($output)) {
+ $fh = fopen('key-wishlist', 'a');
+ if ($fh !== false) {
+ fwrite($fh, $_GET['k'] . "\n");
+ fclose($fh);
+ }
+ }
+else
+ print shell_exec('gpg --list-keys --with-colons');