MyBB Community Forums

Full Version: PHP redirect
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to redirect to the same thread after some PHP action?

else
{
$redirect = "";
}			
$thread_url = get_thread_link($post_info['tid']);
redirect($thread_url, $redirect);     
 }


UPDATE! How to return error is it's not ADMIN that executes the code?

Never mind found the way!