function addAlternateEmail($get)
{
    $alternate = $get["email"];
    $user = $get["username"];
    if (empty($get["username"])) {
        return array("status" => false, "error" => "INVALID_PARAMETERS", "human_error" => "This function needs the parameter 'username' specified.");
    }
    $u = new UserFunctions();
    if ($u->getUsername() != $user) {
        return array("status" => false, "error" => "NOT_LOGGED_IN", "human_error" => "Sorry, you must be logged in to add an alternate email");
    }
    return $u->setAlternateEmail($alternate);
}