8 require_once('include/salmon.php');
9 require_once('include/crypto.php');
10 // not yet ready for prime time
11 //require_once('include/zot.php');
13 function post_post(&$a) {
15 $bulk_delivery = false;
18 $bulk_delivery = true;
21 $nickname = $a->argv[2];
22 $r = q("SELECT * FROM `user` WHERE `nickname` = '%s'
23 AND `account_expired` = 0 AND `account_removed` = 0 LIMIT 1",
27 http_status_exit(500);
32 $xml = file_get_contents('php://input');
34 logger('mod-post: new zot: ' . $xml, LOGGER_DATA);
37 http_status_exit(500);
39 $msg = zot_decode($importer,$xml);
41 logger('mod-post: decoded msg: ' . print_r($msg,true), LOGGER_DATA);
44 http_status_exit(500);
47 $ret = zot_incoming($bulk_delivery, $importer,$msg);
48 http_status_exit(($ret) ? $ret : 200);