passwd_hash != $passwd_hash) { xml_error(-137); } else { $authenticator = $user->authenticator; } } else { $authenticator = random_string(); $cross_project_id = random_string(); $now = time(); $query = "insert into user (create_time, email_addr, name, authenticator, expavg_time, send_email, show_hosts, cross_project_id, passwd_hash) values($now, '$email_addr', '$user_name', '$authenticator', unix_timestamp(), 1, 1, '$cross_project_id', '$passwd_hash')"; $result = mysql_query($query); if (!$result) { xml_error(-137); } if(defined('INVITE_CODES')) { error_log("New account '$new_name' created using invitation code '$invite_code'"); } } echo " \n"; echo " $authenticator\n"; echo "\n"; ?>