X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Finvite.php;h=9d4497f5def01d3722f0e6f3fb55063f3a47d416;hb=c0aa8f9312307d35bb95c21db4fb7ff3c2b6ddd6;hp=3f9efc57427a5a881fee5fe5fa22ceed718e6b57;hpb=d5a13b1e4c0f35445aa539ff6b3779062907a9cb;p=friendica.git diff --git a/mod/invite.php b/mod/invite.php index 3f9efc5742..9d4497f5de 100644 --- a/mod/invite.php +++ b/mod/invite.php @@ -1,15 +1,22 @@ config['sitename'], $message, "From: " . $a->user['email']); + $res = mail($recip, t('Please join my network on ') . $a->config['sitename'], + $message, "From: " . $a->user['email']); if($res) { $total ++; } @@ -37,6 +45,7 @@ function invite_post(&$a) { function invite_content(&$a) { + if(! local_user()) { notice( t('Permission denied.') . EOL); return; @@ -50,7 +59,7 @@ function invite_content(&$a) { '$msg_text' => t('Your message:'), '$default_message' => t('Please join my social network on ') . $a->config['sitename'] . t("\r\n") . t("\r\n") . t('To accept this invitation, please visit:') . t("\r\n") . t("\r\n") . $a->get_baseurl() - . t("\r\n") . t("\r\n") . t('Once you have registered, please make an introduction via my profile page at:') + . t("\r\n") . t("\r\n") . t('Once you have registered, please connect with me via my profile page at:') . t("\r\n") . t("\r\n") . $a->get_baseurl() . '/profile/' . $a->user['nickname'] , '$submit' => t('Submit') ));