Project

General

Profile

« Previous | Next » 

Revision 1635

Added by Dietmar over 12 years ago

fallback signuo2.php revision 1633

View differences:

signup2.php
42 42
if($groups_id == "") {
43 43
	$wb->print_error($MESSAGE['USERS_NO_GROUP'], $js_back, false);
44 44
}
45
if(!preg_match('/^[a-z]{1}[a-z0-9._-]{2,}$/i', $username)) {
45
if(!preg_match('/^[a-z]{1}[a-z0-9_-]{2,}$/i', $username)) {
46 46
	$wb->print_error( $MESSAGE['USERS_NAME_INVALID_CHARS'].' / '.
47 47
	                  $MESSAGE['USERS_USERNAME_TOO_SHORT'], $js_back);
48 48
}
......
113 113
} else {
114 114
	// Setup email to send
115 115
	$mail_to = $email;
116
	$mail_subject = $MESSAGE['SIGNUP2']['SUBJECT_LOGIN_INFO'];
116
	$mail_subject = $MESSAGE['SIGNUP2_SUBJECT_LOGIN_INFO'];
117 117

  
118 118
	// Replace placeholders from language variable with values
119 119
	$search = array('{LOGIN_DISPLAY_NAME}', '{LOGIN_WEBSITE_TITLE}', '{LOGIN_NAME}', '{LOGIN_PASSWORD}');

Also available in: Unified diff