do_create();
} elseif ($action == 'reallycreate') {
    // actually create a new account
    do_reallycreate();
} elseif ($action == 'generate_token') {
    // generate a login token
    do_generate_token();
} elseif ($action == 'newsletter_subscribe') {
    do_newsletter_subscribe();
} elseif ($action == 'newsletter_unsubscribe') {
    do_newsletter_unsubscribe();
} else {
    // $action=='find'
    $email = get_http_var('email', '');
    if ($email) {
        do_find($email);
    } else {
        ?>
<h3>Look up account</h3>
<?php 
        emit_lookup_form();
    }
}
admPageFooter();
function do_find($email)
{
    ?>
<h3>Find users matching '<?php 
    echo htmlentities($email);
    ?>
'</h3>
function op_findall()
{
    if (!get_input_string('wanttype', 'Database field type', $wanttype)) {
        return;
    }
    write_debug("called op_findall({$wanttype})");
    do_find($wanttype);
}