1 (edited by NikLP 2005-02-10 19:43)

Topic: Using Punbb Authentication externally.

Hi,

I'd like to know if anyone has successully modified punbb so that the built-in authentication system can be used to power auth on external pages.
I did it myself using phpbb on see-nottingham.co.uk but I'll be damned if I can remember how it worked! smile

Ta.

Re: Using Punbb Authentication externally.

All you need is

define('PUN_ROOT', 'punbb/');
require PUN_ROOT . 'include/common.php';

and that gives you your $pun_user, $pun_config and the database object $db among other things. Change the path as appropriate.

Re: Using Punbb Authentication externally.

it is also in one of the docs files included when you download.