Fix for missing log files

This commit is contained in:
Sascha Leib
2025-09-19 16:04:59 +02:00
parent 1e5154dfd7
commit 15bf44beb1
3 changed files with 6 additions and 2 deletions

View File

@@ -11,8 +11,8 @@ foreach($dir as $file) {
$fName = pathinfo($file, PATHINFO_BASENAME);
$bName = strtok($fName, '.');
if ($bName == '' || $bName == 'logfiles') {
//echo "File “{$fName}” ignored.";
if ($bName == '' || $bName == 'logfiles' || $bName == 'empty' || $fName == '.htaccess') {
// echo "File “{$fName}” ignored.\n";
} else if ($bName == $today || $bName == $yesterday) {
echo "File “{$fName}” skipped.\n";
} else {

3
logs/.htaccess Normal file
View File

@@ -0,0 +1,3 @@
RewriteEngine on
ErrorDocument 404 empty.txt

1
logs/empty.txt Normal file
View File

@@ -0,0 +1 @@