mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 09:48:55 +00:00
20 lines
587 B
PHP
20 lines
587 B
PHP
<?php
|
|
|
|
use App\Models\Settings;
|
|
|
|
if (! $page->users->isLoggedIn()) {
|
|
$page->show403();
|
|
}
|
|
|
|
if (isset($_GET['action'], $_GET['emailto']) && (int) $_GET['action'] === 1) {
|
|
$emailto = $_GET['emailto'];
|
|
$ret = $page->users->sendInvite(Settings::settingValue('site.main.title'), Settings::settingValue('site.main.email'), $page->serverurl, $page->users->currentUserId(), $emailto);
|
|
if (! $ret) {
|
|
echo 'Invite not sent.';
|
|
} else {
|
|
echo 'Invite sent. Alternatively paste them following link to register - '.$ret;
|
|
}
|
|
} else {
|
|
echo 'Invite not sent.';
|
|
}
|