From f4325d3a5a3c1da464c68fb371363f293c648961 Mon Sep 17 00:00:00 2001 From: leosw Date: Sat, 30 Aug 2025 12:08:14 +0200 Subject: [PATCH] debug --- controllers/d.admin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/d.admin.php b/controllers/d.admin.php index 5787d66..51c8c8b 100755 --- a/controllers/d.admin.php +++ b/controllers/d.admin.php @@ -126,6 +126,7 @@ if(isset($controller->splitted_url[1]) && $user->rankIsHigher("moderator")) { $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' | /usr/bin/goaccess --log-format=COMBINED --no-progress -o /tmp/test.html"; $output = shell_exec($command); include ($config['views_folder']."d.admin.stats.html");