fe8d7c2025e33349ab1e51c0e906ec3ee69dcff2
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

1) <?php
2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

5) Written by schokokeks.org Hosting, namely
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

9) This code is published under a 0BSD license.
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

10) 
11) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
12) */
13) 
Bernd Wurst removed jquery and jqueryUI...

Bernd Wurst authored 1 year ago

14) // FIXME: PGP functionality nonfunctional
15) // disabled
16) die();
17) 
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

18) require_once('contacts.php');
19) 
Bernd Wurst Lade PGP-Keys vom Keyserver...

Bernd Wurst authored 5 years ago

20) if (isset($_GET['q']) || isset($_GET['id'])) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

21)     $result = ["status" => "notfound",
Hanno Böck Neue codingstyle-rule array...

Hanno Böck authored 8 months ago

22)         "id" => null, ];
Bernd Wurst Lade PGP-Keys vom Keyserver...

Bernd Wurst authored 5 years ago

23)     $id = null;
24)     if (isset($_GET['q'])) {
25)         $id = search_pgp_key($_GET['q']);
Bernd Wurst removed jquery and jqueryUI...

Bernd Wurst authored 1 year ago

26)         if ($id) {
27)             fetch_pgp_key($id);
28)         }
Bernd Wurst Lade PGP-Keys vom Keyserver...

Bernd Wurst authored 5 years ago

29)     } elseif (isset($_GET['id'])) {
30)         $id = fetch_pgp_key($_GET['id']);
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

31)     }
32)     if ($id) {
33)         $result['status'] = 'found';
34)         $result['id'] = $id;
Bernd Wurst Lade PGP-Keys vom Keyserver...

Bernd Wurst authored 5 years ago

35)         if (!test_pgp_key($id)) {
36)             $result['status'] = 'unusable';
37)         }
Bernd Wurst Prüfe die Verwendbarkeit vo...

Bernd Wurst authored 5 years ago

38)     }