This commit is contained in:
2026-02-03 02:37:44 +01:00
parent ea5e25e6a8
commit b215ba3b60
4 changed files with 49 additions and 24 deletions

View File

@@ -20,9 +20,7 @@ $clientIp = trim($clientIp);
$version = $GLOBALS['app_version'] ?? '';
$versionLabel = $version ? (' | v' . $version) : '';
$accessLine = date(DATE_ATOM) . ' | ' . ($clientIp !== '' ? $clientIp : 'unknown') . $versionLabel . "\n";
$logFile = $debugDir . '/last_access.log';
$existing = is_file($logFile) ? (string)@file_get_contents($logFile) : '';
@file_put_contents($logFile, $accessLine . $existing);
debug_log_write('last_access', $accessLine, ['append' => true, 'json' => false]);
$pageTitle = 'Email Template System Admin';
$pageId = 'home';