From 1b78e8e868b4bb0a7e766b356d893b4caada71a9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 15 Jul 2019 13:43:16 +0200 Subject: buildmaster/gpg-keys.php: hand out gpg keys from the database --- buildmaster/gpg-keys.php | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/buildmaster/gpg-keys.php b/buildmaster/gpg-keys.php index db990c2..ed33418 100644 --- a/buildmaster/gpg-keys.php +++ b/buildmaster/gpg-keys.php @@ -1,6 +1,35 @@ num_rows == 0) + throw_http_error(400, 'Key not found'); + $result = $result -> fetch_assoc(); + print "\n"; + print " \n"; + print " \n"; + print " Archlinux 32 Key Server -- Get \"" . $result['fingerprint'] . "\"\n"; + print " \n"; + print " \n"; + print " \n"; + print " \n"; + print "

Archlinux 32 Key Server -- Get \"" . $result['fingerprint'] . "\"

\n"; + print "
\n";
+    print $result['public_key'] . "\n";
+    print "    
\n"; + print " \n"; + print "\n"; + die(); + }; $result = mysql_run_query( "SELECT" . @@ -36,8 +65,8 @@ show_warning_on_offline_slave(); print ""; print "" . $row["person"] . ""; print "" . $row["action"] . ""; - print "" . $row["fingerprint"] . ""; print "\n"; } -- cgit v1.2.3-70-g09d2