Revision 1599
Added by Dietmar over 12 years ago
login_form.php | ||
---|---|---|
35 | 35 |
} |
36 | 36 |
} |
37 | 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 |
$_SESSION['HTTP_REFERER'] = $_SESSION['PAGE_LINK']; |
|
42 |
$thisApp->redirect_url = (isset($thisApp->redirect_url) ? $thisApp->redirect_url : $_SESSION['PAGE_LINK']) |
|
38 |
$thisApp->redirect_url = (isset($thisApp->redirect_url) && ($thisApp->redirect_url!='') ? $thisApp->redirect_url : $_SESSION['HTTP_REFERER'] ); |
|
43 | 39 |
?> |
44 | 40 |
<div style="margin: 1em auto;"> |
45 | 41 |
<button type="button" value="cancel" onClick="javascript: window.location = '<?php print $_SESSION['HTTP_REFERER'] ?>';"><?php print $TEXT['CANCEL'] ?></button> |
Also available in: Unified diff
update all used files with redirect_url to $_SESSION['HTTP_REFERER']