summaryrefslogtreecommitdiff
path: root/www/horde4-base/files/patch-config_mime_drivers.php.dist
blob: b0417103aace8fd084f5d1b7b6990715cbd037f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
--- config/mime_drivers.php.dist.orig	Fri Nov 19 03:40:31 2004
+++ config/mime_drivers.php.dist	Thu Nov 25 21:58:43 2004
@@ -37,10 +37,20 @@
  * zip            Zip files
  */
 $mime_drivers_map['horde']['registered'] = array(
-    'css', 'deb', 'enriched', 'enscript', 'html', 'images', 'msword', 'msexcel',
-    'mspowerpoint', 'ooo', 'pdf', 'php', 'plain', 'rar', 'report',
-    'richtext', 'rpm', 'security', 'simple', 'srchighlite', 'tgz', 'tnef',
-    'vcard', 'webcpp', 'zip');
+    'css'
+//UNCOMMENTIFDEB , 'deb'
+    , 'enriched'
+//UNCOMMENTIFES , 'enscript'
+    , 'html', 'images'
+//UNCOMMENTIFWV , 'msword'
+//UNCOMMENTIFXL , 'msexcel', 'mspowerpoint'
+    , 'ooo', 'pdf', 'php', 'plain', 'rar', 'report', 'richtext'
+//UNCOMMENTIFRPM , 'rpm'
+    , 'security', 'simple'
+//UNCOMMENTIFSRCHIGH , 'srchighlite'
+    , 'tgz', 'tnef', 'vcard'
+//UNCOMMENTIFWCPP , 'webcpp'
+    , 'zip');
 
 
 /**
@@ -161,66 +171,66 @@
  * Web C Plus Plus driver settings
  * http://webcpp.sourceforge.net/
  */
