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