Version 1.0.3
Posted: 28 Mar 2012, 15:09
Ok, thanks
Database and Demo for phpBB3 BBCodes, Mods and Smilies
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.