AUTHOR updated to new homepage

This commit is contained in:
Marc Wäckerlin
2015-11-03 22:02:51 +00:00
parent 75e29bfbe3
commit f11d2c7c56
18 changed files with 336 additions and 104 deletions

View File

@@ -29,9 +29,7 @@ try {
require_once("usertable.php");
$user = $db->real_escape_string($_REQUEST['user']);
$msg = $db->real_escape_string($_REQUEST['msg']);
$pgp = gnupg_init();
if (strlen($_REQUEST['msg'])>100000) error("message is too long");
if (!$pgp) error("pgp on server failed");
$q = $db->query("select pubkey from user where name='$user';");
if (!$q || $q->num_rows!=1) error("user not found on server");
$pubkey = gnupg_import($pgp, $q->fetch_row()[0]);