-$mime_drivers['horde']['webcpp']['location'] = 'C:\Program Files\Jeffrey Bakker\webcpp\webcpp.exe';
-$mime_drivers['horde']['webcpp']['inline'] = true;
-$mime_drivers['horde']['webcpp']['handles'] = array(
-    'text/xml', 'text/sgml', 'application/xml',
-    'application/x-sh', 'application/x-javascript', 'application/x-tcl',
-    'x-extension/asm', 'application/x-asp', 'x-extension/bas',
-    'x-extension/cs', 'text/x-csrc', 'x-extension/rc',
-    'text/x-c++src', 'text/x-c++src', 'text/x-c++src',
-    'text/x-chdr', 'x-extension/bat', 'text/x-fortran',
-    'x-extension/f77', 'x-extension/f90', 'x-extension/for',
-    'x-extension/ftn', 'text/x-java', 'application/x-javascript',
-    'text/sgml', 'text/xml', 'text/x-pascal',
-    'application/x-cgi', 'application/x-perl', 'application/x-python',
-    'text/x-sql', 'text/x-tcl',
-    'application/x-shellscript', 'x-extension/vhd', 'x-extension/vhdl');
-$mime_drivers['horde']['webcpp']['icons'] = array(
-    'default'                  => 'text.png',
-    'text/xml'                 => 'xml.png',
-    'text/x-csrc'              => 'source-c.png',
-    'text/x-chdr'              => 'source-h.png',
-    'text/x-java'              => 'source-java.png',
-    'application/x-javascript' => 'script-js.png');
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['location'] = '%%LOCALBASE%%/bin/webcpp';
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['inline'] = true;
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['handles'] = array(
+//UNCOMMENTIFWCPP    'text/xml', 'text/sgml', 'application/xml',
+//UNCOMMENTIFWCPP    'application/x-sh', 'application/x-javascript', 'application/x-tcl',
+//UNCOMMENTIFWCPP    'x-extension/asm', 'application/x-asp', 'x-extension/bas',
+//UNCOMMENTIFWCPP    'x-extension/cs', 'text/x-csrc', 'x-extension/rc',
+//UNCOMMENTIFWCPP    'text/x-c++src', 'text/x-c++src', 'text/x-c++src',
+//UNCOMMENTIFWCPP    'text/x-chdr', 'x-extension/bat', 'text/x-fortran',
+//UNCOMMENTIFWCPP    'x-extension/f77', 'x-extension/f90', 'x-extension/for',
+//UNCOMMENTIFWCPP    'x-extension/ftn', 'text/x-java', 'application/x-javascript',
+//UNCOMMENTIFWCPP    'text/sgml', 'text/xml', 'text/x-pascal',
+//UNCOMMENTIFWCPP    'application/x-cgi', 'application/x-perl', 'application/x-python',
+//UNCOMMENTIFWCPP    'text/x-sql', 'text/x-tcl',
+//UNCOMMENTIFWCPP    'application/x-shellscript', 'x-extension/vhd', 'x-extension/vhdl');
+//UNCOMMENTIFWCPP$mime_drivers['horde']['webcpp']['icons'] = array(
+//UNCOMMENTIFWCPP    'default'                  => 'text.png',
+//UNCOMMENTIFWCPP    'text/xml'                 => 'xml.png',
+//UNCOMMENTIFWCPP    'text/x-csrc'              => 'source-c.png',
+//UNCOMMENTIFWCPP    'text/x-chdr'              => 'source-h.png',
+//UNCOMMENTIFWCPP    'text/x-java'              => 'source-java.png',
+//UNCOMMENTIFWCPP    'application/x-javascript' => 'script-js.png');
 
 /**
  * Source-Highlight driver settings
  * http://www.gnu.org/software/src-highlite/
  */
-$mime_drivers['horde']['srchighlite']['location'] = 'C:\Program Files\src-highlite\bin\source-highlight.exe';
-$mime_drivers['horde']['srchighlite']['inline'] = true;
-$mime_drivers['horde']['srchighlite']['handles'] = array(
-    'text/x-csrc', 'text/x-c++src', 'text/x-java',
-    'application/x-perl', 'application/x-python', 'text/x-c++src',
-    'text/cpp');
-$mime_drivers['horde']['srchighlite']['icons'] = array(
-    'default'                  => 'text.png',
-    'text/x-csrc'              => 'source-c.png',
-    'text/x-c++src'            => 'source-c.png',
-    'text/cpp'                 => 'source-c.png',
-    'text/x-java'              => 'source-java.png');
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['location'] = '%%LOCALBASE%%/bin/source-highlight';
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['inline'] = true;
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['handles'] = array(
+//UNCOMMENTIFSRCHIGH    'text/x-csrc', 'text/x-c++src', 'text/x-java',
+//UNCOMMENTIFSRCHIGH    'application/x-perl', 'application/x-python', 'text/x-c++src',
+//UNCOMMENTIFSRCHIGH    'text/cpp');
+//UNCOMMENTIFSRCHIGH$mime_drivers['horde']['srchighlite']['icons'] = array(
+//UNCOMMENTIFSRCHIGH    'default'                  => 'text.png',
+//UNCOMMENTIFSRCHIGH    'text/x-csrc'              => 'source-c.png',
+//UNCOMMENTIFSRCHIGH    'text/x-c++src'            => 'source-c.png',
+//UNCOMMENTIFSRCHIGH    'text/cpp'                 => 'source-c.png',
+//UNCOMMENTIFSRCHIGH    'text/x-java'              => 'source-java.png');
 
 /**
  * GNU Enscript driver settings
  */
-$mime_drivers['horde']['enscript']['location'] = '/usr/bin/enscript';
-$mime_drivers['horde']['enscript']['inline'] = true;
-$mime_drivers['horde']['enscript']['handles'] = array(
-    'application/x-shellscript', 'application/x-javascript',
-    'application/x-perl', 'application/xml', 'text/xml',
-    'text/diff', 'text/x-diff', 'text/x-patch', 'text/x-csrc',
-    'x-extension/cs', 'text/x-java', 'text/x-chdr', 'text/x-c++src',
-    'text/x-c++hdr', 'x-extension/vhd', 'x-extension/vhdl', 'text/x-sql',
-    'x-extension/vb', 'x-extension/vba', 'text/x-emacs-lisp');
-$mime_drivers['horde']['enscript']['icons'] = array(
-    'default'                  => 'text.png',
-    'text/xml'                 => 'xml.png',
-    'application/xml'          => 'xml.png',
-    'text/x-csrc'              => 'source-c.png',
-    'text/x-chdr'              => 'source-h.png',
-    'text/x-java'              => 'source-java.png',
-    'application/x-javascript' => 'script-js.png');
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['location'] = '%%LOCALBASE%%//bin/enscript';
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['inline'] = true;
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['handles'] = array(
+//UNCOMMENTIFES    'application/x-shellscript', 'application/x-javascript',
+//UNCOMMENTIFES    'application/x-perl', 'application/xml', 'text/xml',
+//UNCOMMENTIFES    'text/diff', 'text/x-diff', 'text/x-patch', 'text/x-csrc',
+//UNCOMMENTIFES    'x-extension/cs', 'text/x-java', 'text/x-chdr', 'text/x-c++src',
+//UNCOMMENTIFES    'text/x-c++hdr', 'x-extension/vhd', 'x-extension/vhdl', 'text/x-sql',
+//UNCOMMENTIFES    'x-extension/vb', 'x-extension/vba', 'text/x-emacs-lisp');
+//UNCOMMENTIFES$mime_drivers['horde']['enscript']['icons'] = array(
+//UNCOMMENTIFES    'default'                  => 'text.png',
+//UNCOMMENTIFES    'text/xml'                 => 'xml.png',
+//UNCOMMENTIFES    'application/xml'          => 'xml.png',
+//UNCOMMENTIFES    'text/x-csrc'              => 'source-c.png',
+//UNCOMMENTIFES    'text/x-chdr'              => 'source-h.png',
+//UNCOMMENTIFES    'text/x-java'              => 'source-java.png',
+//UNCOMMENTIFES    'application/x-javascript' => 'script-js.png');
 
 
 /**
@@ -272,14 +282,14 @@
  * The 'location' entry should point to the 'wvHtml' program, NOT the
  * 'wvWare' program.
  */
-$mime_drivers['horde']['msword']['location'] = '/usr/bin/wvHtml';
-$mime_drivers['horde']['msword']['inline'] = false;
-$mime_drivers['horde']['msword']['handles'] = array(
-    'application/msword',
-    'application/rtf',
-    'text/rtf');
-$mime_drivers['horde']['msword']['icons'] = array(
-    'default' => 'msword.png');
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['location'] = '%%LOCALBASE%%/bin/wvHtml';
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['inline'] = false;
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['handles'] = array(
+//UNCOMMENTIFWV    'application/msword',
+//UNCOMMENTIFWV    'application/rtf',
+//UNCOMMENTIFWV    'text/rtf');
+//UNCOMMENTIFWV$mime_drivers['horde']['msword']['icons'] = array(
+//UNCOMMENTIFWV    'default' => 'msword.png');
 
 
 /**
@@ -287,14 +297,14 @@
  * This driver requires xlhtml to be installed.
  * xlhtml homepage: http://chicago.sourceforge.net/xlhtml/
  */
-$mime_drivers['horde']['msexcel']['location'] = '/usr/local/bin/xlhtml';
-$mime_drivers['horde']['msexcel']['inline'] = false;
-$mime_drivers['horde']['msexcel']['handles'] = array(
-    'application/vnd.ms-excel',
-    'application/msexcel',
-    'application/x-msexcel');
-$mime_drivers['horde']['msexcel']['icons'] = array(
-    'default' => 'msexcel.png');
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['location'] = '%%LOCALBASE%%/bin/xlhtml';
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['inline'] = false;
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['handles'] = array(
+//UNCOMMENTIFXL    'application/vnd.ms-excel',
+//UNCOMMENTIFXL    'application/msexcel',
+//UNCOMMENTIFXL    'application/x-msexcel');
+//UNCOMMENTIFXL$mime_drivers['horde']['msexcel']['icons'] = array(
+//UNCOMMENTIFXL    'default' => 'msexcel.png');
 
 
 /**
@@ -302,13 +312,13 @@
  * This driver requires ppthtml, included with xlhtml, to be installed.
  * xlhtml homepage: http://chicago.sourceforge.net/xlhtml/
  */
-$mime_drivers['horde']['mspowerpoint']['location'] = '/usr/local/bin/ppthtml';
-$mime_drivers['horde']['mspowerpoint']['inline'] = false;
-$mime_drivers['horde']['mspowerpoint']['handles'] = array(
-    'application/vnd.ms-powerpoint',
-    'application/mspowerpoint');
-$mime_drivers['horde']['mspowerpoint']['icons'] = array(
-    'default' => 'mspowerpoint.png');
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['location'] = '%%LOCALBASE%%/bin/ppthtml';
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['inline'] = false;
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['handles'] = array(
+//UNCOMMENTIFXL    'application/vnd.ms-powerpoint',
+//UNCOMMENTIFXL    'application/mspowerpoint');
+//UNCOMMENTIFXL$mime_drivers['horde']['mspowerpoint']['icons'] = array(
+//UNCOMMENTIFXL    'default' => 'mspowerpoint.png');
 
 
 /**
@@ -324,24 +334,24 @@
 /**
  * RPM driver settings
  */
-$mime_drivers['horde']['rpm']['location'] = '/usr/bin/rpm';
-$mime_drivers['horde']['rpm']['inline'] = false;
-$mime_drivers['horde']['rpm']['handles'] = array(
-    'application/x-rpm');
-$mime_drivers['horde']['rpm']['icons'] = array(
-    'default' => 'rpm.png');
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['location'] = '%%LOCALBASE%%/bin/rpm';
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['inline'] = false;
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['handles'] = array(
+//UNCOMMENTIFRPM    'application/x-rpm');
+//UNCOMMENTIFRPM$mime_drivers['horde']['rpm']['icons'] = array(
+//UNCOMMENTIFRPM    'default' => 'rpm.png');
 
 
 /**
  * Debian package driver settings
  */
-$mime_drivers['horde']['deb']['location'] = '/usr/bin/dpkg';
-$mime_drivers['horde']['deb']['inline'] = false;
-$mime_drivers['horde']['deb']['handles'] = array(
-    'application/x-deb',
-    'application/x-debian-package');
-$mime_drivers['horde']['deb']['icons'] = array(
-    'default' => 'deb.png');
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['location'] = '%%LOCALBASE%%/bin/dpkg';
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['inline'] = false;
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['handles'] = array(
+//UNCOMMENTIFDEB    'application/x-deb',
+//UNCOMMENTIFDEB    'application/x-debian-package');
+//UNCOMMENTIFDEB$mime_drivers['horde']['deb']['icons'] = array(
+//UNCOMMENTIFDEB    'default' => 'deb.png');
 
 
 /**