[SPIP] ~maj v3.0.14-->v3.0.17
[ptitvelo/web/www.git] / www / plugins-dist / filtres_images / apple-touch-icon.png.html
1 #HTTP_HEADER{Content-Type: image/png}
2 #HTTP_HEADER{Content-Transfer-Encoding: binary}
3 <?php
4 /*
5 Dans le .htaccess :
6 RewriteRule ^apple-touch-icon(-(\d+x\d+))?(-precomposed)?[.]png$ spip.php?page=apple-touch-icon.png&size=$2 [QSA,L]
7 */
8 $file="[(#CHEMIN{apple-touch-icon[-(#ENV{size,''})].png}|sinon{[(#LOGO_SITE_SPIP|sinon{#CHEMIN{spip.png}}
9 |image_passe_partout{[(#ENV{size,57}|intval)],[(#ENV{size,57}|intval)]}
10 |image_recadre{[(#ENV{size,57}|intval)],[(#ENV{size,57}|intval)],center}
11 |image_aplatir{png,#ffffff}|extraire_attribut{src})]})]";
12 if ($cl = filesize(preg_replace(',[?].*$,','',$file)))
13 header("Content-Length: ". $cl);
14
15 readfile($file);
16 ?>