Changeset 87930 in spip-zone


Ignore:
Timestamp:
Mar 13, 2015, 12:10:51 PM (5 years ago)
Author:
arno@…
Message:

Fonctionner avec mod_xsendfile

Location:
_plugins_/image_responsive
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/image_responsive/action/image_responsive.php

    r84198 r87930  
    5858       
    5959                if ($xsendfile == 1) { 
    60                         //$dest = "/var/www/beach-fashion/$dest";
     60                        $dest = realpath("$dest");
    6161                        //die($dest);
    6262                        header("X-Sendfile: $dest");
  • _plugins_/image_responsive/ajouter_a_htaccess.txt

    r80385 r87930  
    66
    77<IfModule xmod_sendfile.c>
     8XSendFile on
    89RewriteRule (.*)\-resp([0-9]+v?)(\-([0-9\.]+))?\.(jpg|png|gif) index.php?action=image_responsive&img=$1.$5&taille=$2&dpr=$4&xsendfile=1
    910</IfModule>
  • _plugins_/image_responsive/paquet.xml

    r87725 r87930  
    22        prefix="image_responsive"
    33        categorie="outil"
    4         version="4.6.0"
     4        version="4.7.0"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.1.*]"
Note: See TracChangeset for help on using the changeset viewer.