mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 11:18:56 +00:00
451ac73b79
[ci skip] [skip ci]
31 lines
403 B
PHP
31 lines
403 B
PHP
<?php
|
|
|
|
use nntmux\NZBGet;
|
|
use App\Models\User;
|
|
|
|
if (! User::isLoggedIn()) {
|
|
$page->show403();
|
|
}
|
|
|
|
if (empty($_GET['id'])) {
|
|
$page->show404();
|
|
}
|
|
|
|
$nzbget = new NZBGet($page);
|
|
|
|
if (empty($nzbget->url)) {
|
|
$page->show404();
|
|
}
|
|
|
|
if (empty($nzbget->username)) {
|
|
$page->show404();
|
|
}
|
|
|
|
if (empty($nzbget->password)) {
|
|
$page->show404();
|
|
}
|
|
|
|
$guid = $_GET['id'];
|
|
|
|
$nzbget->sendURLToNZBGet($guid);
|