Changeset 12885 for trunk/register.php
- Timestamp:
- Jan 14, 2012, 2:08:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/register.php
r12883 r12885 61 61 { 62 62 // email notification 63 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 64 65 $keyargs_content = array( 66 get_l10n_args('Hello %s,', $_POST['login']), 67 get_l10n_args('Thank you for registering at %s!', $conf['gallery_title']), 68 get_l10n_args('', ''), 69 get_l10n_args('Here is your password: %s', $_POST['password']), 70 get_l10n_args('', ''), 71 get_l10n_args('If you think you\'ve received this email in error, please contact us at %s', get_webmaster_mail_address()), 72 ); 73 74 pwg_mail( 75 $_POST['mail_address'], 76 array( 77 'subject' => '['.$conf['gallery_title'].'] '.l10n('Registration'), 78 'content' => l10n_args($keyargs_content), 79 'content_format' => 'text/plain', 80 ) 81 ); 63 if (isset($_POST['send_password_by_mail']) and isset($_POST['mail_address'])) 64 { 65 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 66 67 $keyargs_content = array( 68 get_l10n_args('Hello %s,', $_POST['login']), 69 get_l10n_args('Thank you for registering at %s!', $conf['gallery_title']), 70 get_l10n_args('', ''), 71 get_l10n_args('Here is your password: %s', $_POST['password']), 72 get_l10n_args('', ''), 73 get_l10n_args('If you think you\'ve received this email in error, please contact us at %s', get_webmaster_mail_address()), 74 ); 75 76 pwg_mail( 77 $_POST['mail_address'], 78 array( 79 'subject' => '['.$conf['gallery_title'].'] '.l10n('Registration'), 80 'content' => l10n_args($keyargs_content), 81 'content_format' => 'text/plain', 82 ) 83 ); 84 85 $_SESSION['page_infos'][] = l10n('Successfully registered, an email with your password has been sent to you. Welcome!'); 86 } 82 87 83 88 // log user and redirect 84 89 $user_id = get_userid($_POST['login']); 85 90 log_user($user_id, false); 86 $_SESSION['page_infos'][] = l10n('Successfully registered, an email with your password has been sent to you. Welcome!');87 91 redirect(make_index_url()); 88 92 }
Note: See TracChangeset
for help on using the changeset viewer.