diff --git a/images/filetype_AUDIO.png b/images/filetype_AUDIO.png new file mode 100644 index 0000000..dad291d Binary files /dev/null and b/images/filetype_AUDIO.png differ diff --git a/images/filetype_OGV.png b/images/filetype_OGV.png deleted file mode 100644 index 577e277..0000000 Binary files a/images/filetype_OGV.png and /dev/null differ diff --git a/images/filetype_VIDEO.png b/images/filetype_VIDEO.png new file mode 100644 index 0000000..b4610da Binary files /dev/null and b/images/filetype_VIDEO.png differ diff --git a/index.php b/index.php index 9afb637..b9ee5f9 100644 --- a/index.php +++ b/index.php @@ -273,7 +273,9 @@ if (file_exists($currentdir ."/captions.txt")) if (preg_match("/.doc$|.docx$/i", $file)) $extension = "DOCX"; // Word if (preg_match("/.ppt$|.pptx$/i", $file)) $extension = "PPTX"; //Powerpoint if (preg_match("/.xls$|.xlsx$/i", $file)) $extension = "XLXS"; // Excel - if (preg_match("/.ogv$/i", $file)) $extension = "OGV"; // OGV video + if (preg_match("/.ogv$|.mp4$|.mpg$|.mpeg$|.mov$|.avi$|.wmv$|.flv$|.webm$/i", $file)) $extension = "VIDEO"; // video files + if (preg_match("/.aiff$|.aif$|.wma$|.aac$|.flac$|.mp3$|.ogg$|.m4a$/i", $file)) $extension = "AUDIO"; // audio files + if ($extension != "") {