Written by primehalo
Returns a user to the page they were at prior to logging in.
Open: includes/functions.php
Find:
Code: Select all
$u_login_logout = append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login');
Code: Select all
//-- mod: Prime Login Return ------------------------------------------------//
$redirect = ($user->page['page_dir'] || $user->page['page_name'] == "ucp.$phpEx") ? '' : '&redirect=' . urlencode(str_replace('&', '&', build_url(array('_f_'))));
$u_login_logout = append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login' . $redirect);
//-- end: Prime Login Return ------------------------------------------------//
Code: Select all
// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');
Code: Select all
//-- mod: Prime Login Return ------------------------------------------------//
if (($redirect = request_var('redirect', '')) != '')
{
$template->assign_var('S_LOGIN_REDIRECT', build_hidden_fields(array('redirect' => $redirect)));
}
//-- end: Prime Login Return ------------------------------------------------//