Cleanup for attach_mod (#1210)

* Cleanup for attach_mod

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-12-16 14:23:17 +07:00 committed by GitHub
commit 381d9b728f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 17 deletions

View file

@ -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)

View file

@ -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', ''),

View file

@ -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;

View file

@ -574,7 +574,6 @@ $bb_cfg['file_id_ext'] = [
4 => 'png',
5 => 'rar',
6 => 'tar',
// 7 => 'tiff',
8 => 'torrent',
9 => 'zip',
10 => '7z',