mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
28 lines
628 B
PHP
28 lines
628 B
PHP
<?php
|
|
|
|
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php';
|
|
|
|
use Blacklight\Regexes;
|
|
use Blacklight\Binaries;
|
|
|
|
// Login Check
|
|
$page = new AdminPage;
|
|
|
|
if (! request()->has('action')) {
|
|
exit();
|
|
}
|
|
|
|
switch (request()->input('action')) {
|
|
case 1:
|
|
$id = (int) request()->input('col_id');
|
|
(new Regexes(['Settings' => $page->settings]))->deleteRegex($id);
|
|
echo "Regex $id deleted.";
|
|
break;
|
|
|
|
case 2:
|
|
$id = (int) request()->input('bin_id');
|
|
(new Binaries(['Settings' => $page->settings]))->deleteBlacklist($id);
|
|
echo "Blacklist $id deleted.";
|
|
break;
|
|
}
|