mirror of
https://github.com/SubleXBle/Fail2Ban-Report.git
synced 2026-02-11 11:18:49 -06:00
Update paths.php
This commit is contained in:
@@ -21,8 +21,13 @@ $SERVERS = [
|
||||
"tests" => "Testing"
|
||||
];
|
||||
|
||||
// Default Server => Will have to be set in config to work for others
|
||||
$DEFAULT_SERVER = "swsrv";
|
||||
// Config einlesen
|
||||
$configFile = '/opt/Fail2Ban-Report/Settings/fail2ban-report.config';
|
||||
$config = parse_ini_file($configFile, true);
|
||||
|
||||
// Standardserver aus Config laden, fallback auf "swsrv"
|
||||
$DEFAULT_SERVER = $config['Default Server']['defaultserver'] ?? 'swsrv';
|
||||
|
||||
|
||||
// If choosen item -> dont forget
|
||||
if (isset($_POST['server']) && array_key_exists($_POST['server'], $SERVERS)) {
|
||||
|
||||
Reference in New Issue
Block a user