revert debug
This commit is contained in:
@@ -125,8 +125,8 @@ if(isset($controller->splitted_url[1]) && $user->rankIsHigher("moderator")) {
|
|||||||
$head['title'] = "Statistiques";
|
$head['title'] = "Statistiques";
|
||||||
$report = $config['abs_root_folder'];
|
$report = $config['abs_root_folder'];
|
||||||
$command = '(zcat /var/log/nginx/kabano.org-access.log*.gz && cat /var/log/nginx/kabano.org-access.log.1) | goaccess --log-format=COMBINED -o '.escapeshellarg($report);
|
$command = '(zcat /var/log/nginx/kabano.org-access.log*.gz && cat /var/log/nginx/kabano.org-access.log.1) | goaccess --log-format=COMBINED -o '.escapeshellarg($report);
|
||||||
/* exec($command, $output, $result);
|
exec($command, $output, $result);
|
||||||
*/ $output = shell_exec($command);
|
|
||||||
include ($config['views_folder']."d.admin.stats.html");
|
include ($config['views_folder']."d.admin.stats.html");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<h1><?=$head['title']?></h1>
|
<h1><?=$head['title']?></h1>
|
||||||
<br>
|
<br>
|
||||||
<h3>Retour de l'execution de la commande :</h3><br>
|
<h3>Retour de l'execution de la commande :</h3><br>
|
||||||
<pre><? print_r($output);
|
<pre><?
|
||||||
foreach($output as $line) {
|
foreach($output as $line) {
|
||||||
echo $line."<br>";
|
echo $line."<br>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user