Removed unused function

To fix: Undefined constant 'FM_EXTENSION'
This commit is contained in:
Michael Horstmann 2022-06-30 16:25:54 +02:00
parent 17de8af81b
commit 7d8976c099
No known key found for this signature in database
GPG key ID: 3FF905ECFD78065C

View file

@ -2185,27 +2185,6 @@ fm_show_footer();
// Functions
/**
* Check if the filename is allowed.
* @param string $filename
* @return bool
*/
function fm_is_file_allowed($filename)
{
// By default, no file is allowed
$allowed = false;
if (FM_EXTENSION) {
$ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
if (in_array($ext, explode(',', strtolower(FM_EXTENSION)))) {
$allowed = true;
}
}
return $allowed;
}
/**
* Delete file or folder (recursively)
* @param string $path