summaryrefslogtreecommitdiffstats
path: root/image.php
diff options
context:
space:
mode:
authormomo-i <webmaster@momo-i.org>2011-02-03 14:03:16 +0900
committermomo-i <webmaster@momo-i.org>2011-02-03 14:03:16 +0900
commit9ce63661d1ce941dee468cec6fe197534a636f40 (patch)
tree2c89d117befdad5dfab8948979897a39d667db48 /image.php
parent7ef24e84c6986a07be5144df4b67186f78f99d61 (diff)
downloadampache-9ce63661d1ce941dee468cec6fe197534a636f40.tar.gz
ampache-9ce63661d1ce941dee468cec6fe197534a636f40.tar.bz2
ampache-9ce63661d1ce941dee468cec6fe197534a636f40.zip
Fixed indent and add translation words
Diffstat (limited to 'image.php')
-rw-r--r--image.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/image.php b/image.php
index 864ad04e..14dc4e87 100644
--- a/image.php
+++ b/image.php
@@ -95,11 +95,11 @@ switch ($_GET['type']) {
$data = explode("/",$mime);
$extension = $data['1'];
- // Send the headers and output the image
- header("Expires: Sun, 19 Nov 1978 05:00:00 GMT");
- header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
- header("Cache-Control: no-store, no-cache, must-revalidate");
- header("Pragma: no-cache");
+ // Send the headers and output the image
+ header("Expires: Sun, 19 Nov 1978 05:00:00 GMT");
+ header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
+ header("Cache-Control: no-store, no-cache, must-revalidate");
+ header("Pragma: no-cache");
header("Content-type: $mime");
header("Content-Disposition: filename=" . $key . "." . $extension);
echo $image;
@@ -124,10 +124,10 @@ switch ($_GET['type']) {
$extension = Art::extension($mime);
// Send the headers and output the image
- header("Expires: Tue, 27 Mar 1984 05:00:00 GMT");
- header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
- header("Cache-Control: no-store, no-cache, must-revalidate");
- header("Pragma: no-cache");
+ header("Expires: Tue, 27 Mar 1984 05:00:00 GMT");
+ header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
+ header("Cache-Control: no-store, no-cache, must-revalidate");
+ header("Pragma: no-cache");
header("Content-type: $mime");
header("Content-Disposition: filename=" . scrub_out($media->name) . "." . $extension);
echo $source;