3 // Determines whether or not a file should be displayed inline (false if not, the mime-type if true)
4 // $parameter = the file location
6 /* $mimetype = mime_content_type($parameter);
8 if (in_array($mimetype,$data['mimetype:inline'])) {
9 $run_result = $mimetype;
13 $result = @getimagesize
($parameter);
14 if ($result != false) {
15 $run_result = image_type_to_mime_type($result[2]);