Exemplo n.º 1
0
$dayLen = strlen($birthdayDay);
if ($dayLen >= 1 and $dayLen <= 2 and ($birthdayDay >= 1 and $birthdayDay <= 31)) {
    if ($dayLen == 1) {
        $birthdayDay = '0' . $birthdayDay;
    }
}
//merge the birthday
$birthday = $birthdayMonth . '/' . $birthdayDay . '/' . $birthdayYear;
######################################
######### Country Check ##############
if ($countryError = AccountsRegister::checkCountry($country)) {
    $ERRORS->Add($countryError);
}
######################################
## Secret Question & Answer Check ####
if ($secretQuestionError = AccountsRegister::checkSecretQuestion($secretQuestion)) {
    $ERRORS->Add($secretQuestionError);
}
if ($secretAnswerError = AccountsRegister::checkSecretAnswer($secretAnswer)) {
    $ERRORS->Add($secretAnswerError);
}
$secretAnswer = trim($secretAnswer);
######################################
######### Text Captcha Check #########
/*
if ($CaptchaResponseField = $captcha->GetResponseFieldName())
{
	$CaptchaResponse = isset($_POST[$CaptchaResponseField]) ? $_POST[$CaptchaResponseField] : false;
	//check if it was filled in
	if (!$CaptchaResponse)
	{