Update index.php

Makes directory listing skip flat.png which is part of the script
This commit is contained in:
Kevin Glendenning 2021-01-06 12:15:58 -05:00 committed by GitHub
parent 1d32baf5b4
commit a2ecdd5c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,6 +177,7 @@ function display_block( $file )
if( !$file_ext AND is_dir($file)) $file_ext = "dir";
if(in_array($file, $ignore_file_list)) return;
if(in_array($file_ext, $ignore_ext_list)) return;
if(basename($file) == "flat.png") return;
$download_att = ($force_download AND $file_ext != "dir" ) ? " download='" . basename($file) . "'" : "";