From 27fc215914287ce0cb7e242b211d1857d2371d51 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 4 Oct 2007 15:09:42 +0000 Subject: ups, seems i really forgot to change this. :) git-svn-id: file:///svn/phpbb/trunk@8136 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/download/file.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'phpBB') diff --git a/phpBB/download/file.php b/phpBB/download/file.php index f02de8055a..ad2abf880e 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -1,10 +1,10 @@ sql_close(); exit; } - + send_avatar_to_browser(($avatar_group ? 'g' : '') . $filename . '.' . $ext); - + if (!empty($cache)) { $cache->unload(); @@ -149,7 +149,7 @@ else { if (!$attachment['in_message']) { - // + // $sql = 'SELECT p.forum_id, f.forum_password, f.parent_id FROM ' . POSTS_TABLE . ' p, ' . FORUMS_TABLE . ' f WHERE p.post_id = ' . $attachment['post_msg_id'] . ' @@ -231,8 +231,8 @@ if ($thumbnail) else if (($display_cat == ATTACHMENT_CATEGORY_NONE || $display_cat == ATTACHMENT_CATEGORY_IMAGE) && !$attachment['is_orphan']) { // Update download count - $sql = 'UPDATE ' . ATTACHMENTS_TABLE . ' - SET download_count = download_count + 1 + $sql = 'UPDATE ' . ATTACHMENTS_TABLE . ' + SET download_count = download_count + 1 WHERE attach_id = ' . $attachment['attach_id']; $db->sql_query($sql); } @@ -271,7 +271,7 @@ function send_avatar_to_browser($file) { global $config, $phpbb_root_path; - $prefix = $config['avatar_salt'] . '_'; + $prefix = $config['avatar_salt'] . '_'; $image_dir = $config['avatar_path']; // worst-case default @@ -428,7 +428,7 @@ function send_file_to_browser($attachment, $upload_dir, $category) // Send out the Headers. Do not set Content-Disposition to inline please, it is a security measure for users using the Internet Explorer. header('Content-Type: ' . $attachment['mimetype']); - + if (empty($user->browser) || (strpos(strtolower($user->browser), 'msie') !== false)) { header('Content-Disposition: attachment; ' . header_filename(htmlspecialchars_decode($attachment['real_filename']))); -- cgit v1.2.1