Revision 1728
Added by Dietmar about 12 years ago
login.php | ||
---|---|---|
53 | 53 |
// Create new login app |
54 | 54 |
$requestMethod = '_'.strtoupper($_SERVER['REQUEST_METHOD']); |
55 | 55 |
$redirect = strip_tags(isset(${$requestMethod}['redirect']) ? ${$requestMethod}['redirect'] : ''); |
56 |
$redirect = ((isset($_SERVER['HTTP_REFERER']) && empty($redirect)) ? $_SERVER['HTTP_REFERER'] : $redirect);
|
|
56 |
//$redirect = ( (empty($redirect)) ? $_SERVER['HTTP_REFERER'] : $redirect);
|
|
57 | 57 |
$_SESSION['HTTP_REFERER'] = str_replace(WB_URL,'',$redirect); |
58 | 58 |
|
59 | 59 |
$loginUrl = WB_URL.'/account/login.php'; |
60 | 60 |
$loginUrl .= (!empty($redirect) ? '?redirect=' .$_SESSION['HTTP_REFERER'] : ''); |
61 | 61 |
|
62 |
//print '<pre style="text-align: left;"><strong>function '.__FUNCTION__.'( '.''.' );</strong> basename: '.basename(__FILE__).' line: '.__LINE__.' -> <br />'; |
|
63 |
//print_r( $redirect ); print '</pre>'; |
|
64 |
|
|
62 | 65 |
$ThemeUrl = WB_URL.$wb->correct_theme_source('warning.html'); |
63 | 66 |
// Setup template object, parse vars to it, then parse it |
64 | 67 |
$ThemePath = realpath(WB_PATH.$wb->correct_theme_source('loginBox.htt')); |
Also available in: Unified diff
! change redirect logic for registered pages