Revision 1599
Added by Dietmar almost 13 years ago
signup2.php | ||
---|---|---|
22 | 22 |
// require_once(WB_PATH.'/framework/class.wb.php'); |
23 | 23 |
$wb = new wb('Start', 'start', false, false); |
24 | 24 |
|
25 |
$page_id = (!empty($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0); |
|
26 |
$_SESSION['PAGE_LINK'] = get_page_link( $page_id ); |
|
27 |
$_SESSION['HTTP_REFERER'] = (($_SESSION['PAGE_LINK']!='') ? page_link($_SESSION['PAGE_LINK']) : WB_URL); |
|
28 |
|
|
29 | 25 |
// Get details entered |
30 | 26 |
$groups_id = FRONTEND_SIGNUP; |
31 | 27 |
$active = 1; |
... | ... | |
123 | 119 |
$mail_message = str_replace($search, $replace, $MESSAGE['SIGNUP2']['BODY_LOGIN_INFO']); |
124 | 120 |
|
125 | 121 |
// Try sending the email |
126 |
if($wb->mail(SERVER_EMAIL,$mail_to,$mail_subject,$mail_message)) {
|
|
122 |
if($wb->mail(SERVER_EMAIL,$mail_to,$mail_subject,$mail_message)) { |
|
127 | 123 |
$display_form = false; |
128 | 124 |
$wb->print_success($MESSAGE['FORGOT_PASS']['PASSWORD_RESET'], WB_URL.'/account/login.php' ); |
129 | 125 |
} else { |
Also available in: Unified diff
update all used files with redirect_url to $_SESSION['HTTP_REFERER']