>
> I'm making a script where a user registers himself for an app. THis is all fine
> and dandy 'till I try the part of getting this user into a group. It seems that
> you got to be admin to put people in groups, a nice principle, but how do I
> circumwent this?
>
> i.e. how do I put a selfregistered user in a group ?
quite simple and easy :)
If You want to create member or get person
records info, You vahe to be logged as SG admin.
Create snippet with simple login SG admin.
<? mgd_auth_midgard("admin$SG", "pass",0);
$myadmin = mgd_get_midgard(); ?>
and there where You want to do all this:
<?
mgd_include_snippet("/this/snippet");
// do what you want to do
// create member
// delete member
// get person record
//anything SG admin can do
unset ($myadmin);
// or
mgd_unsetuid();
?>
Just remember to keep auth Your auth admin in snippet for security reason.
Piotras
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]