von ibuerfei » 17. Mai 2006 13:43
hm, das neue file gibt im ff und ie immer folgenden fehler wenn man ein bild ändern will ( auch das eigene ):
$profilepic_new_width, $profilepic_new_height) : @imagecreatetruecolor($profilepic_new_width, $profilepic_new_height); $profilepic_resize = ($gd_version < 2) ? 'imagecopyresized' : 'imagecopyresampled'; @$profilepic_resize($profilepic_temp, $profilepic_full, 0, 0, 0, 0, $profilepic_new_width, $profilepic_new_height, $profilepic_width, $profilepic_height); // Save $quality = $profilepic_quality; @imagejpeg($profilepic_temp, $phpbb_root_path.'images/userprofile_pics/thumbnails/'.$profilepic_file, $quality); @chmod($phpbb_root_path.'images/userprofile_pics/thumbnails/'.$profilepic_file, 0777); } else { @unlink($phpbb_root_path.'images/userprofile_pics/thumbnails/'.$profilepic_file); } @unlink($phpbb_root_path.'images/userprofile_pics/temp_'.$profilepic_file); } else { $error_msg .= sprintf($lang['Profilepic_imagetype_error'] , $pp_error_msg); $error = true; } } // Kill if ($HTTP_POST_VARS['profilepicdel']) { (!$profilepic_file) ? $profilepic_file = md5($userdata['user_id']).'.jpeg' : ''; @unlink($phpbb_root_path.'images/userprofile_pics/'.$profilepic_file); @unlink($phpbb_root_path.'images/userprofile_pics/thumbnails/'.$profilepic_file); } // Make avatar if ($HTTP_POST_VARS['profilepicasavatar']) { (!$profilepic_file) ? $profilepic_file = md5($userdata['user_id']).'.jpeg' : ''; if (!is_file($phpbb_root_path.'images/userprofile_pics/'.$profilepic_file)) { $error_msg .= 'Du hast kein Profilbild aus dem ein Avatar erstellt werden könnte!'; $error = true; } else { $profilepic_data = getimagesize($phpbb_root_path.'images/userprofile_pics/'.$profilepic_file); $profilepic_width = $profilepic_data[0]; $profilepic_height = $profilepic_data[1]; $profilepic_max_width = $board_config['avatar_max_width']; $profilepic_max_height = $board_config['avatar_max_height']; if ( $profilepic_width > $profilepic_max_width || $profilepic_height > $profilepic_max_height ) { // Calculate list ($profilepic_new_width, $profilepic_new_height) = CalculateImageSize($profilepic_width, $profilepic_height, $profilepic_max_width, $profilepic_max_height); // Create $profilepic_full = @imagecreatefromjpeg($phpbb_root_path.'images/userprofile_pics/'.$profilepic_file); $profilepic_temp = ($gd_version < 2) ? @imagecreate($profilepic_new_width, $profilepic_new_height) : @imagecreatetruecolor($profilepic_new_width, $profilepic_new_height); $profilepic_resize = ($gd_version < 2) ? 'imagecopyresized' : 'imagecopyresampled'; @$profilepic_resize($profilepic_temp, $profilepic_full, 0, 0, 0, 0, $profilepic_new_width, $profilepic_new_height, $profilepic_width, $profilepic_height); // Save $quality = $profilepic_quality; @imagejpeg($profilepic_temp, $phpbb_root_path.$board_config['avatar_path'].'/'.$profilepic_file, $quality); @chmod($phpbb_root_path.$board_config['avatar_path'].'/'.$profilepic_file, 0777); } $sql = "UPDATE " . USERS_TABLE . " SET user_avatar_type = 1, user_avatar = '" . $profilepic_file . "' WHERE user_id = $user_id"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql); } } } ?>d_config['profilepic_thumb_width']; $profilepic_max_height = $board_config['profilepic_thumb_height']; $profilepic_full = is_file($phpbb_root_path.'images/userprofile_pics/temp_'.$profilepic_file) ? $phpbb_root_path.'images/userprofile_pics/temp_'.$profilepic_file : $phpbb_root_path.'images/userprofile_pics/'.$profilepic_file; if ( $profilepic_width > $profilepic_max_width || $profilepic_height > $profilepic_max_height ) { // Calculate list ($profilepic_new_width, $profilepic_new_height) = CalculateImageSize($profilepic_width, $profilepic_height, $profilepic_max_width, $profilepic_max_height); // Create $read_function = 'imagecreatefrom'.$profilepic_type; $profilepic_full = @$read_function($profilepic_full); $profilepic_temp = ($gd_version < 2) ? @imagecreate(