External phpBB Session manager.
This program is intended to manage phpBB sessions with no access to the actual phpBB code. It was all rewriten so that issues like function redefinition would not be a factor when integrating things like PmWiki into phpBB. IT borrow heavily on the actual sessions code from phpbb, but a fair amount has been rewritten
Unlike a mod to phpBB this is an external script that uses the phpBB database. For this reason it does not support all the database software that phpBB does, instead it only handles a MySQL↗ DB. Changing the DB call to use a diffrent DB sould be rather trivial since all the queries are rather trivial SQL.
This program is GPL’d
Files
PhpBBSession
This is the actual phpBB session management script, it interacts with the DB and loads the session.
Usage:
<? require_once("phpbbsession.php");?>
Check if user is logged in:
if(!isset($phpbb_userdata)) {echo "<h1>No session!</h1>";}
Get the user data
echo "<h1>" . phpbb_isloggedin($phpbb_userdata) . "</h1>";
Get the user name
echo $phpbb_userdata['username'];
PhpBBInfo
This is more of a config script. Load this page on the webserver where your phpBB is installed, then type in the path to the install (path on the server, not on the web), hit submit and it will generate the needed config block. You can then cut-n-paste that config into your phpsessions.php file. Delete this when you are done, unless you want anyone to be able to see your DB’s private parts.
