issue26, added some mouseover text which will explain buttons functions
[phpfspot.git] / phpfspot_img.php
index 69f579bf20c04f32b16dc48228cf90ba3e8ce1d0..052a45f4099c686bdc0cd561cf482ce6ee8ded90 100644 (file)
@@ -40,7 +40,7 @@ class PHPFSPOT_IMG {
       }
 
       if(!file_exists($fullpath)) {
-         $this->parent->showTextImage("test1");
+         $this->parent->showTextImage("File ". $fullpath ." does not exist");
          return;
       }
       if(!is_readable($fullpath)) {
@@ -51,6 +51,11 @@ class PHPFSPOT_IMG {
       $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");