On 22 Mar, Carilda Thomas wrote:
> There is no document root unless I put it there and I don't.
You can also store the favicon.ico file as an
attachment into the Midgard database, create a
favicon.ico page under your root page and serve
the file from there.
<?php
$article = 123;
$filename = 'favicon.ico';
if ($article = mgd_get_article($article))
&& ($files = mgd_list_files($article->id))) {
while ($files->fetch()) {
if ($files->name == $filename
&& ($file = mgd_get_file($files->id))) {
header('Content-type: ' . $file->type);
header('Content-length: ' . $file->size);
readfile($file->content);
exit();
}
}
}
?>
Do this either in the code-init, or just override
the ROOT element to point to <(content)>, and the
normal Midgard style shouldn't get into way.
>> >^..^<
>> mrow
/Bergie
--
-- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] --
http://www.iki.fi/Henri.Bergius
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]