getThemeIdFromName(forge_get_config('default_theme')); } if (getStringFromRequest('submit')) { /* Adding call to library rather than logic that used to be coded in this page */ if (!form_key_is_valid(getStringFromRequest('form_key'))) { exit_form_double_submit('my'); } if ($GLOBALS['sys_require_accept_conditions'] && ! $accept_conditions) { $warning_msg = _("You can't register an account unless you accept the terms of use.") ; } else { $new_user = new GFUser(); $register = $new_user->create($unix_name,$firstname,$lastname,$password1,$password2, $email,$mail_site,$mail_va,$language_id,$timezone,$jabber_address,$jabber_only,$theme_id,'', $address,$address2,$phone,$fax,$title,$ccode); if ($register) { echo $HTML->header(array('title'=>'Register Confirmation')); printf(_('
Congratulations. You have registered on %1$s.
You are now being sent a confirmation email to verify your email address. Visiting the link sent to you in this email will activate your account.'), forge_get_config ('forge_name')); echo $HTML->footer(array()); exit; } else { $error_msg = $new_user->getErrorMessage(); } } } $HTML->header(array('title'=>'User Account Registration')); if (!empty($error_msg)) print "