mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Compress the secureImg. TinyMce also decoding theme SEF image URLs now.
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
ExpiresByType text/x-javascript "access plus 1 month"
|
||||
</IfModule>
|
||||
|
||||
### Gzip Compression Module
|
||||
### Gzip Compression Module
|
||||
<ifmodule mod_deflate.c>
|
||||
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/xml text/xml application/rss+xml
|
||||
</ifmodule>
|
||||
|
@@ -391,10 +391,10 @@ class secure_image
|
||||
switch($type)
|
||||
{
|
||||
case "jpeg":
|
||||
imagejpeg($image);
|
||||
imagejpeg($image, null, 60 );
|
||||
break;
|
||||
case "png":
|
||||
imagepng($image);
|
||||
imagepng($image, null, 9);
|
||||
break;
|
||||
case "gif":
|
||||
imagegif($image);
|
||||
|
@@ -249,6 +249,19 @@ TEMPL;
|
||||
$hKey => $match[4]
|
||||
);
|
||||
}
|
||||
elseif(preg_match('/theme\/img\/(a)?([\d]*)x(a)?([\d]*)\/(.*)/', $url, $match)) // Theme-image SEF Urls
|
||||
{
|
||||
$wKey = $match[1].'w';
|
||||
$hKey = $match[3].'h';
|
||||
|
||||
$ret = array(
|
||||
'src'=> 'e_THEME/'.$match[5],
|
||||
$wKey => $match[2],
|
||||
$hKey => $match[4]
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user