Project

General

Profile

« Previous | Next » 

Revision 1425

Added by Dietmar almost 14 years ago

redefined wrong admin backlinks

View differences:

signup2.php
32 32
$display_name = strip_tags($wb->get_post_escaped('display_name'));
33 33
$email = $wb->get_post('email');
34 34

  
35
// Create a javascript back link
36
$js_back = WB_URL.'/account/signup.php';
37

  
35 38
if (!$wb->checkFTAN())
36 39
{
37
	$wb->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], WB_URL);
40
	$wb->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], $js_back, false);
38 41
	exit();
39 42
}
40 43

  
41
// Create a javascript back link
42
$js_back = "javascript: history.go(-1);";
43

  
44 44
// Check values
45 45
if($groups_id == "") {
46 46
	$wb->print_error($MESSAGE['USERS']['NO_GROUP'], $js_back, false);
......
123 123
	// Try sending the email
124 124
	if($wb->mail(SERVER_EMAIL,$mail_to,$mail_subject,$mail_message)) { 
125 125
		$display_form = false;
126
		$wb->print_success($MESSAGE['FORGOT_PASS']['PASSWORD_RESET'], WB_URL.'/account/login.php');
126
		$wb->print_success($MESSAGE['FORGOT_PASS']['PASSWORD_RESET'], WB_URL.'/account/login.php' );
127 127
	} else {
128 128
		$database->query("DELETE FROM ".TABLE_PREFIX."users WHERE username = '$username'");
129 129
		$wb->print_error($MESSAGE['FORGOT_PASS']['CANNOT_EMAIL'], $js_back, false);

Also available in: Unified diff