mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 09:48:55 +00:00
28 lines
535 B
PHP
28 lines
535 B
PHP
<?php
|
|
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'smarty.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;
|
|
}
|