Robin Jackson wrote:
>
> <?
> $file = readfile($midgard->uri);
> eval($file);
> ?>
>
> This would work (less overhead if you just include the file, as I have
> another table that tells me the base directory for the users' files)
> but....ROOT never gets evaluated if the page name is not in the Midgard DB
> (as per Frank's input).
That's correct. You'd be calling the above code from a midgard page,
probably
an active page.
> AFAIK, the call to mgd_get_midgard punts back to apache
It doesn't, it just picks up info gathered by mod_midgard.
> If I could change midgard-root.php to do a psuedo mgd_get_midgard, and load
> the information by hand (including pointing to a MOCK page that does the
> routines above if the page is not in the DB) then I'd be in good shape.
Still not quite clear what is wanted here, sorry.
> What is the mgd_get_midgard structure (anyone), couldn't I just declare a
> new instance of it and then populate it apporopriately (for non-DB'ed
> pages)?
mgd_get_midgard is a function returning an object. It's essentially a
static
copy of the information gathered by mod_midgard. Changing the returned
object
doesn't affect anything.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]