~ubuntu-branches/ubuntu/lucid/gallery/lucid

« back to all changes in this revision

Viewing changes to includes/definitions/mime.mapping.php

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2006-05-26 02:00:17 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060526020017-5c7nrimo66qors52
Tags: 1.5.3-2
* Album permissions fix (Closes: #316651, #367644)
* apache.conf: Disable /gallery alias (Closes: #310310)
* README.Debian 
  - mention possible need to update php's memory_limit (Closes: #318456)
  - Mention how to enable /gallery alias

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * This file contains a mapping of common file extensions to
 
4
 * MIME types.
 
5
 *
 
6
 * Any unknown file extensions will automatically be mapped to
 
7
 * 'x-extension/<ext>' where <ext> is the unknown file extension.
 
8
 *
 
9
 */
 
10
$mime_extension_map = array(
 
11
    'arj'           => 'application/x-arj',
 
12
    'asc'           => 'text/plain',
 
13
    'avi'           => 'video/x-msvideo',
 
14
    'bak'           => 'application/x-trash',
 
15
    'bin'           => 'application/octet-stream',
 
16
    'bmp'           => 'image/bmp',
 
17
    'bz'            => 'application/x-bzip',
 
18
    'bz2'           => 'application/x-bzip',
 
19
    'csh'           => 'application/x-shellscript',
 
20
    'css'           => 'text/css',
 
21
    'cssl'          => 'text/css',
 
22
    'csv'           => 'text/x-comma-separated-values',
 
23
    'diff'          => 'text/x-patch',
 
24
    'doc'           => 'application/vnd.ms-word',
 
25
    'dtd'           => 'text/x-dtd',
 
26
    'exe'           => 'application/x-ms-dos-executable',
 
27
    'gif'           => 'image/gif',
 
28
    'gtar'          => 'application/x-gtar',
 
29
    'gz'            => 'application/x-gzip',
 
30
    'htm'           => 'text/html',
 
31
    'html'          => 'text/html',
 
32
    'ics'           => 'text/calendar',
 
33
    'ico'           => 'image/x-ico',
 
34
    'iff'           => 'image/x-iff',
 
35
    'iso'           => 'application/x-cd-image',
 
36
    'jar'           => 'application/x-jar',
 
37
    'jng'           => 'image/x-jng',
 
38
    'jp2'           => 'image/jpeg2000',
 
39
    'jpg'           => 'image/jpeg',
 
40
    'jpe'           => 'image/jpeg',
 
41
    'jpeg'          => 'image/jpeg',
 
42
    'lha'           => 'application/x-lha',
 
43
    'lhz'           => 'application/x-lhz',
 
44
    'log'           => 'text/x-log',
 
45
    'lzh'           => 'application/x-lha',
 
46
    'lzo'           => 'application/x-lzop',
 
47
    'moov'          => 'video/quicktime',
 
48
    'mov'           => 'video/quicktime',
 
49
    'movie'         => 'video/x-sgi-movie',
 
50
    'mp2'           => 'video/mpeg',
 
51
    'mp3'           => 'audio/x-mp3',
 
52
    'mpe'           => 'video/mpeg',
 
53
    'mpeg'          => 'video/mpeg',
 
54
    'mpg'           => 'video/mpeg',
 
55
    'mpga'          => 'audio/mpeg',
 
56
    'nsv'           => 'video/x-nsv',
 
57
    'ogg'           => 'application/ogg',
 
58
    'pdf'           => 'application/pdf',
 
59
    'pem'           => 'application/x-x509-ca-cert',
 
60
    'perl'          => 'application/x-perl',
 
61
    'pgp'           => 'application/pgp',
 
62
    'php'           => 'application/x-php',
 
63
    'php3'          => 'application/x-php',
 
64
    'php4'          => 'application/x-php',
 
65
    'pict'          => 'image/x-pict',
 
66
    'pict1'         => 'image/x-pict',
 
67
    'pict2'         => 'image/x-pict',
 
68
    'pl'            => 'application/x-perl',
 
69
    'pm'            => 'application/x-perl',
 
70
    'png'           => 'image/png',
 
71
    'po'            => 'text/x-gettext-translation',
 
72
    'pot'           => 'text/x-gettext-translation-template',
 
73
    'ppm'           => 'image/x-portable-pixmap',
 
74
    'pps'           => 'application/vnd.ms-powerpoint',
 
75
    'ppt'           => 'application/vnd.ms-powerpoint',
 
76
    'ppz'           => 'application/vnd.ms-powerpoint',
 
77
    'ps'            => 'application/postscript',
 
78
    'ps.gz'         => 'application/x-gzpostscript',
 
79
    'psd'           => 'image/x-psd',
 
80
    'qt'            => 'video/quicktime',
 
81
    'qtvr'          => 'video/quicktime',
 
82
    'ra'            => 'audio/x-pn-realaudio',
 
83
    'ram'           => 'audio/x-pn-realaudio',
 
84
    'rar'           => 'application/x-rar',
 
85
    'rm'            => 'audio/x-pn-realaudio',
 
86
    'rpm'           => 'application/x-rpm',
 
87
    'rss'           => 'text/rss',
 
88
    'rtf'           => 'application/rtf',
 
89
    'rtx'           => 'text/richtext',
 
90
    'scm'           => 'text/x-scheme',
 
91
    'sgm'           => 'text/sgml',
 
92
    'sgml'          => 'text/sgml',
 
93
    'sh'            => 'application/x-shellscript',
 
94
    'shtml'         => 'text/html',
 
95
    'sql'           => 'text/x-sql',
 
96
    'sty'           => 'text/x-tex',
 
97
    'svg'           => 'image/svg+xml',
 
98
    'swf'           => 'application/x-shockwave-flash',
 
99
    't'             => 'application/x-troff',
 
100
    'tar'           => 'application/x-tar',
 
101
    'tar.Z'         => 'application/x-tarz',
 
102
    'tar.bz'        => 'application/x-bzip-compressed-tar',
 
103
    'tar.bz2'       => 'application/x-bzip-compressed-tar',
 
104
    'tar.gz'        => 'application/x-compressed-tar',
 
105
    'tar.lzo'       => 'application/x-tzo',
 
106
    'tcl'           => 'text/x-tcl',
 
107
    'tex'           => 'text/x-tex',
 
108
    'texi'          => 'text/x-texinfo',
 
109
    'texinfo'       => 'text/x-texinfo',
 
110
    'tgz'           => 'application/x-compressed-tar',
 
111
    'theme'         => 'application/x-theme',
 
112
    'tif'           => 'image/tiff',
 
113
    'tiff'          => 'image/tiff',
 
114
    'tk'            => 'text/x-tcl',
 
115
    'torrent'       => 'application/x-bittorrent',
 
116
    'ttf'           => 'application/x-font-ttf',
 
117
    'txt'           => 'text/plain',
 
118
    'uri'           => 'text/x-uri',
 
119
    'url'           => 'text/x-uri',
 
120
    'vcf'           => 'text/x-vcalendar',
 
121
    'vcs'           => 'text/x-vcalendar',
 
122
    'vct'           => 'text/x-vcard',
 
123
    'vfb'           => 'text/calendar',
 
124
    'vob'           => 'video/mpeg',
 
125
    'wav'           => 'audio/x-wav',
 
126
    'wmf'           => 'image/x-wmf',
 
127
    'wml'           => 'text/vnd.wap.wml',
 
128
    'xla'           => 'application/vnd.ms-excel',
 
129
    'xlc'           => 'application/vnd.ms-excel',
 
130
    'xld'           => 'application/vnd.ms-excel',
 
131
    'xll'           => 'application/vnd.ms-excel',
 
132
    'xlm'           => 'application/vnd.ms-excel',
 
133
    'xls'           => 'application/vnd.ms-excel',
 
134
    'xlt'           => 'application/vnd.ms-excel',
 
135
    'xlw'           => 'application/vnd.ms-excel',
 
136
    'xm'            => 'audio/x-mod',
 
137
    'xmi'           => 'text/x-xmi',
 
138
    'xml'           => 'text/xml',
 
139
    'xul'           => 'application/vnd.mozilla.xul+xml',
 
140
    'z'             => 'application/x-compress',
 
141
    'zip'           => 'application/zip',
 
142
    'zoo'           => 'application/x-zoo',
 
143
);
 
 
b'\\ No newline at end of file'