debug
This commit is contained in:
@@ -125,11 +125,9 @@ 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);
|
||||
|
||||
echo shell_exec('echo $PATH');
|
||||
|
||||
include ($config['views_folder']."d.admin.stats.html");
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user