summaryrefslogtreecommitdiffstats
path: root/image.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-01 10:31:15 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-01 10:31:15 +0000
commit8b81ef709679d69ce47440fd48c76a0e3f6f903b (patch)
tree868a85571ff308b230f254d67b684b23533359a2 /image.php
parentc7532033e56da3c007dba6144ca6c8884fac2781 (diff)
downloadampache-8b81ef709679d69ce47440fd48c76a0e3f6f903b.tar.gz
ampache-8b81ef709679d69ce47440fd48c76a0e3f6f903b.tar.bz2
ampache-8b81ef709679d69ce47440fd48c76a0e3f6f903b.zip
I am pretty sure the find art should work correctly now, it doesnt do id3tags yet due to some... complications.. it does however now read the folder images which is a new feature.
Diffstat (limited to 'image.php')
-rw-r--r--image.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/image.php b/image.php
index a0ad614d..415c728c 100644
--- a/image.php
+++ b/image.php
@@ -55,7 +55,17 @@ switch ($_REQUEST['type']) {
break;
// If we need to pull the data out of the session
case 'session':
+ $key = scrub_in($_REQUEST['image_index']);
+ $image = get_image_from_source($_SESSION['form']['images'][$key]);
+
+ $mime = $_SESSION['form']['images'][$key]['mime'];
+ $data = explode("/",$mime);
+ $extension = $data['1'];
+
+ header("Content-type: $mime");
+ header("Content-Disposition: filename=" . $key . "." . $extension);
+ echo $image;
break;
default:
$album = new Album($_REQUEST['id']);