0)); // no parameters, we want the most basic pod we can get to serve images if (!$POD->libOptions('enable_core_files')) { header("Location: " . $POD->siteRoot(false)); exit; } $f = $POD->getFile(array('id'=>$_GET['id'])); if (!$f->success()) { header("Status: 404 Not Found"); echo "404 Not Found"; exit; } $size = preg_replace("/\.\w\w\w$/","",$_GET['size']); $f->download($size); if (!$f->success()) { header("Status: 404 Not Found"); echo "Download Failed"; } ?>