'purge_cache' => $this->make_hook('purge_cache', AUTH_COOKIE, 'admin'),
'valid.html' => $this->make_hook('valid', AUTH_PUBLIC),
+ 'favicon.ico' => $this->make_hook('favicon', AUTH_PUBLIC),
);
}
$page->changeTpl('404.tpl');
}
+ function handler_favicon(&$page)
+ {
+ $data = file_get_contents(dirname(__FILE__).'/../htdocs/images/favicon.png');
+ header('Content-Type: image/png');
+ echo $data;
+ exit;
+ }
+
function handler_purge_cache(&$page)
{
require_once 'wiki.inc.php';