diff --git a/install/sql/mysql.sql b/install/sql/mysql.sql index 6893dcdc..068a04de 100644 --- a/install/sql/mysql.sql +++ b/install/sql/mysql.sql @@ -633,9 +633,6 @@ INSERT INTO `bb_extensions` VALUES ('', '3', 'h', ''); INSERT INTO `bb_extensions` VALUES ('', '3', 'cpp', ''); INSERT INTO `bb_extensions` VALUES ('', '3', 'hpp', ''); INSERT INTO `bb_extensions` VALUES ('', '3', 'diz', ''); -INSERT INTO `bb_extensions` VALUES ('', '4', 'tif', ''); -INSERT INTO `bb_extensions` VALUES ('', '4', 'tiff', ''); -INSERT INTO `bb_extensions` VALUES ('', '4', 'tga', ''); INSERT INTO `bb_extensions` VALUES ('', '4', 'xls', ''); INSERT INTO `bb_extensions` VALUES ('', '4', 'doc', ''); INSERT INTO `bb_extensions` VALUES ('', '4', 'dot', ''); diff --git a/install/upgrade/changes.txt b/install/upgrade/changes.txt index 86f635a1..f90c7da4 100644 --- a/install/upgrade/changes.txt +++ b/install/upgrade/changes.txt @@ -119,3 +119,8 @@ ALTER TABLE `bb_bt_tracker` CHANGE `speed_up` `speed_up` int(11) unsigned NOT NU ALTER TABLE `bb_bt_tracker` CHANGE `speed_down` `speed_down` int(11) unsigned NOT NULL DEFAULT '0'; ALTER TABLE `bb_bt_tracker_snap` CHANGE `speed_up` `speed_up` int(11) unsigned NOT NULL DEFAULT '0'; ALTER TABLE `bb_bt_tracker_snap` CHANGE `speed_down` `speed_down` int(11) unsigned NOT NULL DEFAULT '0'; + +// 2.1.5 (LTS 2024.01) +DELETE FROM `bb_extensions` WHERE `extension` = 'tga'; +DELETE FROM `bb_extensions` WHERE `extension` = 'tif'; +DELETE FROM `bb_extensions` WHERE `extension` = 'tiff'; diff --git a/library/attach_mod/includes/functions_thumbs.php b/library/attach_mod/includes/functions_thumbs.php index a8b95634..3a24639f 100644 --- a/library/attach_mod/includes/functions_thumbs.php +++ b/library/attach_mod/includes/functions_thumbs.php @@ -62,19 +62,11 @@ 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: $new_type = ($format & IMG_PNG) ? IMG_PNG : 0; break; - case IMAGETYPE_BMP: - case IMAGETYPE_WBMP: - $new_type = ($format & IMG_WBMP) ? IMG_WBMP : 0; - break; } return array( @@ -142,9 +134,6 @@ function create_thumbnail($source, $new_file, $mimetype) case IMG_PNG: $image = imagecreatefrompng($source); break; - case IMG_WBMP: - $image = imagecreatefromwbmp($source); - break; } if ($type['version'] == 1 || !$attach_config['use_gd2']) @@ -169,9 +158,6 @@ function create_thumbnail($source, $new_file, $mimetype) case IMG_PNG: imagepng($new_image, $new_file); break; - case IMG_WBMP: - imagewbmp($new_image, $new_file); - break; } imagedestroy($new_image); diff --git a/library/config.php b/library/config.php index b36572d5..84265550 100644 --- a/library/config.php +++ b/library/config.php @@ -531,10 +531,9 @@ $bb_cfg['file_id_ext'] = array( 4 => 'png', 5 => 'rar', 6 => 'tar', -# 7 => 'tiff', 8 => 'torrent', 9 => 'zip', - 10 => '7z' + 999 => '7z' ); // Attachments