From 7d8976c0996533e76784573eca1211a3ca8892eb Mon Sep 17 00:00:00 2001 From: Michael Horstmann Date: Thu, 30 Jun 2022 16:25:54 +0200 Subject: [PATCH] Removed unused function To fix: Undefined constant 'FM_EXTENSION' --- tinyfilemanager.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 4d1b636..85079f9 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -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