ERROR: Please enter a username.'); /* checking e-mail address */ if ($user_email == '') { $errors['user_email'] = __('ERROR: Please type your e-mail address.'); } else if (!is_email($user_email)) { $errors['user_email'] = __('ERROR: The email address isn’t correct.'); } if ( username_exists( $user_login ) ) $errors['user_login'] = __('ERROR: This username is already registered, please choose another one.'); if ( 0 == count($errors) ) { $password = substr( md5( uniqid( microtime() ) ), 0, 7); $user_id = wp_create_user( $user_login, $password, $user_email ); if ( !$user_id ) $errors['user_id'] = sprintf(__('ERROR: Couldn’t register you... please contact the webmaster !'), get_settings('admin_email')); else wp_new_user_notification($user_id, $password); } if ( 0 == count($errors) ) { ?>
$user_login") ?>
' . __('emailed to you') . '') ?>
$user_email") ?>