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