$user_avatar = $avatarremoteurl;
/*--Added by Vitor Freitas in 02-12-2004--*/
/*--Check if the avatar have the correct dimensions--*/
list($avatar_width, $avatar_height) = @getimagesize($avatarremoteurl);
$avatar_result = $db->sql_query("SELECT config_name, config_value FROM ".$prefix."_bbconfig WHERE config_name IN ('avatar_max_width', 'avatar_max_height')");
while($avatar_row = $db->sql_fetchrow($avatar_result)) {
$board_config[$avatar_row['config_name']] = $avatar_row['config_value'];
}
if ( $avatar_width <= $board_config['avatar_max_width'] && $avatar_height <= $board_config['avatar_max_height'] ) {
$user_avatar = $avatarremoteurl;
}else{
include('header.php');
/*--Output a error message--*/
OpenTable();
/*--TODO: Move this to the LANG file--*/
echo '<center>The max allowed dimension for your avatar is: width = '.$board_config['avatar_max_width'].' pixels and height = '.$board_config['avatar_max_height'].' pixels<br><br>'._GOBACK.'<br><br></center>';
CloseTable();
include('footer.php');
exit;
}
/*--End Added by Vitor Freitas in 02-12-2004--*/
Alle Zeitangaben sind in GMT + 1 Stunden