From 21b96fe110f7a60a9082f9d04ed43599d35f2976 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 19 Dec 2005 19:59:53 +0000 Subject: [PATCH] Adding support for more file types --- includes/file_types.php | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/includes/file_types.php b/includes/file_types.php index 58b8024..86f61b3 100644 --- a/includes/file_types.php +++ b/includes/file_types.php @@ -40,18 +40,27 @@ define('MIMES_EXTERNAL_MIME', 1); define('MIMES_REQUIRES_DOWNLOAD', 2); $filetypes = array( - 'php' => array('php', '', false), - 'htm' => array('html4strict', '', false), - 'html' => array('html4strict', '', false), - 'sql' => array('sql', '', false), - 'xml' => array('xml', '', false), - 'js' => array('javascript', '', false), - 'h' => array('c', '', false), - 'c' => array('c', '', false), - 'cpp' => array('c', '', false), - 'm' => array('objc', '', false), - 'css' => array('css', '', false), - 'java' => array('java', '', false) + 'php' => array('php', '', false), + 'htm' => array('html4strict', '', false), + 'html' => array('html4strict', '', false), + 'sql' => array('sql', '', false), + 'xml' => array('xml', '', false), + 'js' => array('javascript', '', false), + 'h' => array('c', '', false), + 'c' => array('c', '', false), + 'cpp' => array('c', '', false), + 'm' => array('objc', '', false), + 'css' => array('css', '', false), + 'java' => array('java', '', false), + 'diff' => array('diff', '', false), + 'patch' => array('diff', '', false), + 'rb' => array('ruby', '', false), + 'ini' => array('ini', '', false), + 'sh' => array('bash', '', false), + 'asp' => array('asp', '', false), + 'pl' => array('perl', '', false), + 'py' => array('python', '', false), + 'cgi' => array('pl', '', false) ); /*=====================================================================*\ -- 2.43.5