Stats: correction nom fichier

This commit is contained in:
leosw
2025-08-30 11:50:25 +02:00
parent 810207ef9b
commit 6aad02ce2d

View File

@@ -123,7 +123,7 @@ if(isset($controller->splitted_url[1]) && $user->rankIsHigher("moderator")) {
case 'stats': case 'stats':
if ($user->rankIsHigher("moderator")) { if ($user->rankIsHigher("moderator")) {
$head['title'] = "Statistiques"; $head['title'] = "Statistiques";
$report = $config['abs_root_folder']; $report = $config['abs_root_folder'].'report.html';
$command = '(zcat /var/log/nginx/kabano.org-access.log*.gz && cat /var/log/nginx/kabano.org-access.log.1) | goaccess --log-format=COMBINED --no-progress -o '.escapeshellarg($report).' 2>&1'; $command = '(zcat /var/log/nginx/kabano.org-access.log*.gz && cat /var/log/nginx/kabano.org-access.log.1) | goaccess --log-format=COMBINED --no-progress -o '.escapeshellarg($report).' 2>&1';
$output = shell_exec($command); $output = shell_exec($command);