This commit is contained in:
leosw
2025-08-30 12:50:46 +02:00
parent 1e5d1a7cc9
commit 723b81aebd

View File

@@ -125,7 +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 = '/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';
$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");