Revision 1792
Added by Luisehahne over 12 years ago
save_signup.php | ||
---|---|---|
117 | 117 |
msgQueue::add($MESSAGE['LOGIN_USERNAME_BLANK']); |
118 | 118 |
} |
119 | 119 |
|
120 |
if($wb->get_session('DISPLAY_NAME') != "") { |
|
121 |
// $aErrorMsg[] = $MESSAGE['GENERIC_FILL_IN_ALL']; |
|
122 |
msgQueue::add($MESSAGE['GENERIC_FILL_IN_ALL']); |
|
123 |
} |
|
124 |
|
|
125 | 120 |
if($wb->get_session('EMAIL') != "") { |
126 | 121 |
// Check if the email already exists |
127 | 122 |
$sql = 'SELECT `user_id` FROM `'.TABLE_PREFIX.'users` WHERE `email` = \''.$_SESSION['EMAIL'].'\''; |
... | ... | |
138 | 133 |
msgQueue::add($MESSAGE['SIGNUP_NO_EMAIL']); |
139 | 134 |
} |
140 | 135 |
|
136 |
if($wb->get_session('DISPLAY_NAME') == "") { |
|
137 |
// $aErrorMsg[] = $MESSAGE['GENERIC_FILL_IN_ALL']; |
|
138 |
msgQueue::add($MESSAGE['GENERIC_FILL_IN_ALL'].' ('.$TEXT['DISPLAY_NAME'].')'); |
|
139 |
} |
|
140 |
|
|
141 | 141 |
if(CONFIRMED_REGISTRATION) { |
142 | 142 |
$iMinPassLength = 6; |
143 | 143 |
// receive password vars and calculate needed action |
... | ... | |
156 | 156 |
if($sNewPassword != $sNewPasswordRetyped) { |
157 | 157 |
msgQueue::add($MESSAGE['USERS_PASSWORD_MISMATCH']); |
158 | 158 |
} else { |
159 |
$pattern = '/[^'.$admin->password_chars.']/';
|
|
159 |
$pattern = '/[^'.$wb->password_chars.']/';
|
|
160 | 160 |
if (preg_match($pattern, $sNewPassword)) { |
161 | 161 |
msgQueue::add($MESSAGE['PREFERENCES_INVALID_CHARS']); |
162 | 162 |
}else { |
... | ... | |
210 | 210 |
// $sDisplayName = $_SESSION['DISPLAY_NAME']; |
211 | 211 |
$sDisplayName = $wb->add_slashes($_SESSION['DISPLAY_NAME']); |
212 | 212 |
$groups_id = FRONTEND_SIGNUP; |
213 |
$email_to = $_SESSION['email'];
|
|
213 |
$email_to = $_SESSION['EMAIL'];
|
|
214 | 214 |
|
215 | 215 |
// Delete outdated confirmation IDs |
216 | 216 |
deleteOutdatedConfirmations(); |
... | ... | |
227 | 227 |
} |
228 | 228 |
|
229 | 229 |
// Save new user |
230 |
$bSaveRegistration = true; |
|
231 | 230 |
|
232 | 231 |
$sql = 'INSERT INTO `'.TABLE_PREFIX.'users` SET '; |
233 | 232 |
$sql .= '`group_id` = \''.$groups_id.'\', '; |
... | ... | |
258 | 257 |
msgQueue::add($database->get_error()); |
259 | 258 |
} |
260 | 259 |
} else { |
260 |
$bSaveRegistration = true; |
|
261 | 261 |
msgQueue::add($MESSAGE['SIGNUP_NEW_USER'],true); |
262 | 262 |
|
263 | 263 |
include(dirname(__FILE__).'/signup_mails.php'); |
... | ... | |
270 | 270 |
} // end success $bSaveRegistration |
271 | 271 |
} |
272 | 272 |
} // end $_POST['action'] |
273 |
// if page_id lost |
|
274 |
$page_id = isset($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0; |
Also available in: Unified diff
! all changes in folder account, Signup with confirmation Mail
! frontend.css now included by account script