[Mediawiki-l] Where is the "are they logged in" code located?
mail at tgries.de
Fri Feb 18 22:14:50 UTC 2005
ATTN: David Cameron, Marcus Kazmierczak, Ryan Lane, Frank Wales, John
I can't exactly deal with the plenty of mails referring to Auto-Login /
Auto-Account-Creation and similar, but different ideas... so I decided
quickly to post, what I have and what works for me.
The whole story in on http://bugzilla.wikipedia.org/show_bug.cgi?id=1360
Auto-login / Auto-account-creation by hostname for intranet MediaWikis
RETURN NEW USER() in every return path in loadFromSession()
is now changed to not return immediately, but to call my new function
loadfromLUT(), which either gets some info via gethostbyaddr() in
Setup.php and the lookup table or actually returns the new user() object
(if a user comes to wiki, who is not listed in the file lookup table, he
stays "anonymous" without a login chance, because I disabled the manual
login and logout paths).
Please check http://bugzilla.wikipedia.org/show_bug.cgi?id=1360 . I just
uploaded the code according to the flowchart, the code is for User.php
of mediawiki 1.3.7 and only modifies the existings loadfromSession() as
Sorry for cross-posting !
More information about the MediaWiki-l