Firefox PHP

Use of existing member system [solved]

Posted by Terradon 
Re: Use of existing member system [solved]
March 27, 2011 10:07PM
I managed it
Thank you
:)



Edited 1 time(s). Last edit at 03/27/2011 11:43PM by kyildiz1.
Re: Use of existing member system [solved]
October 25, 2012 04:25PM
Hello everyone,

I installed Phorum 5.2.19 yesterday and I'm trying to integrate it into my website so that when users pass my authentication they are automatically logged into Phorum as well.

My site is running Ubuntu 12.04 / Apache 2.2 / PHP 5.3.10-1 / MySQL 5.5.24-0

My authentication process checks the user's login id and password from encrypted values in the database, and if successful creates a session variable that designated them as logged in. I believe I'm trying to do much the same thing that Terradon and Maurice worked through on this thread. I downloaded the file they created called mod_inherit_authentication_from_session.php (m_i_a_f_s.php), but I have a few questions that I'm hoping will get me started.

1. I understand I don't need the External Authentication Module if I'm using the "m_i_a_f_s.php" script. Correct?

2. Where should I be calling the "m_i_a_f_s.php" script from? I tried calling it from an init script that ran before launching Phorum, thinking it would set the necessary session variables and if necessary insert db data, but that was wrong. I never reach the first function it calls, phorum_api_user_search(), because the include file that phorum_api_user_search() lives in, user.php, has as its first line:

if (!defined('PHORUM')) return;

So clearly, stuff needs to have happened before you call this script. What?

3. What array should I be passing to the function, inherit_authentication_from_session()? I think that is just all session data and can be the $_SESSION array, but I'm not sure. Do I need to define my own array and pass it in?

4. Do I need to do anything with the value that returns from inherit_authentication_from_session()? If so, what?

5. Am I so far off base in my preliminary understanding of this process I need to go back to square one and start over?

I see this thread is over a year old. Hope there's still someone out there who can help.

Thanks,
Mark



Edited 1 time(s). Last edit at 10/25/2012 04:28PM by scorpionarts.
Re: Use of existing member system [solved]
October 25, 2012 10:00PM
Well I never got a response -- that's what I get for posting to a dead thread -- but I learned a lot this afternoon and got my basic functionality working. I needed to put the file into /mods and login to admin and enable that mod. That must sound like baby steps to most of you, but remember, there was a day when you too had only installed the program yesterday.

Anyway, if you are thinking of responding, don't bother. I'm ok for now and will post a new thread if new issues arise (as I suspect they will...)

Thanks anyway,
Mark
www.scorpionarts.com
Re: Use of existing member system [solved]
October 26, 2012 01:40AM
Quote
scorpionarts
That must sound like baby steps to most of you, but remember, there was a day when you too had only installed the program yesterday.

No one complained, great that you got it to work. That's the best way of learning it.

Quote
scorpionarts
Anyway, if you are thinking of responding, don't bother. I'm ok for now and will post a new thread if new issues arise (as I suspect they will...)

Yes please. this thread has shown up as "solved" and still had some question from you ...


Thomas Seifert
Sorry, only registered users may post in this forum.

Click here to login