mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 01:38:54 +00:00
24fa162413
[ci skip] [skip ci]
26 lines
315 B
PHP
26 lines
315 B
PHP
<?php
|
|
|
|
use nntmux\SABnzbd;
|
|
|
|
if (! $page->users->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);
|