From e968fede2e5b91868b64d2e7af37c8e4df07fbdc Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 24 Jul 2006 14:52:39 +0000 Subject: Removed wp-register.php (again?) and changed register links to wp-signup.php (http://mu.wordpress.org/forums/topic.php?id=1491&replies=27#post-8303) git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@705 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-register.php | 159 -------------------------------------------------------- 1 file changed, 159 deletions(-) delete mode 100644 wp-register.php (limited to 'wp-register.php') diff --git a/wp-register.php b/wp-register.php deleted file mode 100644 index 7c8adb3..0000000 --- a/wp-register.php +++ /dev/null @@ -1,159 +0,0 @@ -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.'); - $user_email = ''; - } - - if ( ! validate_username($user_login) ) { - $errors['user_login'] = __('ERROR: This username is invalid. Please enter a valid username.'); - $user_login = ''; - } - - if ( username_exists( $user_login ) ) - $errors['user_login'] = __('ERROR: This username is already registered, please choose another one.'); - - if ( email_exists( $user_email ) ) - $errors['user_email'] = __('ERROR: This email 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) ) { - - ?> - - - - WordPress » <?php _e('Registration Complete') ?> - - - - - - -
-

-

" . wp_specialchars($user_login) . "") ?>
- ' . __('emailed to you') . '') ?>
- " . wp_specialchars($user_email) . "") ?>

-

-
- - - - - - - - WordPress » <?php _e('Registration Form') ?> - - - - - - -
-

WordPress

-

- -
-

- "; - ?> -

-
- -
-

-

-


-

-

-
- -
- - - - - - - - WordPress » <?php _e('Registration Currently Disabled') ?> - - - - - - -
-

-


- -

-
- - - - - -- cgit