Skip to content

Instantly share code, notes, and snippets.

@Elsensee
Created July 28, 2013 01:20
Show Gist options
  • Save Elsensee/6096962 to your computer and use it in GitHub Desktop.
Save Elsensee/6096962 to your computer and use it in GitHub Desktop.
Fix for 9576.. have a look on it later
// Generate logged in/logged out status
if ($user->data['user_id'] != ANONYMOUS)
{
$logout_redirect = false;
if ($user->page['page_name'] == 'viewtopic.php' || $user->page['page_name'] == 'viewforum.php')
{
$logout_redirect = true;
}
$u_login_logout = append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=logout' . ($logout_redirect) ? '&redirect=' . urlencode($phpbb_root_path . $user->page['page']) : '', true, $user->session_id);
$l_login_logout = sprintf($user->lang['LOGOUT_USER'], $user->data['username']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment