1

Topic: $_POST issue external login form

I am currently using a phpbb implementation on one of my sites. I have setup an external login using the suggested method within the admin including the common.php

define('FORUM_ROOT', './community/');
require_once FORUM_ROOT.'include/common.php';

The issue I am running into is if we try to post a form on the site (outside of the forum directory) it seems to trigger a series of events and loads the community/header.php etc...

Obviously this interferes with everything else which is being loaded as it is outside of the workings of the forum..

Is there a simple method I can implement to prevent this without breaking the internal workings of PunBB

thanks in advance
John

Re: $_POST issue external login form

Describe your external authorization in more detail, please. What page do you want to use for logging in at your site?

3

Re: $_POST issue external login form

I am using:
http://punbb.informer.com/wiki/punbb13/integration?s[]=login
as it describes on the site.

Every public page of the website contains this login form which works great. The problem occurs when post data is sent to any page which includes the common.php include (which is every page).

I have managed to work around this now by clearing all post data before the common.php file is included into the site.

Re: $_POST issue external login form

Try to include essentials.php instead of common.php.

define('FORUM_ROOT', './community/');
require_once FORUM_ROOT.'include/essentials.php';

If this works fine we'll fix this example in wiki.