From 508042582469a929fe9778420d4ddbad25e54350 Mon Sep 17 00:00:00 2001 From: leosw Date: Sat, 30 Aug 2025 12:10:42 +0200 Subject: [PATCH] debug --- controllers/d.admin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controllers/d.admin.php b/controllers/d.admin.php index 59040ac..d93bf88 100755 --- a/controllers/d.admin.php +++ b/controllers/d.admin.php @@ -125,8 +125,7 @@ if(isset($controller->splitted_url[1]) && $user->rankIsHigher("moderator")) { $head['title'] = "Statistiques"; $report = $config['abs_root_folder'].'report.html'; $files = glob('/var/log/nginx/kabano.org-access.log*.gz'); - $command = '(zcat '.implode(' ', $files).' && cat /var/log/nginx/kabano.org-access.log.1) | goaccess --log-format=COMBINED --no-progress -o '.escapeshellarg($report).' 2>&1'; - $command = "echo '127.0.0.1 - - [30/Aug/2025:12:00:00 +0200] \"GET /index.html HTTP/1.1\" 200 1234' | goaccess --log-format=COMBINED --no-progress -o /tmp/test.html 2>&1"; + $command = '/bin/bash -c \'(zcat '.implode(' ', $files).' && cat /var/log/nginx/kabano.org-access.log.1) | goaccess --log-format=COMBINED --no-progress -o '.escapeshellarg($report).'\' 2>&1'; $output = shell_exec($command); include ($config['views_folder']."d.admin.stats.html");