On Wed, Aug 15, 2001 at 10:07:02AM +0200, Martin Hierling wrote:
> Hi List,
>
> I have this:
>
> echo "User: $midgard->user <br>";
> mgd_auth_midgard('webuser','09876',0);
> echo "User: $midgard->user <br>";
>
> and got this
>
> User: 0
> User: 0
>
> webuser exists, in SG DVZ (Group Anonym), so i tried webuser+DVZ, but
> actually it doesn't work. Password is checked. Refering to the listarchiv
> this should work.
$midgard is special variable and sets before any page parsing (look at
http://www.midgard-project.org/req/midgard-1.4/mgd-get-midgard.htm).
And mgd_auth_midgard() authorized user on particular page (look at
http://www.midgard-project.org/req/midgard-1.4/mgd-auth-midgard.htm).
I.e. - if this function returns TRUE, then you can use midgard functions on this page
with authorized user permissions.
--
Best regards,
Sergei Dolmatov.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]