Tobias Roth <[EMAIL PROTECTED]> wrote: > Hi > > Where do I find information about the midgard object?
http://www.midgard-project.org/manual/en/ >For instance I do things like > > $host = mgd_get_host($midgard->host); > $page = mgd_get_page($midgard->page); > > which I saw on the example page or just guessed. Now I'd like to know how I actually >can find out things like this with the manual. You just asked about "transparent" midgard object - midgard itself. Root page which is the only php file on filesystem for midgard call mgd_get_midgard(); http://www.midgard-project.org/manual/en/function.get-midgard.php For test run : <? $newmidgard = mgd_get_midgard(); print_r($newmidgard); ?> You may make that for every midgard' object. > What I am trying to do right now is find out the ID of the currently logged in user >on a host that requires authentication. $midgard->user; <? $logged = mgd_get_person($midgard->user); ?> http://www.midgard-project.org/manual/en/functions.person.php :) that's simple and easy :) Piotras --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
