mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
33 lines
462 B
PHP
33 lines
462 B
PHP
<?php
|
|
|
|
use App\Models\User;
|
|
use Blacklight\NZBGet;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
if (! Auth::check()) {
|
|
$page->show403();
|
|
}
|
|
|
|
|
|
if (empty(request()->input('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 = request()->input('id');
|
|
|
|
$nzbget->sendURLToNZBGet($guid);
|