diff --git a/controllers/d.admin.php b/controllers/d.admin.php index 41fbcdd..5787d66 100755 --- a/controllers/d.admin.php +++ b/controllers/d.admin.php @@ -124,7 +124,8 @@ if(isset($controller->splitted_url[1]) && $user->rankIsHigher("moderator")) { if ($user->rankIsHigher("moderator")) { $head['title'] = "Statistiques"; $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'; + $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'; $output = shell_exec($command); include ($config['views_folder']."d.admin.stats.html"); diff --git a/views/d.admin.stats.html b/views/d.admin.stats.html index 455ba1e..73dd601 100644 --- a/views/d.admin.stats.html +++ b/views/d.admin.stats.html @@ -13,9 +13,6 @@

Retour de l'execution de la commande :


Voir le rapport