From d9420f180b9a9deaf0918f398640d4d8ec37202d Mon Sep 17 00:00:00 2001 From: leosw Date: Sat, 27 Dec 2025 19:21:56 +0100 Subject: [PATCH] fix stats finally --- .gitignore | 1 + index.php | 3 +-- stats.html | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 stats.html diff --git a/.gitignore b/.gitignore index c9fda7a..092b066 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ db.sqlite uploads/* +stats.html diff --git a/index.php b/index.php index 6ccd0a6..906db98 100644 --- a/index.php +++ b/index.php @@ -184,7 +184,6 @@ if ($action === 'admin_generate_stats') { . " -' 2>&1"; // Exécuter - echo($cmd); $output = shell_exec($cmd); // Vérifier si le fichier a été généré @@ -195,7 +194,7 @@ if ($action === 'admin_generate_stats') { } // Redirection vers le rapport - //header("Location: stats.html"); + header("Location: stats.html"); exit; } diff --git a/stats.html b/stats.html deleted file mode 100644 index 552de41..0000000 --- a/stats.html +++ /dev/null @@ -1 +0,0 @@ -Statistiques du serveur
\ No newline at end of file