Problem about login when add a php file

Discussion forum for MOD Writers regarding MOD Development.
Locked
santamaria
Registered User
Posts: 6
Joined: Wed Sep 30, 2015 7:00 am
Location: technology
Name: david lam
Contact:

Problem about login when add a php file

Post by santamaria » Fri Oct 09, 2015 8:48 am

Dear all member!

I am trying to add an include php file after a users password and username are verified
but before the forum does anything else. I need the file to run just once on initial login.

I've found the switch $method = login section in ucp.php but can't seem to patch in there.
Can someone point me at a suitable file/position right after the login is verified
(I seem to be going round in circles with this)

Doesn't anyone know how the login system works?
Every time I patch in it just doesnt work - I must be missing something.
Last edited by Oyabun1 on Fri Oct 09, 2015 8:57 am, edited 1 time in total.
Reason: Moved from 3.0.x Support forum
Have a nice day.

User avatar
AmigoJack
Registered User
Posts: 5384
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Problem about login when add a php file

Post by AmigoJack » Mon Oct 12, 2015 8:07 am

santamaria wrote:after a users password and username are verified
Do you really mean that? Or do you mean after making sure both are correct?
santamaria wrote:just once on initial login
Are you aware that this won't happen for auto-logins?
santamaria wrote:I've found the switch $method = login section in ucp.php but can't seem to patch in there
What have you done, what did you expect and what happened instead? Hint: /ucp.php can't be any help, because it only calls login_box() which already redirects the HTTP request on successful logins and I wonder why you haven't noticed that when inspecting that function...
santamaria wrote:Doesn't anyone know how the login system works?
I know. But maybe we even need to know the authentication system (database, or Apache, or LDAP, or...), based on what exactly you want.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

Locked

Return to “[3.0.x] MOD Writers Discussion”

Who is online

Users browsing this forum: blackshtormx and 19 guests