mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
27 lines
438 B
PHP
27 lines
438 B
PHP
<?php
|
|
|
|
use App\Models\User;
|
|
use Blacklight\CouchPotato;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
if (! Auth::check()) {
|
|
$page->show403();
|
|
}
|
|
|
|
|
|
if (empty(request()->input('id'))) {
|
|
$page->show404();
|
|
} else {
|
|
$cp = new CouchPotato($page);
|
|
|
|
if (empty($cp->cpurl)) {
|
|
$page->show404();
|
|
}
|
|
|
|
if (empty($cp->cpapi)) {
|
|
$page->show404();
|
|
}
|
|
$id = request()->input('id');
|
|
$cp->sendToCouchPotato($id);
|
|
}
|