_ form fields, for example a bunch of checkboxes if custom type is set to "5" $custom_field_sub_value = getval("custom" . $n . "_" . $i, ""); if ($custom_field_sub_value == "") { continue; } $custom_field_sub_value_list .= ($custom_field_sub_value_list == "" ? "" : ", ") . $custom_field_sub_value; # we have found a sub value so append to the list } if ($custom_field_sub_value_list != "") { # We found sub values, append with list of all sub values found $customContents .= i18n_get_translated($custom[$n]) . ": " . i18n_get_translated($custom_field_sub_value_list) . "\n\n"; } elseif ($custom_field_value != "") { # If no sub values found then treat as normal field, there is a value so append it $customContents .= i18n_get_translated($custom[$n]) . ": " . i18n_get_translated($custom_field_value) . "\n\n"; } elseif (isset($required) && in_array($custom[$n], $required)) { # If the field was mandatory and a value or sub value(s) not set then we return false $missingFields[] = $custom[$n]; } } } $spamcode = getval("antispamcode", ""); $usercode = getval("antispam", ""); $spamtime = getval("antispamtime", 0); if (!empty($missingFields)) { $error = $lang["requiredfields"] . '

' . i18n_get_translated(implode(', ', $missingFields)); } # Check the anti-spam time is recent elseif (getval("antispamtime", 0) < (time() - 180) || getval("antispamtime", 0) > time()) { $error = $lang["expiredantispam"]; } # Check the anti-spam code is correct elseif (!hook('replaceantispam_check') && !verify_antispam($spamcode, $usercode, $spamtime)) { $error = $lang["requiredantispam"]; } # Check the email is valid elseif (filter_var($user_email, FILTER_VALIDATE_EMAIL) === false) { $error = $lang["error_invalid_email"]; } # Check that the e-mail address doesn't already exist in the system elseif (getval("login_opt_in", "") != "yes" && $user_registration_opt_in) { $error = $lang["error_user_registration_opt_in"]; } else { # E-mail is unique if ($user_account_auto_creation) { # Automatically create a new user account $success = auto_create_user_account(md5($usercode . $spamtime)); if ($success !== true) { // send an email about the user request $account_email_exists_notify = true; // Email to admins to explain account with existing email was requested. $success = email_user_request(); } } else { $account_email_exists_notify = user_email_exists($user_email); $success = email_user_request(); } if ($success !== true) { $error = $success; } else { $completed = true; } } } include "../include/header.php"; include "../include/login_background.php"; ?>

">
indicating sub field number ?>
value="">
" />

*