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?
Perhaps.
(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)