Minimum version: Midgard 1.0
This function is used internally by Midgard. It is listed here for the sake of completenes. It should not be used in normal Midgard pages. The initialization code in the root file creates the global object $midgard by calling the mgd_get_midgard(). The root file is the file defined in the httpd.conf of Apache.
The global object is filled with information of the current request.
host : ID of the host used
style : ID of the style used
page : ID of the current page
auth : TRUE if authentication required
author : ID of the page author
user : current user id
admin : TRUE if user is administrator
argc : argument count (same as $argc)
argv : arguments (same as $argv)
uri : the path of the current request
self : the path to the current page. This is equal to uri for non-active pages.