diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-12-06 19:16:38 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-12-06 19:16:38 -0800 |
commit | 4ccd9ae6da2f4fbed45af80a11b53c8b4efd9ceb (patch) | |
tree | aec9c03787e0117554f71b4fe86ab26dda71f026 /mod/mail.php | |
parent | 3f920da4137ecb91b3aeb2683f2e2b59b4d088cc (diff) | |
download | volse-hubzilla-4ccd9ae6da2f4fbed45af80a11b53c8b4efd9ceb.tar.gz volse-hubzilla-4ccd9ae6da2f4fbed45af80a11b53c8b4efd9ceb.tar.bz2 volse-hubzilla-4ccd9ae6da2f4fbed45af80a11b53c8b4efd9ceb.zip |
start of v4
Diffstat (limited to 'mod/mail.php')
-rw-r--r-- | mod/mail.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/mail.php b/mod/mail.php index 44c4b479d..59d15772b 100644 --- a/mod/mail.php +++ b/mod/mail.php @@ -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; |