start of v4
This commit is contained in:
@@ -17,6 +17,7 @@ function mail_post(&$a) {
|
||||
$body = ((x($_REQUEST,'body')) ? escape_tags(trim($_REQUEST['body'])) : '');
|
||||
$recipient = ((x($_REQUEST,'messageto')) ? notags(trim($_REQUEST['messageto'])) : '');
|
||||
$rstr = ((x($_REQUEST,'messagerecip')) ? notags(trim($_REQUEST['messagerecip'])) : '');
|
||||
$preview = ((x($_REQUEST,'preview')) ? intval($_REQUEST['preview']) : 0);
|
||||
$expires = ((x($_REQUEST,'expires')) ? datetime_convert(date_default_timezone_get(),'UTC', $_REQUEST['expires']) : NULL_DATE);
|
||||
|
||||
// If we have a raw string for a recipient which hasn't been auto-filled,
|
||||
@@ -86,6 +87,13 @@ function mail_post(&$a) {
|
||||
require_once('include/text.php');
|
||||
linkify_tags($a, $body, local_channel());
|
||||
|
||||
if($preview) {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
if(! $recipient) {
|
||||
notice('No recipient found.');
|
||||
$a->argc = 2;
|
||||
|
||||
@@ -483,6 +483,14 @@ function post_init(&$a) {
|
||||
*/
|
||||
function post_post(&$a) {
|
||||
|
||||
require_once('Zotlabs/Zot/Receiver.php');
|
||||
|
||||
$z = new Zotlabs\Zot\Receiver($_REQUEST['data'],get_config('system','prvkey'));
|
||||
|
||||
// notreached;
|
||||
|
||||
exit;
|
||||
|
||||
$encrypted_packet = false;
|
||||
$ret = array('success' => false);
|
||||
|
||||
@@ -651,7 +659,6 @@ function post_post(&$a) {
|
||||
/* pickup: end */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* All other message types require us to verify the sender. This is a generic check, so we
|
||||
* will do it once here and bail if anything goes wrong.
|
||||
|
||||
Reference in New Issue
Block a user