I don't know if it comes from here anyway there is a quite important bug in ubb_lib.cgi :
sub RPGCheckNew {
...
&WriteMemberProfile($number, , @profile);
...
} # end RPGCheckNew
and in ubb_new_topic.cgi :
@user_profile = &RPGCheckNew($user_number, @user_profile);
...
&WriteMemberProfile($user_number, @user_profile);
As a result it writes member pofile twice... bad for performance, security and can cause corruption depending on lock system.