mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 18:58:56 +00:00
451ac73b79
[ci skip] [skip ci]
27 lines
328 B
PHP
27 lines
328 B
PHP
<?php
|
|
|
|
use nntmux\SABnzbd;
|
|
use App\Models\User;
|
|
|
|
if (! User::isLoggedIn()) {
|
|
$page->show403();
|
|
}
|
|
|
|
if (empty($_GET['id'])) {
|
|
$page->show404();
|
|
}
|
|
|
|
$sab = new SABnzbd($page);
|
|
|
|
if (empty($sab->url)) {
|
|
$page->show404();
|
|
}
|
|
|
|
if (empty($sab->apikey)) {
|
|
$page->show404();
|
|
}
|
|
|
|
$guid = $_GET['id'];
|
|
|
|
$sab->sendToSab($guid);
|