}
if(!file_exists($fullpath)) {
- $this->parent->showTextImage("test1");
+ $this->parent->showTextImage("File ". $fullpath ." does not exist");
return;
}
if(!is_readable($fullpath)) {
$tmp = getimagesize($fullpath);
$mime = $tmp['mime'];
+ if(!$this->parent->checkifImageSupported($mime)) {
+ $this->parent->showTextImage("Unsupported Image Type");
+ return;
+ }
+
Header("Content-Type: ". $mime);
Header("Content-Length: ". filesize($fullpath));
Header("Content-Transfer-Encoding: binary\n");