From 982d5fe20bdc317491c20c2eaec17548d3cd9c5d Mon Sep 17 00:00:00 2001 From: leosw Date: Sat, 27 Dec 2025 19:12:01 +0100 Subject: [PATCH] Fix Stats --- index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 0a9ce09..906db98 100644 --- a/index.php +++ b/index.php @@ -161,7 +161,7 @@ if ($action === 'admin_generate_stats') { $report = __DIR__ . "/stats.html"; // Récupérer tous les logs gzip - $gz_files = glob('/var/log/nginx/materiel.org-access.log*.gz'); + $gz_files = glob('/var/log/nginx/materiel.kabano.org-access.log*.gz'); // Construire la commande $cmd = "/bin/bash -c '("; @@ -172,12 +172,12 @@ if ($action === 'admin_generate_stats') { } // 2. Log d’hier - if (file_exists('/var/log/nginx/materiel.org-access.log.1')) { - $cmd .= "cat /var/log/nginx/materiel.org-access.log.1 ; "; + if (file_exists('/var/log/nginx/materiel.kabano.org-access.log.1')) { + $cmd .= "cat /var/log/nginx/materiel.kabano.org-access.log.1 ; "; } // 3. Log du jour - $cmd .= "cat /var/log/nginx/materiel.org-access.log"; + $cmd .= "cat /var/log/nginx/materiel.kabano.org-access.log"; $cmd .= ") | goaccess --log-format=COMBINED --no-progress -o " . escapeshellarg($report)