From 1c405f7157b685efcf302e2e71876d81f6274f57 Mon Sep 17 00:00:00 2001 From: SubleXBle <51033045+SubleXBle@users.noreply.github.com> Date: Sat, 16 Aug 2025 19:05:03 +0200 Subject: [PATCH] Update list-files.php --- includes/list-files.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/list-files.php b/includes/list-files.php index 3105237..2353bb3 100644 --- a/includes/list-files.php +++ b/includes/list-files.php @@ -3,6 +3,8 @@ // Path to the config file $configPath = '/opt/Fail2Ban-Report/fail2ban-report.config'; +require_once __DIR__ . "/paths.php"; + // Read config file and parse the [Fail2Ban-Daily-List-Settings] section $config = []; if (file_exists($configPath)) { @@ -15,7 +17,8 @@ if (isset($config['Fail2Ban-Daily-List-Settings']['max_display_days'])) { $maxDays = (int)$config['Fail2Ban-Daily-List-Settings']['max_display_days']; } -$jsonDir = dirname(__DIR__) . '/archive/'; +$jsonDir = $PATHS["fail2ban"]; +//$jsonDir = dirname(__DIR__) . '/archive/swsrv/fail2ban/'; // Collect all matching JSON files with their dates extracted from filenames $matchedFiles = [];