Files
newznab-tmux/www/pages/ajax_profile.php
T
2015-06-09 23:09:14 +02:00

19 lines
510 B
PHP

<?php
if (!$page->users->isLoggedIn())
$page->show403();
if (isset($_GET['action']) && $_GET['action'] == "1" && isset($_GET['emailto']))
{
$emailto = $_GET['emailto'];
$ret = $page->users->sendInvite($page->settings->getSetting('title'), $page->settings->getSetting('email'), $page->serverurl, $page->users->currentUserId(), $emailto);
if (!$ret)
print "Invite not sent.";
else
print "Invite sent. Alternatively paste them following link to register - ".$ret;
}
else
{
print "Invite not sent.";
}