Added a couple of mime types so that corresponding files can be viewed in the browser.

Added a simple (and not perfect) CodeRay scanner for php.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1070 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-01-16 20:45:13 +00:00
parent ad25d15d6c
commit 18066ba8bf
3 changed files with 175 additions and 1 deletions
+6 -1
View File
@@ -19,13 +19,18 @@ module Redmine
module MimeType
MIME_TYPES = {
'text/plain' => 'txt',
'text/plain' => 'txt,tpl,properties',
'text/css' => 'css',
'text/html' => 'html,htm,xhtml',
'text/x-c' => 'c,cpp,h',
'text/x-java' => 'java',
'text/x-javascript' => 'js',
'text/x-html-template' => 'rhtml',
'text/x-perl' => 'pl,pm',
'text/x-php' => 'php,php3,php4,php5',
'text/x-python' => 'py',
'text/x-ruby' => 'rb,rbw,ruby,rake',
'text/x-sh' => 'sh',
'text/xml' => 'xml',
'text/yaml' => 'yml,yaml',
'image/gif' => 'gif',