Problem about login when add a php file

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

Problem about login when add a php file

Post by santamaria »

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
User avatar
AmigoJack
Registered User
Posts: 6120
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン

Re: Problem about login when add a php file

Post by AmigoJack »

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 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." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28

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