Files
newznab-tmux/public/admin/anidb-remove.php
T

21 lines
534 B
PHP

<?php
require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'resources/views/themes/smarty.php';
use App\Models\Release;
use Blacklight\http\AdminPage;
$page = new AdminPage();
$success = false;
if (request()->has('id')) {
$success = Release::removeAnidbIdFromReleases(request()->input('id'));
$page->smarty->assign('anidbid', request()->input('id'));
}
$page->smarty->assign('success', $success);
$page->title = 'Remove anidbID from Releases';
$page->content = $page->smarty->fetch('anidb-remove.tpl');
$page->render();