mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 18:58:56 +00:00
f3974a615a
[ci skip] [skip ci]
27 lines
365 B
PHP
27 lines
365 B
PHP
<?php
|
|
|
|
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);
|