diff options
| author | Rubén Calvo <rubencm@gmail.com> | 2018-05-08 14:30:32 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-09 18:53:46 +0200 |
| commit | 65b0698ef703cef92723cc5f5adb08989179a47d (patch) | |
| tree | 04f8a06193c327a36c4dc8fa1264a3f5fdc36b8c /phpBB/includes/functions_content.php | |
| parent | 9e3141d9d3a26ed84a08730b3a36b6e75317b7e1 (diff) | |
| download | forums-65b0698ef703cef92723cc5f5adb08989179a47d.tar forums-65b0698ef703cef92723cc5f5adb08989179a47d.tar.gz forums-65b0698ef703cef92723cc5f5adb08989179a47d.tar.bz2 forums-65b0698ef703cef92723cc5f5adb08989179a47d.tar.xz forums-65b0698ef703cef92723cc5f5adb08989179a47d.zip | |
[ticket/15663] Remove flash attachments support
PHPBB3-15663
Diffstat (limited to 'phpBB/includes/functions_content.php')
| -rw-r--r-- | phpBB/includes/functions_content.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index a15a03f966..05e9233240 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -1245,11 +1245,6 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count_a $display_cat = ATTACHMENT_CATEGORY_NONE; } - if ($display_cat == ATTACHMENT_CATEGORY_FLASH && !$user->optionget('viewflash')) - { - $display_cat = ATTACHMENT_CATEGORY_NONE; - } - $download_link = append_sid("{$phpbb_root_path}download/file.$phpEx", 'id=' . $attachment['attach_id']); $l_downloaded_viewed = 'VIEWED_COUNTS'; @@ -1281,21 +1276,6 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count_a $update_count_ary[] = $attachment['attach_id']; break; - // Macromedia Flash Files - case ATTACHMENT_CATEGORY_FLASH: - list($width, $height) = @getimagesize($filename); - - $block_array += array( - 'S_FLASH_FILE' => true, - 'WIDTH' => $width, - 'HEIGHT' => $height, - 'U_VIEW_LINK' => $download_link . '&view=1', - ); - - // Viewed/Heared File ... update the download count - $update_count_ary[] = $attachment['attach_id']; - break; - default: $l_downloaded_viewed = 'DOWNLOAD_COUNTS'; |
