http://gamania.idv.tw/
代碼: 選擇全部
OPEN
代碼: ‹ 選擇 ›
admin/admin_users.php
FIND
代碼: ‹ 選擇 ›
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . "<br>" . $lang['Wrong_remote_avatar_format'] : $lang['Wrong_remote_avatar_format'];
}
AFTER, ADD
代碼: ‹ 選擇 › ‹ 收起 ›
list($width, $height) = @getimagesize($user_avatar_remoteurl);
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;
}
$filehandle = @fopen($user_avatar_remoteurl, 'rb');
$filedata = @fread($filehandle, ($board_config['avatar_filesize'] + 1));
@fclose($filehandle);
$avatar_filesize = strlen($filedata);
if( !$error && ($avatar_filesize <0> $board_config['avatar_filesize']) )
{
$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;
}
OPEN
代碼: ‹ 選擇 ›
includes/usercp_avatar.php
FIND
n
代碼: ‹ 選擇 ›
function user_avatar_url($mode, &$error, &$error_msg, $avatar_filename)
{
AFTER, ADD
代碼: ‹ 選擇 ›
global $board_config, $lang;
FIND
代碼: ‹ 選擇 ›
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br>' . $lang['Wrong_remote_avatar_format'] : $lang['Wrong_remote_avatar_format'];
return;
}
AFTER, ADD
代碼: ‹ 選擇 › ‹ 收起 ›
list($width, $height) = @getimagesize($avatar_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;
}
$filehandle = @fopen($avatar_filename, 'rb');
$filedata = @fread($filehandle, ($board_config['avatar_filesize'] + 1));
@fclose($filehandle);
$avatar_filesize = strlen($filedata);
if( !$error && ($avatar_filesize <0> $board_config['avatar_filesize']) )
{
$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;
}