' . $_POST['notice'] . '.

'; ?>

add('empty_password', __('ERROR: Please enter a password.', 'regplus')); }elseif($_POST['pass1'] !== $_POST['pass2']){ $errors->add('password_mismatch', __('ERROR: Your password does not match.', 'regplus')); }elseif(strlen($_POST['pass1'])<6){ $errors->add('password_length', __('ERROR: Your password must be at least 6 characters in length.', 'regplus')); }else{ $_POST['user_pw'] = $_POST['pass1']; } } if ( get_option('regplus_code') ){ if(empty($_POST['regcode']) || $_POST['regcode'] == ''){ $errors->add('empty_regcode', __('ERROR: Please enter the Invitation Code.', 'regplus')); }elseif( $_POST['regcode'] != get_option('regplus_codepass') ){ $errors->add('regcode_mismatch', __('ERROR: Your Invitation Code is incorrect.', 'regplus')); } } if ( get_option('regplus_captcha') ){ $key=substr($_SESSION['key'],0,5); $number = $_POST['captcha']; if($number!=$key){ $errors->add('captcha_mismatch', __('ERROR: Image Validation does not match.', 'regplus')); } } return $errors; } # Add Fields to Register Form function RegForm(){ if ( get_option('regplus_password') ){ ?>





user_login); $user_email = stripslashes($user->user_email); $message = sprintf(__('New user Register on your blog %s:'), get_option('blogname')) . "\r\n\r\n"; $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n"; @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Register'), get_option('blogname')), $message); if ( empty($plaintext_pass) ) return; $message = sprintf(__('Username: %s'), $user_login) . "\r\n"; $message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n"; $message .= get_option('siteurl') . "/wp-login.php\r\n"; wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_option('blogname')), $message); } endif; ?>