get_art($return_raw); $mime = $art['mime']; if (!$mime) { header('Content-type: image/jpeg'); readfile(Config::get('prefix') . Config::get('theme_path') . '/images/blankalbum.jpg'); break; } // else no image // Print the album art $data = explode("/",$mime); $extension = $data['1']; if (empty($_REQUEST['thumb'])) { $art_data = $art['raw']; } else { $art_data = img_resize($art,array('width'=>'275','height'=>'275'),$extension,$_REQUEST['id']); } // 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=" . $album->name . "." . $extension); echo $art_data; break; } // end switch type ?>