Changeset 2437 for trunk/wp-register.php
- Timestamp:
- 03/13/2005 05:06:18 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-register.php
r2321 r2437 29 29 $user_email = $_POST['user_email']; 30 30 31 /* checking loginhas been typed */31 /* checking that username has been typed */ 32 32 if ($user_login == '') { 33 die (__('<strong>ERROR</strong>: Please enter a login.'));33 die (__('<strong>ERROR</strong>: Please enter a username.')); 34 34 } 35 35 … … 41 41 } 42 42 43 /* checking the loginisn't already used by another user */43 /* checking the username isn't already used by another user */ 44 44 $result = $wpdb->get_results("SELECT user_login FROM $wpdb->users WHERE user_login = '$user_login'"); 45 45 if (count($result) >= 1) { 46 die (__('<strong>ERROR</strong>: This loginis already registered, please choose another one.'));46 die (__('<strong>ERROR</strong>: This username is already registered, please choose another one.')); 47 47 } 48 48 … … 74 74 } 75 75 76 $message = __('Login') . ": $user_login\r\n";77 $message .= __('Password') . ": $password\r\n";76 $message = sprintf(__('Username: %s'), $user_login) . "\r\n"; 77 $message .= sprintf(__('Password: %s'), $password) . "\r\n"; 78 78 $message .= get_settings('siteurl') . '/wp-login.php'; 79 79 80 wp_mail($user_email, sprintf(__("[%s] Your login information"), get_settings('blogname')), $message);80 wp_mail($user_email, sprintf(__("[%s] Your username and password"), get_settings('blogname')), $message); 81 81 82 $message = sprintf(__("New user registration on your blog %1\$s:\n\n Login: %2\$s \n\nE-mail: %3\$s"), get_settings('blogname'), $user_login, $user_email);82 $message = sprintf(__("New user registration on your blog %1\$s:\n\nUsername: %2\$s \n\nE-mail: %3\$s"), get_settings('blogname'), $user_login, $user_email); 83 83 84 84 @wp_mail(get_settings('admin_email'), sprintf(__('[%s] New User Registration'), get_settings('blogname')), $message); … … 101 101 <div id="login"> 102 102 <h2><?php _e('Registration Complete') ?></h2> 103 <p><?php _e('Login:') ?> <strong><?php echo $user_login; ?></strong><br />104 <?php _e('Password:') ?> <strong>emailed to you</strong><br />105 <?php _e('E-mail:') ?> <strong><?php echo $user_email; ?></strong></p>103 <p><?php printf(__('Username: %s'), "<strong>$user_login</strong>") ?><br /> 104 <?php printf(__('Password: %s'), '<strong>' . __('emailed to you') . '</strong>') ?> <br /> 105 <?php printf(__('E-mail: %s'), "<strong>$user_email</strong>") ?></p> 106 106 <p class="submit"><a href="wp-login.php"><?php _e('Login'); ?> »</a></p> 107 107 </div> … … 161 161 <form method="post" action="wp-register.php" id="registerform"> 162 162 <p><input type="hidden" name="action" value="register" /> 163 <label for="user_login"><?php _e(' Login:') ?></label><br /> <input type="text" name="user_login" id="user_login" size="20" maxlength="20" /><br /></p>164 <p><label for="user_email"><?php _e('E-mail ') ?></label>:<br /> <input type="text" name="user_email" id="user_email" size="25" maxlength="100" /></p>163 <label for="user_login"><?php _e('Username:') ?></label><br /> <input type="text" name="user_login" id="user_login" size="20" maxlength="20" /><br /></p> 164 <p><label for="user_email"><?php _e('E-mail:') ?></label><br /> <input type="text" name="user_email" id="user_email" size="25" maxlength="100" /></p> 165 165 <p>A password will be emailed to you.</p> 166 166 <p class="submit"><input type="submit" value="<?php _e('Register') ?> »" id="submit" name="submit" /></p>
Note: See TracChangeset
for help on using the changeset viewer.