name; $pi = pathinfo($fn); if ($thumb && !$mini && isset($pi['filename']) && isset($pi['extension'])) { $fnt = $pi['filename'] . "_thumbnail." . $pi['extension']; if (file_exists(DATA_STORE . $fnt)) { $fn = $fnt; } } if ($mini && !$thumb && isset($pi['filename']) && isset($pi['extension'])) { $fnt = $pi['filename'] . "_mini." . $pi['extension']; if (file_exists(DATA_STORE . $fnt)) { $fn = $fnt; } } header("Cache-Control: no-cache"); header("Pragma: no-cache"); header("Content-size: ".$image->size); header('Content-Disposition: filename='.$fn); header("Content-type: ".$image->type); readfile(DATA_STORE . $fn); } else { return ""; } ?>