> It's a though ride to get through the design matters in midgard
> but I'm learning to love it. =)

Yeah, just wrote the book "Loving Midgard" and finishing 
the second part "In bed with midgard" ;)))
Want to buy? :))

 
> Now, I serve images attached to topics based on a virtual archive.
> If i have a uri "/xyxxy/files/img.png" the page code checks if 
> argv[argc - 2] == "files" and if that is true it tries to serve
> the attacment 'img.png' from the topic 'xyxxy'. Is that a good 
> solution, or is there a smarter way to serve attachments from
> articles? 

If You want to display image with <IMG src="">
You may genarate url like You wish .

www.site.com/images/xxx/jpg/or/png/or/something/file.name
where xxx is $argv[0] and attachment id.

You may also check it with:
 $from = getenv("HTTP_REFERER");
if ($from != "http://www.site.com/page.htm";) {}


Piotras

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

Reply via email to