mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Cleanup for attach_mod (#1210)
* Cleanup for attach_mod * Update CHANGELOG.md
This commit is contained in:
parent
58e6537f03
commit
381d9b728f
4 changed files with 1 additions and 17 deletions
|
@ -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))
|
- 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))
|
- 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))
|
- 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)
|
## [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)
|
[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-rc1...v2.4.0-rc2)
|
||||||
|
|
|
@ -721,9 +721,6 @@ VALUES ('1', 'gif', ''),
|
||||||
('3', 'cpp', ''),
|
('3', 'cpp', ''),
|
||||||
('3', 'hpp', ''),
|
('3', 'hpp', ''),
|
||||||
('3', 'diz', ''),
|
('3', 'diz', ''),
|
||||||
('4', 'tif', ''),
|
|
||||||
('4', 'tiff', ''),
|
|
||||||
('4', 'tga', ''),
|
|
||||||
('4', 'xls', ''),
|
('4', 'xls', ''),
|
||||||
('4', 'doc', ''),
|
('4', 'doc', ''),
|
||||||
('4', 'dot', ''),
|
('4', 'dot', ''),
|
||||||
|
|
|
@ -67,10 +67,6 @@ function get_supported_image_types($type)
|
||||||
$new_type = ($format & IMG_GIF) ? IMG_GIF : 0;
|
$new_type = ($format & IMG_GIF) ? IMG_GIF : 0;
|
||||||
break;
|
break;
|
||||||
case IMAGETYPE_JPEG:
|
case IMAGETYPE_JPEG:
|
||||||
case IMAGETYPE_JPC:
|
|
||||||
case IMAGETYPE_JP2:
|
|
||||||
case IMAGETYPE_JPX:
|
|
||||||
case IMAGETYPE_JB2:
|
|
||||||
$new_type = ($format & IMG_JPG) ? IMG_JPG : 0;
|
$new_type = ($format & IMG_JPG) ? IMG_JPG : 0;
|
||||||
break;
|
break;
|
||||||
case IMAGETYPE_PNG:
|
case IMAGETYPE_PNG:
|
||||||
|
@ -79,9 +75,6 @@ function get_supported_image_types($type)
|
||||||
case IMAGETYPE_BMP:
|
case IMAGETYPE_BMP:
|
||||||
$new_type = ($format & IMG_BMP) ? IMG_BMP : 0;
|
$new_type = ($format & IMG_BMP) ? IMG_BMP : 0;
|
||||||
break;
|
break;
|
||||||
case IMAGETYPE_WBMP:
|
|
||||||
$new_type = ($format & IMG_WBMP) ? IMG_WBMP : 0;
|
|
||||||
break;
|
|
||||||
case IMAGETYPE_WEBP:
|
case IMAGETYPE_WEBP:
|
||||||
$new_type = ($format & IMG_WEBP) ? IMG_WEBP : 0;
|
$new_type = ($format & IMG_WEBP) ? IMG_WEBP : 0;
|
||||||
break;
|
break;
|
||||||
|
@ -145,9 +138,6 @@ function create_thumbnail($source, $new_file, $mimetype)
|
||||||
case IMG_BMP:
|
case IMG_BMP:
|
||||||
$image = imagecreatefrombmp($source);
|
$image = imagecreatefrombmp($source);
|
||||||
break;
|
break;
|
||||||
case IMG_WBMP:
|
|
||||||
$image = imagecreatefromwbmp($source);
|
|
||||||
break;
|
|
||||||
case IMG_WEBP:
|
case IMG_WEBP:
|
||||||
$image = imagecreatefromwebp($source);
|
$image = imagecreatefromwebp($source);
|
||||||
break;
|
break;
|
||||||
|
@ -176,9 +166,6 @@ function create_thumbnail($source, $new_file, $mimetype)
|
||||||
case IMG_BMP:
|
case IMG_BMP:
|
||||||
imagebmp($new_image, $new_file);
|
imagebmp($new_image, $new_file);
|
||||||
break;
|
break;
|
||||||
case IMG_WBMP:
|
|
||||||
imagewbmp($new_image, $new_file);
|
|
||||||
break;
|
|
||||||
case IMG_WEBP:
|
case IMG_WEBP:
|
||||||
imagewebp($new_image, $new_file);
|
imagewebp($new_image, $new_file);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -574,7 +574,6 @@ $bb_cfg['file_id_ext'] = [
|
||||||
4 => 'png',
|
4 => 'png',
|
||||||
5 => 'rar',
|
5 => 'rar',
|
||||||
6 => 'tar',
|
6 => 'tar',
|
||||||
// 7 => 'tiff',
|
|
||||||
8 => 'torrent',
|
8 => 'torrent',
|
||||||
9 => 'zip',
|
9 => 'zip',
|
||||||
10 => '7z',
|
10 => '7z',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue