debug
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user