This is now a Blue Static project, so remove the Iris Studios references
[viewsvn.git] / includes / file_types.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # ViewSVN [#]version[#]
5 || # Copyright ©2002-[#]year[#] Blue Static
6 || #
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version [#]gpl[#] of the License.
10 || #
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 || # more details.
15 || #
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
21
22 // this file contains an array of extensions and then information about
23 // how to display the file
24
25 // entries in this array follow:
26 // EXTENSION (minus the .) => array(GESHI LANGUAGE, EXTERNAL MIME TYPE, REQUIRES DOWNLOAD)
27 //
28 // EXTENSION = the extension of the file, sans period (.)
29 // GESHI LANGUAGE = language file that GeSHi syntax highlighter should use when displyaing this file;
30 // not specifying this will result in plain text
31 // EXTERNAL MIME TYPE = if the file isn't source code, but an image, zip, or other type of binary file,
32 // what MIME-type should be sent when viewing the file?
33 // note: if you specify this for non-binary files, it will do weird things
34 // REQUIRES DOWNLOAD = some binary files, like images, can be displayed inline; however ZIP files and other
35 // binary files that can't be displayed inline should have this set to TRUE so that
36 // a link will be displayed to allow the user to download the file
37
38 define('MIMES_GESHI_LANGUAGE', 0);
39 define('MIMES_EXTERNAL_MIME', 1);
40 define('MIMES_REQUIRES_DOWNLOAD', 2);
41
42 $filetypes = array(
43 'php' => array('php', '', false),
44 'htm' => array('html4strict', '', false),
45 'html' => array('html4strict', '', false),
46 'tpl' => array('html4strict', '', false),
47 'sql' => array('sql', '', false),
48 'xml' => array('xml', '', false),
49 'js' => array('javascript', '', false),
50 'h' => array('c', '', false),
51 'c' => array('c', '', false),
52 'cpp' => array('c', '', false),
53 'm' => array('objc', '', false),
54 'css' => array('css', '', false),
55 'java' => array('java', '', false),
56 'diff' => array('diff', '', false),
57 'patch' => array('diff', '', false),
58 'rb' => array('ruby', '', false),
59 'ini' => array('ini', '', false),
60 'sh' => array('bash', '', false),
61 'asp' => array('asp', '', false),
62 'pl' => array('perl', '', false),
63 'py' => array('python', '', false),
64 'cgi' => array('pl', '', false),
65 'cs' => array('csharp', '', false)
66 );
67
68 /*=====================================================================*\
69 || ###################################################################
70 || # $HeadURL$
71 || # $Id$
72 || ###################################################################
73 \*=====================================================================*/
74 ?>