[Web] Add function to read F2B data via API

master
andryyy 2019-05-17 11:21:25 +02:00
parent 1bc802734d
commit 885b79f06f
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 8 additions and 0 deletions

View File

@ -819,6 +819,14 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
break;
}
break;
case "fail2ban":
switch ($object) {
default:
$data = fail2ban('get');
process_get_return($data);
break;
}
break;
case "resource":
switch ($object) {
case "all":