mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Updated
This commit is contained in:
parent
98878baa0d
commit
45f9349056
@ -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', '');
|
||||
|
@ -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';
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user