FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
the login procedure
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=21003&th=4332#msg_21003
I'm wondering about the login procedure. I have hacked my fud forum and want to add some functionality. In the users table i added a new column. When the users are logging in, the system is supposed to check this value (from the new column), and based on this approve ot not approve the users request to log in.
My problem is, in what file should I be woking and how do I make a user 'not' log in? This check is supposed to be after the system has checked that login and password is ok. After this, the system will check the value described above. If this has a certain value, the login should be terminated, i.e the user must not be able to get in to the forum by typing in the correct url.
I've done some hacking in the file: login.php.t. I can check the value desribed above and print an error message (and redirect), but the user can still logg in by typing in the url manually...
Any clues?
thnx
/johan]]>johed8022004-11-08T15:24:12-00:00Re: the login procedure
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=21007&th=4332#msg_21007
In the event of failure you need to call error_dialog() function with the title of the error as the 1st param and the message of error as the 2nd. Other params you can copy from existing calls to the function.]]>Ilia2004-11-08T15:39:48-00:00Re: the login procedure
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=21031&th=4332#msg_21031
I found this call helpful: ses_delete($usr->sid);