PHPBB版本 : 2.0.4
參考連結 : http://phpbb-tw.net/phpbb/viewtopic.php?t=19646
出現問題 : usercp_avatar.php第177句出現錯誤
代碼: 選擇全部
Parse error: parse error in /home/forum/includes/usercp_avatar.php on line 177
代碼: 選擇全部
case 'SIZE':
$l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024));
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $l_avatar_size : $l_avatar_size;
return;
break;
default:
unset ($height);
unset ($width);
list($width, $height) = getimagesize($tmp_filename);
if (!isset($width) or $width<=0) $width=2*$board_config['avatar_max_width'];
if (!isset($height) or $height<=0) $height=2*$board_config['avatar_max_height'];
@unlink($tmp_filename);
if ( $width > $board_config['avatar_max_width'] || $height > $board_config['avatar_max_height'] )
{
$l_avatar_size = sprintf($lang['Avatar_imagesize'], $board_config['avatar_max_width'], $board_config['avatar_max_height']);
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $l_avatar_size : $l_avatar_size;
return;
}
}
}
return ( $mode == 'editprofile' ) ? ", user_avatar = '" . str_replace("\'", "''", $avatar_filename) . "', user_avatar_type = " . USER_AVATAR_REMOTE : '';
$l_avatar_size = sprintf($lang['Avatar_imagesize'], $board_config['avatar_max_width'], $board_config['avatar_max_height']);
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $l_avatar_size : $l_avatar_size;
return;
}
[color=red]}[/color] <======第177句了!!!
function user_avatar_upload($mode, $avatar_mode, &$current_avatar, &$current_type, &$error, &$error_msg, $avatar_filename, $avatar_realname, $avatar_filesize, $avatar_filetype)
{