Files
newznab-tmux/public/pages/sendtosab.php
T
DariusIII f3974a615a Apply fixes from StyleCI
[ci skip] [skip ci]
2018-03-22 14:51:33 +00:00

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);