[Python-Dev] Re: How do I report a bug?
Martin v. Löwis
martin@v.loewis.de
04 Apr 2003 00:36:49 +0200
"Fred L. Drake, Jr." <fdrake@acm.org> writes:
> > If they would allow us to put PHP into that box, we could even
> > suppress the text if the user was logged in.
>
> Hmm. I don't know that they won't, I just don't know the incantation
> to determine if a user is logged on.
If it's still the same code as in SF 2.5, it is "user_isloggedin()":
http://phpxref.sourceforge.net/sourceforge/include/User.class.source.html#l555
As an example usage, see
http://phpxref.sourceforge.net/sourceforge/patch/add_patch.php.source.html#l49
Regards,
Martin