Update paths.php

This commit is contained in:
SubleXBle
2025-08-17 15:31:21 +02:00
committed by GitHub
parent 412796649e
commit 00334746d9

View File

@@ -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)) {