. require_once('../inc/db.inc'); require_once('../inc/util.inc'); require_once('../inc/countries.inc'); require_once('../inc/translation.inc'); require_once('../inc/recaptchalib.php'); check_get_args(array("next_url", "teamid")); $next_url = sanitize_local_url(get_str('next_url', true)); if (defined('SECURE_URL_BASE') && strstr(SECURE_URL_BASE, "https://") && !$_SERVER['HTTPS'] ) { Header("Location: ".SECURE_URL_BASE."/create_account_form.php?next_url=$next_url"); exit; } page_head(tra("Create an account")); $config = get_config(); if (parse_bool($config, "disable_account_creation")) { echo "

".tra("Account creation is disabled")."

".tra("Account creation is currently disabled. Please try again later.")."

"; page_tail(); exit(); } $wac = parse_bool($config, "web_account_creation"); if (!$wac) { echo "

".tra("NOTE: If you use the BOINC Manager, don't use this form. Just run BOINC, select Add Project, and enter an email address and password.")."

"; } echo "

"; $teamid = get_int("teamid", true); if ($teamid) { $team = lookup_team($teamid); $user = lookup_user_id($team->userid); if (!$user) { echo "No such user"; } else { echo "".tra("This account will belong to the team %1 and will have the project preferences of its founder.", "id\">$team->name")."

"; echo " "; } } start_table(); // Using invitation codes to restrict access? // if(defined('INVITE_CODES')) { row2( tra("Invitation Code")."
".tra("A valid invitation code is required to create an account.")."", "" ); } row2( tra("Name")."
".tra("Identifies you on our web site. Use your real name or a nickname.")."", "" ); row2( tra("Email Address")."
".tra("Must be a valid address of the form 'name@domain'.")."", "" ); $min_passwd_length = parse_element($config, ""); if (!$min_passwd_length) { $min_passwd_length = 6; } row2( tra("Password") ."
".tra("Must be at least %1 characters", $min_passwd_length)."", "" ); row2(tra("Confirm password"), ""); row2_init( tra("Country")."
".tra("Select the country you want to represent, if any.")."", "\n"; row2( tra("Postal or ZIP Code")."
".tra("Optional")."", "" ); // Check if we need reCaptcha for making more safe the creation of accounts $publickey = parse_config($config, ""); if ($publickey) { row2( tra("Please enter the words shown in the image"), recaptcha_get_html($publickey) ); } row2("", "" ); end_table(); echo " "; $cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit page_tail(); ?>