public static function isAllowedFileType($v566bbee0f961ad71b54c3c2fd36db053) { $v566bbee0f961ad71b54c3c2fd36db053 = strtolower($v566bbee0f961ad71b54c3c2fd36db053); if (in_array($v566bbee0f961ad71b54c3c2fd36db053, self::$forbiddenFileTypes)) { return false; } if (in_array($v566bbee0f961ad71b54c3c2fd36db053, self::$allowedFileTypes) || in_array($v566bbee0f961ad71b54c3c2fd36db053, self::$allowedImageTypes)) { return true; } if (is_null(self::$allowedUserFileTypes)) { $v8e44f0089b076e18a718eb9ca3d94674 = permissionsCollection::getInstance()->getUserId(); $v23e91e891070db669547556402a176b5 = umiObjectsCollection::getInstance()->getObject($v8e44f0089b076e18a718eb9ca3d94674)->getValue('appended_file_extensions'); self::$allowedUserFileTypes = array(); foreach (explode(',', $v23e91e891070db669547556402a176b5) as $va175f0d82e080972dd2c0cf2c56450b3) { $va175f0d82e080972dd2c0cf2c56450b3 = strtolower(trim($va175f0d82e080972dd2c0cf2c56450b3)); if (strlen($va175f0d82e080972dd2c0cf2c56450b3)) { self::$allowedUserFileTypes[] = $va175f0d82e080972dd2c0cf2c56450b3; } } } if (in_array($v566bbee0f961ad71b54c3c2fd36db053, self::$allowedUserFileTypes)) { return true; } return false; }