1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00
spip_ynh/sources/plugins-dist/filtres_images/apple-touch-icon.png.html
2015-04-28 17:10:23 +02:00

16 lines
No EOL
663 B
HTML

#HTTP_HEADER{Content-Type: image/png}
#HTTP_HEADER{Content-Transfer-Encoding: binary}
<?php
/*
Dans le .htaccess :
RewriteRule ^apple-touch-icon(-(\d+x\d+))?(-precomposed)?[.]png$ spip.php?page=apple-touch-icon.png&size=$2 [QSA,L]
*/
$file="[(#CHEMIN{apple-touch-icon[-(#ENV{size,''})].png}|sinon{[(#LOGO_SITE_SPIP|sinon{#CHEMIN{spip.png}}
|image_passe_partout{[(#ENV{size,57}|intval)],[(#ENV{size,57}|intval)]}
|image_recadre{[(#ENV{size,57}|intval)],[(#ENV{size,57}|intval)],center}
|image_aplatir{png,#ffffff}|extraire_attribut{src})]})]";
if ($cl = filesize(preg_replace(',[?].*$,','',$file)))
header("Content-Length: ". $cl);
readfile($file);
?>