'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';
{
return array(
'index' => $this->make_hook('index', AUTH_PUBLIC),
- 'cacert.pem' => $this->make_hook('cacert', AUTH_PUBLIC),
+ 'cacert.pem' => $this->make_hook('cacert', AUTH_PUBLIC),
'changelog' => $this->make_hook('changelog', AUTH_PUBLIC),
// Preferences thingies
{
$data = file_get_contents("/etc/ssl/xorgCA/cacert.pem","r");
header("Pragma:");
- header("Set-Cookie:");
- header("Cache-Control:");
- header("Expires:");
- header("Content-Type: application/x-x509-ca-cert");
+ header("Set-Cookie:");
+ header("Cache-Control:");
+ header("Expires:");
+ header("Content-Type: application/x-x509-ca-cert");
header("Content-Length: ".strlen($data));
echo $data;
exit;
{iterate item=line from=$rss}
<item>
<title>{$line.titre|strip_tags}</title>
+ <guid isPermaLink="false">{$line.id}</guid>
<link>{#globals.baseurl#}/events#newsid{$line.id}</link>
<description><![CDATA[{$line.texte|nl2br}]]></description>
<author>{$line.prenom} {$line.nom} (X{$line.promo})</author>
{iterate item=line from=$rss}
<item>
<title>{$line.titre|strip_tags}</title>
+ <guid isPermaLink="false">{$line.id}</guid>
<link>{#globals.baseurl#}/{$asso.diminutif}/#art{$line.id}</link>
<description><![CDATA[{$line.texte|nl2br}{if $line.contacts}<br/><br/><strong>Contacts :</strong><br/>{$line.contacts|url_catcher|nl2br}{/if}]]></description>
<author>{$line.prenom} {$line.nom} (X{$line.promo})</author>