Project

General

Profile

« Previous | Next » 

Revision 1508

Added by Dietmar over 12 years ago

fixed print_error exit in frontend account

View differences:

login_form.php
21 21

  
22 22
$username_fieldname = 'username';
23 23
$password_fieldname = 'password';
24
	
24

  
25 25
if(defined('SMART_LOGIN') AND SMART_LOGIN == 'enabled') {
26 26
	// Generate username field name
27 27
	$username_fieldname = 'username_';
......
34 34
		$password_fieldname .= $temp[$i];
35 35
	}
36 36
}
37

  
38
$page_id = !empty($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0;
39
$_SESSION['PAGE_LINK'] = get_page_link( $page_id );
40
if(!file_exists($_SESSION['PAGE_LINK'])) {$_SESSION['PAGE_LINK'] = WB_URL.'/'; }
41
$thisApp->redirect_url = $_SESSION['HTTP_REFERER'] = page_link($_SESSION['PAGE_LINK']);
42

  
37 43
?>
44
<div style="margin: 1em auto;">
45
	<button type="button" value="cancel" onClick="javascript: window.location = '<?php print $_SESSION['HTTP_REFERER'] ?>';"><?php print $TEXT['CANCEL'] ?></button>
46
</div>
38 47
<h1>&nbsp;Login</h1>
39 48
&nbsp;<?php echo $thisApp->message; ?>
40 49
<br />
......
43 52
<form action="<?php echo WB_URL.'/account/login.php'; ?>" method="post">
44 53
<p style="display:none;"><input type="hidden" name="username_fieldname" value="<?php echo $username_fieldname; ?>" /></p>
45 54
<p style="display:none;"><input type="hidden" name="password_fieldname" value="<?php echo $password_fieldname; ?>" /></p>
46
<p style="display:none;"><input type="hidden" name="url" value="<?php echo $thisApp->redirect_url;?>" /></p>
55
<p style="display:none;"><input type="hidden" name="redirect" value="<?php echo $thisApp->redirect_url;?>" /></p>
47 56

  
48 57
<table cellpadding="5" cellspacing="0" border="0" width="90%">
49 58
<tr>

Also available in: Unified diff