non working experimental status
This commit is contained in:
@@ -29,8 +29,10 @@ function send($user, $msg) {
|
||||
if (strlen($_REQUEST['msg'])>100000) error("message is too long");
|
||||
$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]);
|
||||
if (!$pubkey) error("wrong identity");
|
||||
*/
|
||||
$q = $db->query("insert into message (user, msg) values ('$user', '$msg');");
|
||||
if (!$q) {
|
||||
error_log("Error storing message: ".$db->error);
|
||||
|
Reference in New Issue
Block a user