Example #1
0
        $accountInfoStatus = FALSE;
        if (verifyEmail(trim($_POST["email"]))) {
            if (submitAccountInformation($_POST["fname"], $_POST["lname"], $_POST["duedate"], $_POST["status"], $_POST["address"], $_POST["city"], $_POST["state"], $_POST["zip"], preg_replace("/[^0-9]/", "", $_POST["phone"]), $_POST["email"], $_POST["notes"], $_POST["adminnotes"], $_POST["buttonMemberID"]) && submitEmergencyContactInformation($_POST["emergency_fname"], $_POST["emergency_lname"], preg_replace("/[^0-9]/", "", $_POST["emergency_phone"]), $_POST["emergency_relationship"], $_POST["buttonMemberID"])) {
                displayAccountForm("success", $us_state_abbrevs, $relationships);
                $accountInfoStatus = TRUE;
            } else {
                displayAccountForm("tech_diff", $us_state_abbrevs, $relationships);
            }
            if ($accountInfoStatus) {
                if (automatedPasswordReset()) {
                    displayPasswordForm("success_automated");
                } else {
                    displayPasswordForm("tech_diff_automated");
                }
            } else {
                displayPasswordForm("verify_account_info");
            }
        } else {
            displayAccountForm("fail", $us_state_abbrevs, $relationships);
        }
    }
}
// Create dropdown of states with user's state pre-selected
function createStateAbbrevOptions($us_state_abbrevs, $memberState)
{
    $stateAbbrevOptions;
    foreach ($us_state_abbrevs as &$stateAbbrev) {
        if ($stateAbbrev == $memberState) {
            $stateAbbrevOptions .= '<option value="' . $stateAbbrev . '" selected>' . $stateAbbrev . '</option>';
        } else {
            $stateAbbrevOptions .= '<option value="' . $stateAbbrev . '">' . $stateAbbrev . '</option>';
Example #2
0
        if (checkCurrentPassword($_SESSION['member_username'], $_POST["currentPassword"])) {
            if (checkNewPasswordMatch($_POST["newPassword1"], $_POST["newPassword2"])) {
                if (checkNewPasswordRequirements($_POST["newPassword1"])) {
                    if (submitPassword($_SESSION['member_username'], $_POST["newPassword1"])) {
                        displayPasswordForm("success");
                    } else {
                        displayPasswordForm("fail");
                    }
                } else {
                    displayPasswordForm("fail_new_password_requirements");
                }
            } else {
                displayPasswordForm("fail_new_password_match");
            }
        } else {
            displayPasswordForm("fail_current_password");
        }
    } else {
        displayPasswordForm("");
    }
}
?>
            </div>
        </div>
        <?php 
include "../../assets/virtual/footer_in.inc";
?>
    </body>
</html>