diff --git a/CHANGELOG.md b/CHANGELOG.md index 217271296..02358bdca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Repository link in page footer instead of forum [\#1205](https://github.com/torrentpier/torrentpier/pull/1205) ([kovalensky](https://github.com/kovalensky)) - Minor improvements [\#1206](https://github.com/torrentpier/torrentpier/pull/1206) ([belomaxorka](https://github.com/belomaxorka)) - Some enhancements for dl.php [\#1209](https://github.com/torrentpier/torrentpier/pull/1209) ([belomaxorka](https://github.com/belomaxorka)) +- Cleanup for attach_mod [\#1210](https://github.com/torrentpier/torrentpier/pull/1210) ([belomaxorka](https://github.com/belomaxorka)) ## [v2.4.0-rc2](https://github.com/torrentpier/torrentpier/tree/v2.4.0-rc2) (2023-12-12) [Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-rc1...v2.4.0-rc2) diff --git a/install/sql/mysql.sql b/install/sql/mysql.sql index 72dce1e5a..40890a96c 100644 --- a/install/sql/mysql.sql +++ b/install/sql/mysql.sql @@ -721,9 +721,6 @@ VALUES ('1', 'gif', ''), ('3', 'cpp', ''), ('3', 'hpp', ''), ('3', 'diz', ''), - ('4', 'tif', ''), - ('4', 'tiff', ''), - ('4', 'tga', ''), ('4', 'xls', ''), ('4', 'doc', ''), ('4', 'dot', ''), diff --git a/library/attach_mod/includes/functions_thumbs.php b/library/attach_mod/includes/functions_thumbs.php index da09b4a50..df539faaa 100644 --- a/library/attach_mod/includes/functions_thumbs.php +++ b/library/attach_mod/includes/functions_thumbs.php @@ -67,10 +67,6 @@ function get_supported_image_types($type) $new_type = ($format & IMG_GIF) ? IMG_GIF : 0; break; case IMAGETYPE_JPEG: - case IMAGETYPE_JPC: - case IMAGETYPE_JP2: - case IMAGETYPE_JPX: - case IMAGETYPE_JB2: $new_type = ($format & IMG_JPG) ? IMG_JPG : 0; break; case IMAGETYPE_PNG: @@ -79,9 +75,6 @@ function get_supported_image_types($type) case IMAGETYPE_BMP: $new_type = ($format & IMG_BMP) ? IMG_BMP : 0; break; - case IMAGETYPE_WBMP: - $new_type = ($format & IMG_WBMP) ? IMG_WBMP : 0; - break; case IMAGETYPE_WEBP: $new_type = ($format & IMG_WEBP) ? IMG_WEBP : 0; break; @@ -145,9 +138,6 @@ function create_thumbnail($source, $new_file, $mimetype) case IMG_BMP: $image = imagecreatefrombmp($source); break; - case IMG_WBMP: - $image = imagecreatefromwbmp($source); - break; case IMG_WEBP: $image = imagecreatefromwebp($source); break; @@ -176,9 +166,6 @@ function create_thumbnail($source, $new_file, $mimetype) case IMG_BMP: imagebmp($new_image, $new_file); break; - case IMG_WBMP: - imagewbmp($new_image, $new_file); - break; case IMG_WEBP: imagewebp($new_image, $new_file); break; diff --git a/library/config.php b/library/config.php index 15c8819ce..d018ec6fe 100644 --- a/library/config.php +++ b/library/config.php @@ -574,7 +574,6 @@ $bb_cfg['file_id_ext'] = [ 4 => 'png', 5 => 'rar', 6 => 'tar', - // 7 => 'tiff', 8 => 'torrent', 9 => 'zip', 10 => '7z',