Changeset 700
- Timestamp:
- 10/23/07 20:34:14 (1 year ago)
- Files:
-
- admin-add-user/trunk/admin-add-user.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
admin-add-user/trunk/admin-add-user.php
r319 r700 2 2 /** 3 3 * Plugin Name: Admin add user 4 * Plugin Description: Allows Admins to add user through the Administration Panel.4 * Plugin Description: Allows Keymasters to add user through the administration panel. 5 5 * Author: Thomas Klaiber 6 * Author URI: http:// www.la-school.com7 * Plugin URI: http:// bbpress.org/plugins/topic/298 * Version: 1. 16 * Author URI: http://thomasklaiber.com/ 7 * Plugin URI: http://thomasklaiber.com/bbpress/admin-add-user/ 8 * Version: 1.2 9 9 */ 10 10 … … 50 50 $user_id = $bbdb->insert_id; 51 51 bb_update_usermeta( $user_id, $bb_table_prefix . 'capabilities', array('member' => true) ); 52 53 if ($_POST['user_send_email']) : 54 // why doesn't this work? 55 // bb_send_pass( $user_id, $password ); 56 57 $message = __("Your username is: %1\$s \nYour password is: %2\$s \nYou can now log in: %3\$s \n\nEnjoy!"); 58 59 bb_mail( 60 bb_get_user_email( $user_id ), 61 bb_get_option('name') . ': ' . __('Password'), 62 sprintf( $message, "$user_login", "$password", bb_get_option('uri') ) 63 ); 64 endif; 52 65 53 66 do_action('bb_admin_new_user', $user_id, $password); … … 59 72 $_POST['user_email'] = ""; 60 73 $_POST['user_url'] = ""; 74 $_POST['user_send_email'] = ""; 61 75 endif; 62 76 … … 110 124 <input name="pass2" type="password" /></td> 111 125 </tr> 126 127 <tr> 128 <th scope="row"><? _e('Send Email') ?>:</th> 129 <td><label><input name="user_send_email" type="checkbox" value="1" /> <? _e('Notify about registration.') ?></label></td> 130 </tr> 112 131 </table> 113 132 <p class="submit">
