Exemplo n.º 1
0
}
$username = trim($username);
######################################
###### DISPLAY NAME CHECK ############
if ($displaynameError = AccountsRegister::checkDisplayname($displayName)) {
    $ERRORS->Add($displaynameError);
}
######################################
######## PASSWORD CHECK ##############
if ($passwordError = AccountsRegister::checkPassword($password, $password2)) {
    $ERRORS->Add($passwordError);
}
$password = trim($password);
######################################
######### EMAIL CHECK ################
if ($emailError = AccountsRegister::checkEmail($email)) {
    $ERRORS->Add($emailError);
} else {
    //check for reservation
    if (EmailReservations::IsReserved(array('email' => $email)) === true) {
        $ERRORS->Add('The e-mail address is reserved.');
    }
}
$email = trim($email);
######################################
######### BIRTHDAY Check #############
//validate the Month
if ($birthdayMonthError = AccountsRegister::checkBirthdayMonth($birthdayMonth)) {
    $ERRORS->Add($birthdayMonthError);
}
//validate the Day