> > 
> > I start from the beginning:
> > 
> > site is SG2
> > And one object is getting from SG1 site
> > I want to authenticate to simply get this SG1 object
> 
> use mgd_auth_midgard("admin", "pass", 0);
> 
> if you do $env = mgd_get_midgard(), $env->user should be non-0 and
> $env->sitegroup should be 0.

echo for user and sitegroup  returns 00 as I need, but content is not displayed.

mysql:
223 Query       SELECT admingroup FROM sitegroup WHERE id=2
223 Query       SELECT id,password FROM person WHERE username='adminroot' AND 
sitegroup=2

Could You explain me that? I really do not get it.


All I made with sucess is 
mgd_auth_midgard("admin!SG1", "pass", 0);
and display SG1 object
and next back to SG2
mgd_auth_midgard("admin!SG2", "pass", 0);


Piotras


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to