[SPIP] +spip v3.0.17
[lhc/web/clavette_www.git] / www / plugins-dist / filtres_images / favicon.ico.html
diff --git a/www/plugins-dist/filtres_images/favicon.ico.html b/www/plugins-dist/filtres_images/favicon.ico.html
new file mode 100644 (file)
index 0000000..5ad6dee
--- /dev/null
@@ -0,0 +1,13 @@
+#HTTP_HEADER{Content-Type: image/x-icon}
+#HTTP_HEADER{Content-Transfer-Encoding: binary}
+<?php
+$file="[(#CHEMIN{favicon.ico}|sinon{[(#LOGO_SITE_SPIP
+               |image_passe_partout{32,32}
+               |image_recadre{32,32,center}
+               |image_format{ico}|extraire_attribut{src}
+)]}|sinon{#CHEMIN{spip.ico}})]";
+if ($cl = filesize($file=preg_replace(',[?].*$,','',$file)))
+       header("Content-Length: ". $cl);
+
+readfile($file);
+?>
\ No newline at end of file