Remove old images and logos
[elgg.git] / units / files / files_mimetype_inline.php
blob8c3f7545713d474b7620a4158c30d6fdd7a90060
1 <?php
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;
10 } else {
11 $run_result = false;
12 } */
13 $result = @getimagesize($parameter);
14 if ($result != false) {
15 $run_result = image_type_to_mime_type($result[2]);
16 } else {
17 $run_result = false;