mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 19:28:55 +00:00
19 lines
510 B
PHP
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.";
|
|
}
|