Version 1.0.3
Posted: 28 Mar 2012, 13:09
Ok, thanks 

PhpBB extensions from Stoker & Community
PhpBB BBCode Database, Smileys and Extensions
https://phpbb3bbcodes.com/
Code: Select all
if (!$user->data['is_bot'] && !empty( $_SERVER['HTTP_REFERER']))
{
header('refresh:5;url= '.$_SERVER['HTTP_REFERER']);
}
page_footer();
Works well but if you come from another site and use this link images/ the page hangs but if your on this site and use the link it works.Stoker wrote:I added this to error.phpjust beforeCode: Select all
if (!$user->data['is_bot'] && !empty( $_SERVER['HTTP_REFERER'])) { header('refresh:5;url= '.$_SERVER['HTTP_REFERER']); }
page_footer();
It will redirect you to previous page IF there HTTP_REFERER exists.
Nothing fancy.