[Mediawiki-l] Where is the "are they logged in" code located?

Brion Vibber brion at pobox.com
Fri Feb 18 21:18:18 UTC 2005

John Straffin wrote:
> Instead of saying "return a new user object" above, I want to say "log
> in as <?= _SERVER["REMOTE_USER"] ?>". Should I be looking for the "log
> in" function in SpecialUserlogin.php?


> (also, on a side note, how does the User::loadFromSession() function get
> beyond the initial block of code? It appears that all of the options of
> the first "if, else if, else" end up with a "return"...)

No, there are several conditions that don't return. It's not really
legible code though.

> (and, on a completely unrelated note, lines 23 - 25 of Index.php state:
>     require_once( './includes/Defines.php' );
>     require_once( './LocalSettings.php' );
>     require_once( 'includes/Setup.php' );
> Shouldn't line 25 look like 23 & 24 (i.e. './x' vs 'x'), if not just for
> consistency's sake?)

LocalSettings.php may define an include path which doesn't include the
currect directory, to store the bulk of the scripts outside the webroot.

-- brion vibber (brion @ pobox.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20050218/e3fb7c5d/attachment.pgp 

More information about the MediaWiki-l mailing list