PHPBB and website integration

10 03 2016

I needed to integrate a website login with a phpBB3 forum recently, and this blog post came in really useful:

The only issue with it was the logout section – it uses $_GET, but when I implement this I get a message saying that this is an ‘illegal use of $_GET’.

Instead, the logout code that worked for me was this – it uses request_var() instead:

$cp = request_var('cp', '');
if ($cp == "logout") {
echo "Logged out";