if ($userdata['user_avatar'] != "" ) {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
}
echo "</td>