blob: 27919da524aad6a673102b15205cff370c726041 [file] [log] [blame]
<?php
$allowOrigin = $_GET['allow'];
if ($allowOrigin == "true") {
header("Access-Control-Allow-Origin: *");
}
$file = $_GET['file'];
$fp = fopen($file, 'rb');
header("Content-Type: image/png");
header("Content-Length: " . filesize($file));
fpassthru($fp);
exit;
?>