Hi,
On Mon, 30 Jul 2001, pp wrote:
> > mgd_auth_midgard returns true or false, see:
> >
> > http://www.midgard-project.org/req/midgard-1.4/mgd-auth-midgard.htm
> >
> > if you want a person object, you could try the following:
> >
> > <?php
> > if(mgd_auth_midgard("login","pass"){
> > $newmidgard = mgd_get_midgard();
> > $uzer = mgd_get_person($newmidgard->user);
> > } else {
> > /* mgd_auth_midgard failed. note that
> > when using sitegroups you should
> > be using "login+sitegroup" always,
> > as mgd_auth_midgard has no notion
> > of the current sitegroup of a host
> > the way mod_midgard has when handling
> > http challenge authentication.
> > */
> > }
> > ?>
> >
>
> mucios gracias, but I compiled m idgard --without-sitegroups
okay, then you don't need any sitegroup modifiers.
> I want to use multi database system so I do not see any sense
> to use sitegroup
makes sense.
> BTW I got site with 'auth' access, so I do not have to make
> mgd_auth_midgard there, and the most of page code seems
> not ot be working in midgard 1.4.1 comparing to midgard 1.2.5
Hmm.. that is not so good. I only have very vague memories about 1.2.5,
and I don't know if the returnvalue of mgd_auth_midgard has changed.
> This is shop on-line so there is possibility to add many issues
> to basket at one click, now it doesn't work, or even there is no possibility
> to add product when another is already in basket, what is this?
Make sure that the mgd_auth_midgard call happens before any output is sent
to the browser. As it is based on cookies, it will fail if you call it
later. Set the optional sendcookie parameter to false if you don't want to
send a persistant cookie. For the rest it is very hard to comment on this
situation as I can't look at your page code. Maybe you can send your
pagecode (stripped of any password information, of course)
> I am really afraid cause it happens on working server.
Aye, so you need a quick fix actually.
--
Envida http://www.envida.net/
Armand A. Verstappen Graadt van Roggenweg 328
[EMAIL PROTECTED] 3531 AH Utrecht
tel: +31 (0)30 298 2255 Postbus 19127
fax: +31 (0)30 298 2111 3501 DC Utrecht
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]