apple-touch-icon.png.html 669 B

12345678910111213141516
  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($file=preg_replace(',[?].*$,','',$file)))
  13. header("Content-Length: ". $cl);
  14. readfile($file);
  15. ?>