[geeklog-devtalk] phpBBBridge

Turias geeklog at sebastiancelis.com
Sun Sep 12 15:09:23 EDT 2004


On Aug 24, 2004, at 3:02 PM, Dirk Haun wrote:


> I think you also need something in lib-sessions.php, for when a user

> comes back after the session has expired but while the cookie is still

> valid (auto login).



Dirk,

Are you still thinking of adding this and the other plugin
functionality we discussed to the core? If so, I thought I would
mention my recent findings while hacking this file. Basically, I came
across the issue that plugin functions cannot be called from
lib-sessions.php since the plugin files have not yet been included.
What I ended up doing was setting a global variable saying that the
user's session had been re-authenticated. The best thing would
probably be to put this somewhere in $_USER. I then check for this
global variable at the top of my plugin's functions.inc file. If it is
set, I re-authenticate with phpBB.

Well, I hope that is a little helpful. If you'd like to see any of
what I have written, shoot me a personal e-mail.

Oh, and I came up with another plugin function that would be very
useful for me. I'd like a callback for whenever a group is added,
deleted, or modified. This will allow me to sync groups between phpBB
and Geeklog.

Please let me know if you want me to do anything.

Many thanks,
Turias




More information about the geeklog-devtalk mailing list