source: spip-zone/_core_/branches/spip-3.0/plugins/filtres_images/apple-touch-icon.png.html @ 70269

Last change on this file since 70269 was 70269, checked in by cedric@…, 8 years ago

Rajouter un commentaire non teste au moment de commit... casse la feature
On deplace en commentaire PHP

File size: 635 bytes
Line 
1#HTTP_HEADER{Content-Type: image/png}
2#HTTP_HEADER{Content-Transfer-Encoding: binary}
3<?php
4/*
5Dans le .htaccess :
6RewriteRule ^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})]})]";
12if ($cl = filesize($file))
13        header("Content-Length: ". $cl);
14
15readfile($file);
16?>
Note: See TracBrowser for help on using the repository browser.