author | Dan |
Mon, 05 Nov 2007 20:00:41 -0500 | |
changeset 237 | c26308d81882 |
parent 156 | edbff85d43e8 |
child 166 | d53cc29308f4 |
permissions | -rw-r--r-- |
1 | 1 |
<?php |
2 |
||
3 |
/* |
|
4 |
* Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between |
|
142
ca9118d9c0f2
Rebrand as 1.0.2 (Coblynau); internal links are now parsed by RenderMan::parse_internal_links()
Dan
parents:
98
diff
changeset
|
5 |
* Version 1.0.2 (Coblynau) |
1 | 6 |
* Copyright (C) 2006-2007 Dan Fuhry |
7 |
* constants.php - important defines used Enano-wide |
|
8 |
* |
|
9 |
* This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License |
|
10 |
* as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. |
|
11 |
* |
|
12 |
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
|
13 |
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
|
14 |
*/ |
|
15 |
||
16 |
// Ban types |
|
17 |
||
18 |
define('BAN_IP', 1); |
|
19 |
define('BAN_USER', 2); |
|
20 |
define('BAN_EMAIL', 3); |
|
21 |
||
22 |
// ACL permission types |
|
23 |
define('AUTH_ALLOW', 4); |
|
24 |
define('AUTH_WIKIMODE', 3); // User can do this if wiki mode is enabled |
|
25 |
define('AUTH_DISALLOW', 2); |
|
26 |
define('AUTH_DENY', 1); // A Deny setting overrides *everything* |
|
27 |
||
28 |
define('ACL_TYPE_GROUP', 1); |
|
29 |
define('ACL_TYPE_USER', 2); |
|
30 |
define('ACL_TYPE_PRESET', 3); |
|
31 |
||
32 |
// System groups |
|
33 |
define('GROUP_ID_ADMIN', 2); |
|
34 |
define('GROUP_ID_MOD', 3); |
|
35 |
||
73
0a74676a2f2f
Made the move to Loch Ness, and got some basic page grouping functionality working. TODO: fix some UI issues in Javascript ACL editor and change non-JS ACL editor to work with page groups too
Dan
parents:
21
diff
changeset
|
36 |
// Page group types |
0a74676a2f2f
Made the move to Loch Ness, and got some basic page grouping functionality working. TODO: fix some UI issues in Javascript ACL editor and change non-JS ACL editor to work with page groups too
Dan
parents:
21
diff
changeset
|
37 |
define('PAGE_GRP_CATLINK', 1); |
0a74676a2f2f
Made the move to Loch Ness, and got some basic page grouping functionality working. TODO: fix some UI issues in Javascript ACL editor and change non-JS ACL editor to work with page groups too
Dan
parents:
21
diff
changeset
|
38 |
define('PAGE_GRP_TAGGED', 2); |
0a74676a2f2f
Made the move to Loch Ness, and got some basic page grouping functionality working. TODO: fix some UI issues in Javascript ACL editor and change non-JS ACL editor to work with page groups too
Dan
parents:
21
diff
changeset
|
39 |
define('PAGE_GRP_NORMAL', 3); |
156
edbff85d43e8
Feature add: new page group type: regular expression match (PCRE)
Dan
parents:
142
diff
changeset
|
40 |
define('PAGE_GRP_REGEX', 4); |
73
0a74676a2f2f
Made the move to Loch Ness, and got some basic page grouping functionality working. TODO: fix some UI issues in Javascript ACL editor and change non-JS ACL editor to work with page groups too
Dan
parents:
21
diff
changeset
|
41 |
|
1 | 42 |
// |
43 |
// User types - don't touch these |
|
44 |
// |
|
45 |
||
46 |
// User can do absolutely everything |
|
47 |
define('USER_LEVEL_ADMIN', 9); |
|
48 |
||
49 |
// User can edit/[un]approve comments and do some basic administration |
|
50 |
define('USER_LEVEL_MOD', 5); |
|
51 |
||
52 |
// Default for members. When authed at this level, the user can change his/her password. |
|
53 |
define('USER_LEVEL_CHPREF', 3); |
|
54 |
||
55 |
// The level that you will be running at most of the time |
|
56 |
define('USER_LEVEL_MEMBER', 2); |
|
57 |
||
58 |
// Special level for guests |
|
59 |
define('USER_LEVEL_GUEST', 1); |
|
60 |
||
61 |
// Group status |
|
62 |
||
63 |
define('GROUP_CLOSED', 1); |
|
64 |
define('GROUP_REQUEST', 2); |
|
65 |
define('GROUP_HIDDEN', 3); |
|
66 |
define('GROUP_OPEN', 4); |
|
67 |
||
68 |
// Other stuff |
|
69 |
||
70 |
define('MAX_PMS_PER_BATCH', 7); // The maximum number of users that users can send PMs to in one go; restriction does not apply to users with mod_misc rights |
|
71 |
define('SEARCH_RESULTS_PER_PAGE', 10); |
|
72 |
define('MYSQL_MAX_PACKET_SIZE', 1048576); // 1MB; this is the default in MySQL 4.x I think |
|
73 |
define('SEARCH_MODE', 'FULLTEXT'); // Can be FULLTEXT or BUILTIN |
|
74 |
||
75 |
// Sidebar |
|
76 |
||
77 |
define('BLOCK_WIKIFORMAT', 0); |
|
78 |
define('BLOCK_TEMPLATEFORMAT', 1); |
|
79 |
define('BLOCK_HTML', 2); |
|
80 |
define('BLOCK_PHP', 3); |
|
81 |
define('BLOCK_PLUGIN', 4); |
|
82 |
define('SIDEBAR_LEFT', 1); |
|
83 |
define('SIDEBAR_RIGHT', 2); |
|
84 |
||
85 |
define('GENERAL_ERROR', 'General error'); |
|
86 |
define('GENERAL_NOTICE', 'Information'); |
|
87 |
define('CRITICAL_ERROR', 'Critical error'); |
|
88 |
||
89 |
// You can un-comment the next line to require database backups to be encrypted using the site's unique key. |
|
90 |
// This keeps the file safe in transit, but also prevents any type of editing to the file. This is NOT |
|
91 |
// recommended except for tiny sites because encrypting an average of 2MB of data will take a while. |
|
92 |
// define('SQL_BACKUP_CRYPT', ''); |
|
93 |
||
94 |
// Security |
|
95 |
||
98
6457a9b983c6
Fixed non-object reference in databaseless template, added locking for Javascript paginator, made comments on AES key size more clear in constants, and disallowed "anonymous" and IP addresses for admin username in install.php; Loch Ness release candidate
Dan
parents:
73
diff
changeset
|
96 |
// AES cipher strength - defaults to 192 and cannot be changed after installation. |
6457a9b983c6
Fixed non-object reference in databaseless template, added locking for Javascript paginator, made comments on AES key size more clear in constants, and disallowed "anonymous" and IP addresses for admin username in install.php; Loch Ness release candidate
Dan
parents:
73
diff
changeset
|
97 |
// This can be 128, 192, or 256. |
6457a9b983c6
Fixed non-object reference in databaseless template, added locking for Javascript paginator, made comments on AES key size more clear in constants, and disallowed "anonymous" and IP addresses for admin username in install.php; Loch Ness release candidate
Dan
parents:
73
diff
changeset
|
98 |
define('AES_BITS', 192); |
1 | 99 |
|
100 |
// Define this to enable Mcrypt support which makes encryption work faster. This is only triggered if Mcrypt support is detected. |
|
101 |
// THIS IS DISABLED BECAUSE MCRYPT DOES NOT SEEM TO SUPPORT THE AES BLOCK SIZES THAT ENANO USES. |
|
102 |
//define('MCRYPT_ACCEL', ''); |
|
103 |
||
104 |
//if(defined('MCRYPT_RIJNDAEL_' . AES_BITS)) |
|
105 |
//{ |
|
106 |
// eval('$bs = MCRYPT_RIJNDAEL_' . AES_BITS . ';'); |
|
107 |
// $bs = mcrypt_module_get_algo_block_size($bs); |
|
108 |
// $bs = $bs * 8; |
|
109 |
// define('AES_BLOCKSIZE', $bs); |
|
110 |
//} |
|
111 |
// else |
|
112 |
// { |
|
113 |
// define('AES_BLOCKSIZE', AES_BITS); |
|
114 |
// } |
|
115 |
||
116 |
define('AES_BLOCKSIZE', 128); |
|
117 |
||
118 |
/* |
|
119 |
* MIMETYPES |
|
120 |
* |
|
121 |
* This array defines the 166 known MIME types used by the Enano file-extension filter. Whether extensions are allowed or not is |
|
122 |
* determined by a bitfield in the config table. |
|
123 |
*/ |
|
124 |
||
125 |
global $mime_types, $mimetype_exps, $mimetype_extlist; |
|
126 |
||
127 |
// IMPORTANT: this array can NEVER have items removed from it or key indexes changed |
|
128 |
$mime_types = Array ( |
|
129 |
'ai' => 'application/postscript', |
|
130 |
'aif' => 'audio/x-aiff', |
|
131 |
'aifc' => 'audio/x-aiff', |
|
132 |
'aiff' => 'audio/x-aiff', |
|
133 |
'au' => 'audio/basic', |
|
134 |
'avi' => 'video/x-msvideo', |
|
135 |
'bcpio' => 'application/x-bcpio', |
|
136 |
'bin' => 'application/octet-stream', |
|
137 |
'bmp' => 'image/bmp', |
|
138 |
'bz2' => 'application/x-bzip', |
|
139 |
'cdf' => 'application/x-netcdf', |
|
140 |
'cgm' => 'image/cgm', |
|
141 |
'class' => 'application/octet-stream', |
|
142 |
'cpio' => 'application/x-cpio', |
|
143 |
'cpt' => 'application/mac-compactpro', |
|
144 |
'csh' => 'application/x-csh', |
|
145 |
'css' => 'text/css', |
|
146 |
'dcr' => 'application/x-director', |
|
147 |
'dir' => 'application/x-director', |
|
148 |
'djv' => 'image/vnd.djvu', |
|
149 |
'djvu' => 'image/vnd.djvu', |
|
150 |
'dll' => 'application/octet-stream', |
|
151 |
'dms' => 'application/octet-stream', |
|
152 |
'doc' => 'application/msword', |
|
153 |
'dtd' => 'application/xml-dtd', |
|
154 |
'dvi' => 'application/x-dvi', |
|
155 |
'dxr' => 'application/x-director', |
|
156 |
'eps' => 'application/postscript', |
|
157 |
'etx' => 'text/x-setext', |
|
158 |
'exe' => 'application/octet-stream', |
|
159 |
'ez' => 'application/andrew-inset', |
|
160 |
'gif' => 'image/gif', |
|
161 |
'gram' => 'application/srgs', |
|
162 |
'grxml' => 'application/srgs+xml', |
|
163 |
'gtar' => 'application/x-gtar', |
|
164 |
'gz' => 'application/x-gzip', |
|
165 |
'hdf' => 'application/x-hdf', |
|
166 |
'hqx' => 'application/mac-binhex40', |
|
167 |
'htm' => 'text/html', |
|
168 |
'html' => 'text/html', |
|
169 |
'ice' => 'x-conference/x-cooltalk', |
|
170 |
'ico' => 'image/x-icon', |
|
171 |
'ics' => 'text/calendar', |
|
172 |
'ief' => 'image/ief', |
|
173 |
'ifb' => 'text/calendar', |
|
174 |
'iges' => 'model/iges', |
|
175 |
'igs' => 'model/iges', |
|
176 |
'jar' => 'application/zip', |
|
177 |
'jpe' => 'image/jpeg', |
|
178 |
'jpeg' => 'image/jpeg', |
|
179 |
'jpg' => 'image/jpeg', |
|
180 |
'js' => 'application/x-javascript', |
|
181 |
'kar' => 'audio/midi', |
|
182 |
'latex' => 'application/x-latex', |
|
183 |
'lha' => 'application/octet-stream', |
|
184 |
'lzh' => 'application/octet-stream', |
|
185 |
'm3u' => 'audio/x-mpegurl', |
|
186 |
'man' => 'application/x-troff-man', |
|
187 |
'mathml' => 'application/mathml+xml', |
|
188 |
'me' => 'application/x-troff-me', |
|
189 |
'mesh' => 'model/mesh', |
|
190 |
'mid' => 'audio/midi', |
|
191 |
'midi' => 'audio/midi', |
|
192 |
'mif' => 'application/vnd.mif', |
|
193 |
'mov' => 'video/quicktime', |
|
194 |
'movie' => 'video/x-sgi-movie', |
|
195 |
'mp2' => 'audio/mpeg', |
|
196 |
'mp3' => 'audio/mpeg', |
|
197 |
'mpe' => 'video/mpeg', |
|
198 |
'mpeg' => 'video/mpeg', |
|
199 |
'mpg' => 'video/mpeg', |
|
200 |
'mpga' => 'audio/mpeg', |
|
201 |
'ms' => 'application/x-troff-ms', |
|
202 |
'msh' => 'model/mesh', |
|
203 |
'mxu' => 'video/vnd.mpegurl', |
|
204 |
'nc' => 'application/x-netcdf', |
|
205 |
'oda' => 'application/oda', |
|
206 |
'ogg' => 'application/ogg', |
|
207 |
'ogm' => 'application/ogg', |
|
208 |
'pbm' => 'image/x-portable-bitmap', |
|
209 |
'pdb' => 'chemical/x-pdb', |
|
210 |
'pdf' => 'application/pdf', |
|
211 |
'pgm' => 'image/x-portable-graymap', |
|
212 |
'pgn' => 'application/x-chess-pgn', |
|
213 |
'png' => 'image/png', |
|
214 |
'pnm' => 'image/x-portable-anymap', |
|
215 |
'ppm' => 'image/x-portable-pixmap', |
|
216 |
'ppt' => 'application/vnd.ms-powerpoint', |
|
217 |
'ps' => 'application/postscript', |
|
218 |
'psd' => 'image/x-photoshop', |
|
219 |
'qt' => 'video/quicktime', |
|
220 |
'ra' => 'audio/x-realaudio', |
|
221 |
'ram' => 'audio/x-pn-realaudio', |
|
222 |
'ras' => 'image/x-cmu-raster', |
|
223 |
'rdf' => 'text/xml', |
|
224 |
'rgb' => 'image/x-rgb', |
|
225 |
'rm' => 'audio/x-pn-realaudio', |
|
226 |
'roff' => 'application/x-troff', |
|
227 |
'rpm' => 'audio/x-pn-realaudio-plugin', |
|
228 |
'rss' => 'text/xml', |
|
229 |
'rtf' => 'text/rtf', |
|
230 |
'rtx' => 'text/richtext', |
|
231 |
'sgm' => 'text/sgml', |
|
232 |
'sgml' => 'text/sgml', |
|
233 |
'sh' => 'application/x-sh', |
|
234 |
'shar' => 'application/x-shar', |
|
235 |
'silo' => 'model/mesh', |
|
236 |
'sit' => 'application/x-stuffit', |
|
237 |
'skd' => 'application/x-koan', |
|
238 |
'skm' => 'application/x-koan', |
|
239 |
'skp' => 'application/x-koan', |
|
240 |
'skt' => 'application/x-koan', |
|
241 |
'smi' => 'application/smil', |
|
242 |
'smil' => 'application/smil', |
|
243 |
'snd' => 'audio/basic', |
|
244 |
'so' => 'application/octet-stream', |
|
245 |
'spl' => 'application/x-futuresplash', |
|
246 |
'src' => 'application/x-wais-source', |
|
247 |
'stc' => 'application/zip', |
|
248 |
'std' => 'application/zip', |
|
249 |
'sti' => 'application/zip', |
|
250 |
'stm' => 'application/zip', |
|
251 |
'stw' => 'application/zip', |
|
252 |
'sv4cpio' => 'application/x-sv4cpio', |
|
253 |
'sv4crc' => 'application/x-sv4crc', |
|
254 |
'svg' => 'image/svg+xml', |
|
255 |
'swf' => 'application/x-shockwave-flash', |
|
256 |
'sxc' => 'application/zip', |
|
257 |
'sxd' => 'application/zip', |
|
258 |
'sxi' => 'application/zip', |
|
259 |
'sxm' => 'application/zip', |
|
260 |
'sxw' => 'application/zip', |
|
261 |
't' => 'application/x-troff', |
|
262 |
'tar' => 'application/x-tar', |
|
263 |
'tcl' => 'application/x-tcl', |
|
264 |
'tex' => 'application/x-tex', |
|
265 |
'texi' => 'application/x-texinfo', |
|
266 |
'texinfo' => 'application/x-texinfo', |
|
267 |
'tif' => 'image/tiff', |
|
268 |
'tiff' => 'image/tiff', |
|
269 |
'tr' => 'application/x-troff', |
|
270 |
'tsv' => 'text/tab-separated-values', |
|
271 |
'txt' => 'text/plain', |
|
272 |
'ustar' => 'application/x-ustar', |
|
273 |
'vcd' => 'application/x-cdlink', |
|
274 |
'vrml' => 'model/vrml', |
|
275 |
'vxml' => 'application/voicexml+xml', |
|
276 |
'wav' => 'audio/x-wav', |
|
277 |
'wbmp' => 'image/vnd.wap.wbmp', |
|
278 |
'wbxml' => 'application/vnd.wap.wbxml', |
|
279 |
'wml' => 'text/vnd.wap.wml', |
|
280 |
'wmlc' => 'application/vnd.wap.wmlc', |
|
281 |
'wmls' => 'text/vnd.wap.wmlscript', |
|
282 |
'wmlsc' => 'application/vnd.wap.wmlscriptc', |
|
283 |
'wrl' => 'model/vrml', |
|
284 |
'xbm' => 'image/x-xbitmap', |
|
285 |
'xcf' => 'image/xcf', |
|
286 |
'xht' => 'application/xhtml+xml', |
|
287 |
'xhtml' => 'application/xhtml+xml', |
|
288 |
'xls' => 'application/vnd.ms-excel', |
|
289 |
'xml' => 'text/xml', |
|
290 |
'xpi' => 'application/zip', |
|
291 |
'xpm' => 'image/x-xpixmap', |
|
292 |
'xsl' => 'text/xml', |
|
293 |
'xslt' => 'text/xml', |
|
294 |
'xwd' => 'image/x-xwindowdump', |
|
295 |
'xyz' => 'chemical/x-xyz', |
|
296 |
'zip' => 'application/zip', |
|
297 |
); |
|
298 |
||
299 |
$mimetype_extlist = Array( |
|
300 |
'application/andrew-inset'=>'ez', |
|
301 |
'application/mac-binhex40'=>'hqx', |
|
302 |
'application/mac-compactpro'=>'cpt', |
|
303 |
'application/mathml+xml'=>'mathml', |
|
304 |
'application/msword'=>'doc', |
|
305 |
'application/octet-stream'=>'bin dms lha lzh exe class so dll', |
|
306 |
'application/oda'=>'oda', |
|
307 |
'application/ogg'=>'ogg ogm', |
|
308 |
'application/pdf'=>'pdf', |
|
309 |
'application/postscript'=>'ai eps ps', |
|
310 |
'application/rdf+xml'=>'rdf', |
|
311 |
'application/smil'=>'smi smil', |
|
312 |
'application/srgs'=>'gram', |
|
313 |
'application/srgs+xml'=>'grxml', |
|
314 |
'application/vnd.mif'=>'mif', |
|
315 |
'application/vnd.ms-excel'=>'xls', |
|
316 |
'application/vnd.ms-powerpoint'=>'ppt', |
|
317 |
'application/vnd.wap.wbxml'=>'wbxml', |
|
318 |
'application/vnd.wap.wmlc'=>'wmlc', |
|
319 |
'application/vnd.wap.wmlscriptc'=>'wmlsc', |
|
320 |
'application/voicexml+xml'=>'vxml', |
|
321 |
'application/x-bcpio'=>'bcpio', |
|
322 |
'application/x-bzip'=>'gz bz2', |
|
323 |
'application/x-cdlink'=>'vcd', |
|
324 |
'application/x-chess-pgn'=>'pgn', |
|
325 |
'application/x-cpio'=>'cpio', |
|
326 |
'application/x-csh'=>'csh', |
|
327 |
'application/x-director'=>'dcr dir dxr', |
|
328 |
'application/x-dvi'=>'dvi', |
|
329 |
'application/x-futuresplash'=>'spl', |
|
330 |
'application/x-gtar'=>'gtar tar', |
|
331 |
'application/x-gzip'=>'gz', |
|
332 |
'application/x-hdf'=>'hdf', |
|
333 |
'application/x-jar'=>'jar', |
|
334 |
'application/x-javascript'=>'js', |
|
335 |
'application/x-koan'=>'skp skd skt skm', |
|
336 |
'application/x-latex'=>'latex', |
|
337 |
'application/x-netcdf'=>'nc cdf', |
|
338 |
'application/x-sh'=>'sh', |
|
339 |
'application/x-shar'=>'shar', |
|
340 |
'application/x-shockwave-flash'=>'swf', |
|
341 |
'application/x-stuffit'=>'sit', |
|
342 |
'application/x-sv4cpio'=>'sv4cpio', |
|
343 |
'application/x-sv4crc'=>'sv4crc', |
|
344 |
'application/x-tar'=>'tar', |
|
345 |
'application/x-tcl'=>'tcl', |
|
346 |
'application/x-tex'=>'tex', |
|
347 |
'application/x-texinfo'=>'texinfo texi', |
|
348 |
'application/x-troff'=>'t tr roff', |
|
349 |
'application/x-troff-man'=>'man', |
|
350 |
'application/x-troff-me'=>'me', |
|
351 |
'application/x-troff-ms'=>'ms', |
|
352 |
'application/x-ustar'=>'ustar', |
|
353 |
'application/x-wais-source'=>'src', |
|
354 |
'application/x-xpinstall'=>'xpi', |
|
355 |
'application/xhtml+xml'=>'xhtml xht', |
|
356 |
'application/xslt+xml'=>'xslt', |
|
357 |
'application/xml'=>'xml xsl', |
|
358 |
'application/xml-dtd'=>'dtd', |
|
359 |
'application/zip'=>'zip jar xpi sxc stc sxd std sxi sti sxm stm sxw stw ', |
|
360 |
'audio/basic'=>'au snd', |
|
361 |
'audio/midi'=>'mid midi kar', |
|
362 |
'audio/mpeg'=>'mpga mp2 mp3', |
|
363 |
'audio/ogg'=>'ogg ', |
|
364 |
'audio/x-aiff'=>'aif aiff aifc', |
|
365 |
'audio/x-mpegurl'=>'m3u', |
|
366 |
'audio/x-ogg'=>'ogg ', |
|
367 |
'audio/x-pn-realaudio'=>'ram rm', |
|
368 |
'audio/x-pn-realaudio-plugin'=>'rpm', |
|
369 |
'audio/x-realaudio'=>'ra', |
|
370 |
'audio/x-wav'=>'wav', |
|
371 |
'chemical/x-pdb'=>'pdb', |
|
372 |
'chemical/x-xyz'=>'xyz', |
|
373 |
'image/bmp'=>'bmp', |
|
374 |
'image/cgm'=>'cgm', |
|
375 |
'image/gif'=>'gif', |
|
376 |
'image/ief'=>'ief', |
|
377 |
'image/jpeg'=>'jpeg jpg jpe', |
|
378 |
'image/png'=>'png', |
|
379 |
'image/svg+xml'=>'svg', |
|
380 |
'image/tiff'=>'tiff tif', |
|
381 |
'image/vnd.djvu'=>'djvu djv', |
|
382 |
'image/vnd.wap.wbmp'=>'wbmp', |
|
383 |
'image/x-cmu-raster'=>'ras', |
|
384 |
'image/x-icon'=>'ico', |
|
385 |
'image/x-portable-anymap'=>'pnm', |
|
386 |
'image/x-portable-bitmap'=>'pbm', |
|
387 |
'image/x-portable-graymap'=>'pgm', |
|
388 |
'image/x-portable-pixmap'=>'ppm', |
|
389 |
'image/x-rgb'=>'rgb', |
|
390 |
'image/x-photoshop'=>'psd', |
|
391 |
'image/x-xbitmap'=>'xbm', |
|
392 |
'image/x-xpixmap'=>'xpm', |
|
393 |
'image/x-xwindowdump'=>'xwd', |
|
394 |
'model/iges'=>'igs iges', |
|
395 |
'model/mesh'=>'msh mesh silo', |
|
396 |
'model/vrml'=>'wrl vrml', |
|
397 |
'text/calendar'=>'ics ifb', |
|
398 |
'text/css'=>'css', |
|
399 |
'text/html'=>'html htm', |
|
400 |
'text/plain'=>'txt', |
|
401 |
'text/richtext'=>'rtx', |
|
402 |
'text/rtf'=>'rtf', |
|
403 |
'text/sgml'=>'sgml sgm', |
|
404 |
'text/tab-separated-values'=>'tsv', |
|
405 |
'text/vnd.wap.wml'=>'wml', |
|
406 |
'text/vnd.wap.wmlscript'=>'wmls', |
|
407 |
'text/xml'=>'xml xsl xslt rss rdf', |
|
408 |
'text/x-setext'=>'etx', |
|
409 |
'video/mpeg'=>'mpeg mpg mpe', |
|
410 |
'video/ogg'=>'ogm ogg', |
|
411 |
'video/quicktime'=>'qt mov', |
|
412 |
'video/vnd.mpegurl'=>'mxu', |
|
413 |
'video/x-msvideo'=>'avi', |
|
414 |
'video/x-ogg'=>'ogm ogg', |
|
415 |
'video/x-sgi-movie'=>'movie', |
|
416 |
'x-conference/x-cooltalk'=>'ice', |
|
417 |
// Added for Enano |
|
418 |
'image/xcf' => 'xcf xcfbz2 xcf.bz2', |
|
419 |
); |
|
420 |
||
421 |
$k = array_keys($mime_types); |
|
422 |
$mimetype_exps = Array(); |
|
423 |
foreach($k as $s => $x) |
|
424 |
{ |
|
425 |
$mimetype_exps[$x] = pow(2, $s); |
|
426 |
} |
|
427 |
||
428 |
unset($k, $s, $x); |