index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-09-10 08:46:25 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-10 08:46:25 +0200 |
commit | 1b9b6d2600afaeb5f3d4760908978772e2fb7bc4 (patch) | |
tree | 044a7d7a29a02e909e3e4bbdd1976fcbcb73b21b | |
parent | 20e7385ff00d6d59f0635d1a9c6423603c15e36d (diff) |
-rw-r--r-- | keys.php | 14 |
@@ -2,6 +2,20 @@ require_once "init.php"; +if ($_SERVER['REQUEST_METHOD'] == 'PUT') { + + print shell_exec( + 'echo "' . + base64_encode(file_get_contents('php://input')) . + '"' . + ' | base64 -d' . + ' | gpg --import' + ); + + die(); + +} + if (!array_key_exists('k', $_GET)) { print 'There are ' . |