|
|
@ -30,7 +30,16 @@
|
|
|
|
header("Content-type: image/png");
|
|
|
|
header("Content-type: image/png");
|
|
|
|
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
|
|
|
|
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
|
|
|
|
header("Last-Modified: $stamp", true);
|
|
|
|
header("Last-Modified: $stamp", true);
|
|
|
|
echo file_get_contents($filename);
|
|
|
|
|
|
|
|
|
|
|
|
$fp = fopen($filename, "r");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($fp) {
|
|
|
|
|
|
|
|
while ($data = fread($fp, 32768)) {
|
|
|
|
|
|
|
|
print $data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
fclose($fp);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
|
|
|
|
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
|
|
|
|
echo "File not found.";
|
|
|
|
echo "File not found.";
|
|
|
|