John P . Looney wrote:
> On Mon, Feb 05, 2001 at 10:02:01PM +0100, e-target-b.com : ARNEODO Jean-Pierre
>mentioned:
>
>> Here is the solution:
>> http://www.midgard-project.org/req/midgard-1.4/mgd-get-midgard.htm
>> In short terms:
>> echo $midgard->user;
>
>
> But won't that only work on a page where you *have* to be logged in on ?
> Is there a way of saying "if there is a user logged in, get their userid,
> otherwise just serve a plain page ?"
if the user is not logged in, $midgard->user will be set to 0 (there is
no user with such a userid)
>
> John
>
--
Best Regards,
David Guerizec Free Software Developer
Aurora R&D [EMAIL PROTECTED]
Midgard core developer http://www.midgard-project.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]