mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
29 lines
387 B
PHP
29 lines
387 B
PHP
<?php
|
|
|
|
use App\Models\User;
|
|
use Blacklight\SABnzbd;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
if (! Auth::check()) {
|
|
$page->show403();
|
|
}
|
|
|
|
|
|
if (empty(request()->input('id'))) {
|
|
$page->show404();
|
|
}
|
|
|
|
$sab = new SABnzbd($page);
|
|
|
|
if (empty($sab->url)) {
|
|
$page->show404();
|
|
}
|
|
|
|
if (empty($sab->apikey)) {
|
|
$page->show404();
|
|
}
|
|
|
|
$guid = request()->input('id');
|
|
|
|
$sab->sendToSab($guid);
|