mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 10:18:55 +00:00
23 lines
455 B
PHP
23 lines
455 B
PHP
<?php
|
|
require_once './config.php';
|
|
|
|
// Login Check
|
|
$admin = new \AdminPage;
|
|
|
|
if (!isset($_GET['action'])) {
|
|
exit();
|
|
}
|
|
|
|
switch($_GET['action']) {
|
|
case 1:
|
|
$id = (int) $_GET['col_id'];
|
|
(new \Regexes(['Settings' => $admin->settings]))->deleteRegex($id);
|
|
print "Regex $id deleted.";
|
|
break;
|
|
|
|
case 2:
|
|
$id = (int) $_GET['bin_id'];
|
|
(new \Binaries(['Settings' => $admin->settings]))->deleteBlacklist($id);
|
|
print "Blacklist $id deleted.";
|
|
break;
|
|
} |