This commit is contained in:
leosw
2025-08-30 12:49:31 +02:00
parent 16ca71e399
commit 1e5d1a7cc9

View File

@@ -125,11 +125,9 @@ if(isset($controller->splitted_url[1]) && $user->rankIsHigher("moderator")) {
$head['title'] = "Statistiques"; $head['title'] = "Statistiques";
$report = $config['abs_root_folder'].'report.html'; $report = $config['abs_root_folder'].'report.html';
$files = glob('/var/log/nginx/kabano.org-access.log*.gz'); $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); $output = shell_exec($command);
echo shell_exec('echo $PATH');
include ($config['views_folder']."d.admin.stats.html"); include ($config['views_folder']."d.admin.stats.html");
} }
else { else {