mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-09 16:13:01 -04:00
17 lines
414 B
PHP
17 lines
414 B
PHP
<?php
|
|
|
|
if (!$Viewer->permitted('admin_manage_ipbans')) {
|
|
error(403);
|
|
}
|
|
|
|
if (isset($_GET['perform'])) {
|
|
$IPv4Man = new Gazelle\Manager\IPv4;
|
|
if ($_GET['perform'] == 'delete') {
|
|
$IPv4Man->removeBan((int)$_GET['id']);
|
|
} elseif ($_GET['perform'] == 'create') {
|
|
$IPv4Man->createBan($Viewer->id(), $_GET['ip'], $_GET['ip'], trim($_GET['notes']));
|
|
} else {
|
|
error(403);
|
|
}
|
|
}
|