Example #1
0
<?php

require_once "header.php";
if (isset($_POST['register'])) {
    if (registerNewUser($_POST['username'], $_POST['password'], $_POST['password2'], $_POST['email'])) {
        echo "Thank you for registering, an email has been sent to your inbox, Please activate your account.\n\t\t<a href='./index.php'>Click here to login.</a>\n\t\t";
    } else {
        echo "Registration failed! Please try again.";
        show_registration_form();
    }
} else {
    // has not pressed the register button
    show_registration_form();
}
require_once "footer.php";
Example #2
0
function wp_eMember_registration_form_handler($atts)
{
    extract(shortcode_atts(array('level' => ''), $atts));
    return show_registration_form($level);
}
function print_eMember_registration_form()
{
    return show_registration_form();
}