Fix for missing log files
This commit is contained in:
@@ -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
3
logs/.htaccess
Normal file
@@ -0,0 +1,3 @@
|
||||
RewriteEngine on
|
||||
|
||||
ErrorDocument 404 empty.txt
|
||||
1
logs/empty.txt
Normal file
1
logs/empty.txt
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user