mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 18:58:56 +00:00
12 lines
467 B
PHP
12 lines
467 B
PHP
<?php
|
|
use newznab\DnzbFailures;
|
|
|
|
if (isset($_GET['guid']) && isset($_GET['searchname']) && isset($_GET['userid']) && is_numeric($_GET['userid']) && isset($_GET['rsstoken'])) {
|
|
|
|
$alt = (new DnzbFailures(['Settings' => $page->settings]))->getAlternate($_GET['guid'], $_GET['searchname'], $_GET['userid']);
|
|
if (!$alt) {
|
|
$page->show404();
|
|
}
|
|
header('Location: ' . $page->serverurl . 'getnzb/' . $alt['guid'] . '&i=' . $_GET['userid'] . '&r=' . $_GET['rsstoken']);
|
|
}
|