Version with dots instead of dashes

This commit is contained in:
sørenpeter 2024-12-08 18:37:33 +01:00
parent 1316fcf6d9
commit 8ba2513841
2 changed files with 6 additions and 2 deletions

View file

@ -1 +1 @@
2024-12-06 2024.12.06

View file

@ -331,7 +331,7 @@ function updateCachedFile($filePath) {
$lastModifiedTime = file_exists($cacheFilePath) ? filemtime($cacheFilePath) : false; $lastModifiedTime = file_exists($cacheFilePath) ? filemtime($cacheFilePath) : false;
$lastModifiedHeader = $lastModifiedTime ? gmdate('D, d M Y H:i:s', $lastModifiedTime) . ' GMT' : null; $lastModifiedHeader = $lastModifiedTime ? gmdate('D, d M Y H:i:s', $lastModifiedTime) . ' GMT' : null;
# echo "lastModifiedHeader: $lastModifiedHeader<br>\n"; #echo "lastModifiedHeader: $lastModifiedHeader<br>\n";
global $config; global $config;
global $agentVersion; global $agentVersion;
@ -349,6 +349,10 @@ function updateCachedFile($filePath) {
} }
# TODO: Add a validation for the nickname. For example at least 1 character. # TODO: Add a validation for the nickname. For example at least 1 character.
// if ($nick === "") {
// die("Check your config.ini file. 'public_nick' not valid");
// }
$agentName = 'timeline'; $agentName = 'timeline';
$userAgentHeader = "User-Agent: $agentName/$agentVersion (+$url; @$nick)\r\n"; $userAgentHeader = "User-Agent: $agentName/$agentVersion (+$url; @$nick)\r\n";