On Thu, Jan 04, 2001 at 08:44:49PM +0100, Daniel Reichenbach wrote:
> Hy,
> 
> while playing with Midgard 1.4 i stumbled accross the topic code.
> Seems to me like topic code allows for truly dynamic site generation.
> But how can i access it? I saw the Midgard project's site uses this.
> Can anybody give me a clue, how to use this?

$topic=mgd_get_topic(SOME_TOPIC);
eval($topic->code);

Of course, check for actual content of $topic->code should be added
for obvious security reasons.

-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project   | www.midgard-project.org |    Aurora R&D team 
Minsk Linux Users Group |    www.minsk-lug.net    |  www.aurora-linux.com  
   IPLabs Linux Team    |     linux.iplabs.ru     | Architecte Open Source
-- Having no talent is no longer enough.
                -- Gore Vidal

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

Reply via email to