+ Journaux serveur
+
+
+ Affiché le = date('d/m/Y à H:i:s') ?> —
+ Rafraîchir
+
+
+
+
+
+
+
+
+ = htmlspecialchars($logPath) ?>
+ = $fileMeta['size'] ?>
+ = $fileMeta['mtime'] ?>
+
+
+
+
+
+
+
Journaux non disponibles
+
= $readError ?>
+
+
+ En environnement de développement, les logs nginx ne sont pas disponibles.
+ Cette page est pleinement fonctionnelle sur le serveur de production.
+
+
+
+
+
+ Le fichier journal est vide.
+
+
+
+ $line): ?>
+ = htmlspecialchars($line, ENT_QUOTES | ENT_SUBSTITUTE) ?>
+
+
+
+
+
+
+
diff --git a/public/admin/status.php b/public/admin/status.php
index cfe1c46..b066a4b 100644
--- a/public/admin/status.php
+++ b/public/admin/status.php
@@ -50,7 +50,8 @@ function localHttpCheck(string $url): ?array {
curl_exec($ch);
$ms = (int) round((microtime(true) - $start) * 1000);
$code = (int) curl_getinfo($ch, CURLINFO_HTTP_CODE);
- curl_close($ch);
+ // curl_close() is a no-op since PHP 8.0 and deprecated in PHP 8.5; omitted.
+ unset($ch);
return $code > 0 ? [$code, $ms] : null;
}
diff --git a/templates/admin/head.php b/templates/admin/head.php
index 8e0fd6c..7245c69 100644
--- a/templates/admin/head.php
+++ b/templates/admin/head.php
@@ -30,6 +30,7 @@