mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
17 lines
374 B
PHP
17 lines
374 B
PHP
<?php
|
|
|
|
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php';
|
|
|
|
use Blacklight\Binaries;
|
|
use Blacklight\http\AdminPage;
|
|
|
|
// login check
|
|
$page = new AdminPage;
|
|
$bin = new Binaries();
|
|
|
|
if (request()->has('action') && request()->input('action') === '2') {
|
|
$id = (int) request()->input('bin_id');
|
|
$bin->deleteBlacklist($id);
|
|
echo "Blacklist $id deleted.";
|
|
}
|