mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
Replace the separate /admin/status.php and /admin/logs.php pages with a single /admin/system.php page organised around a tab bar. - system.php — top-level tab bar: 'Statut' + one tab per log file (nginx accès, nginx erreurs, PHP-FPM). Switching tabs is a plain href (?tab=…) so no JS required for navigation; the lines-selector SELECT triggers a location change on 'change' for instant reload without a submit button. - Status tab preserves all existing service cards, PHP runtime grid, and disk-usage bar from the old status.php. - Log tabs preserve line-count selector, file metadata bar, and per-line colour coding from the old logs.php. - New: copy-to-clipboard button on each log output block (Clipboard API with textarea execCommand fallback). - status.php / logs.php replaced with 301 redirect stubs so existing bookmarks and links keep working. - templates/admin/head.php: 'Statut' + 'Journaux' nav items replaced with a single 'Système' item; active state covers all three page names for redirect compatibility.
5 lines
154 B
PHP
5 lines
154 B
PHP
<?php
|
|
// Redirects legacy /admin/logs.php → /admin/system.php?tab=nginx_access
|
|
header('Location: /admin/system.php?tab=nginx_access', true, 301);
|
|
exit;
|