mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 01:38:54 +00:00
28 lines
496 B
PHP
28 lines
496 B
PHP
<?php
|
|
require_once './config.php';
|
|
|
|
|
|
use nntmux\Regexes;
|
|
use nntmux\Binaries;
|
|
|
|
// 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;
|
|
}
|