commit | author | age
|
354978
|
1 |
<form action="index.php" method="post"> |
T |
2 |
<input type="hidden" name="_step" value="2" /> |
|
3 |
<?php |
|
4 |
|
b3f9df
|
5 |
// also load the default config to fill in the fields |
190e97
|
6 |
$RCI->load_defaults(); |
c5042d
|
7 |
|
27564f
|
8 |
// register these boolean fields |
871ca9
|
9 |
$RCI->bool_config_props = array( |
27564f
|
10 |
'ip_check' => 1, |
T |
11 |
'enable_caching' => 1, |
|
12 |
'enable_spellcheck' => 1, |
|
13 |
'auto_create_user' => 1, |
|
14 |
'smtp_log' => 1, |
|
15 |
'prefer_html' => 1, |
|
16 |
'preview_pane' => 1, |
|
17 |
'htmleditor' => 1, |
b77d0d
|
18 |
'debug_level' => 1, |
27564f
|
19 |
); |
T |
20 |
|
967b34
|
21 |
// allow the current user to get to the next step |
T |
22 |
$_SESSION['allowinstaller'] = true; |
|
23 |
|
c5042d
|
24 |
if (!empty($_POST['submit'])) { |
T |
25 |
|
c06067
|
26 |
echo '<p class="notice">Copy or download the following configurations and save them in two files'; |
bba657
|
27 |
echo ' (names above the text box) within the <tt>'.RCMAIL_CONFIG_DIR.'</tt> directory of your RoundCube installation.<br/>'; |
c0dc90
|
28 |
echo ' Make sure that there are no characters outside the <tt><?php ?></tt> brackets when saving the files.</p>'; |
c5042d
|
29 |
|
47124c
|
30 |
$textbox = new html_textarea(array('rows' => 16, 'cols' => 60, 'class' => "configfile")); |
c5042d
|
31 |
|
c06067
|
32 |
echo '<div><em>main.inc.php (<a href="index.php?_getfile=main">download</a>)</em></div>'; |
7d7f67
|
33 |
echo $textbox->show(($_SESSION['main.inc.php'] = $RCI->create_config('main'))); |
c5042d
|
34 |
|
c06067
|
35 |
echo '<div style="margin-top:1em"><em>db.inc.php (<a href="index.php?_getfile=db">download</a>)</em></div>'; |
7d7f67
|
36 |
echo $textbox->show($_SESSION['db.inc.php'] = $RCI->create_config('db')); |
27564f
|
37 |
|
T |
38 |
echo '<p class="hint">Of course there are more options to configure. |
|
39 |
Have a look at the config files or visit <a href="http://trac.roundcube.net/wiki/Howto_Config">Howto_Config</a> to find out.</p>'; |
c5042d
|
40 |
|
T |
41 |
echo '<p><input type="button" onclick="location.href=\'./index.php?_step=3\'" value="CONTINUE" /></p>'; |
|
42 |
|
|
43 |
// echo '<style type="text/css"> .configblock { display:none } </style>'; |
|
44 |
echo "\n<hr style='margin-bottom:1.6em' />\n"; |
|
45 |
} |
354978
|
46 |
|
T |
47 |
?> |
|
48 |
<fieldset> |
|
49 |
<legend>General configuration</legend> |
c5042d
|
50 |
<dl class="configblock"> |
354978
|
51 |
|
T |
52 |
<dt class="propname">product_name</dt> |
|
53 |
<dd> |
|
54 |
<?php |
|
55 |
|
47124c
|
56 |
$input_prodname = new html_inputfield(array('name' => '_product_name', 'size' => 30, 'id' => "cfgprodname")); |
354978
|
57 |
echo $input_prodname->show($RCI->getprop('product_name')); |
T |
58 |
|
|
59 |
?> |
|
60 |
<div>The name of your service (used to compose page titles)</div> |
|
61 |
</dd> |
|
62 |
|
|
63 |
<dt class="propname">temp_dir</dt> |
|
64 |
<dd> |
|
65 |
<?php |
|
66 |
|
47124c
|
67 |
$input_tempdir = new html_inputfield(array('name' => '_temp_dir', 'size' => 30, 'id' => "cfgtempdir")); |
354978
|
68 |
echo $input_tempdir->show($RCI->getprop('temp_dir')); |
T |
69 |
|
|
70 |
?> |
a91c9b
|
71 |
<div>Use this folder to store temp files (must be writeable for webserver)</div> |
354978
|
72 |
</dd> |
T |
73 |
|
|
74 |
|
|
75 |
<dt class="propname">ip_check</dt> |
|
76 |
<dd> |
|
77 |
<?php |
|
78 |
|
47124c
|
79 |
$check_ipcheck = new html_checkbox(array('name' => '_ip_check', 'id' => "cfgipcheck")); |
354978
|
80 |
echo $check_ipcheck->show(intval($RCI->getprop('ip_check')), array('value' => 1)); |
T |
81 |
|
|
82 |
?> |
c5042d
|
83 |
<label for="cfgipcheck">Check client IP in session authorization</label><br /> |
354978
|
84 |
|
T |
85 |
<p class="hint">This increases security but can cause sudden logouts when someone uses a proxy with changeing IPs.</p> |
|
86 |
</dd> |
|
87 |
|
|
88 |
<dt class="propname">des_key</dt> |
|
89 |
<dd> |
|
90 |
<?php |
|
91 |
|
47124c
|
92 |
$input_deskey = new html_inputfield(array('name' => '_des_key', 'size' => 30, 'id' => "cfgdeskey")); |
354978
|
93 |
echo $input_deskey->show($RCI->getprop('des_key')); |
T |
94 |
|
|
95 |
?> |
|
96 |
<div>This key is used to encrypt the users imap password before storing in the session record</div> |
|
97 |
<p class="hint">It's a random generated string to ensure that every installation has it's own key. |
|
98 |
If you enter it manually please provide a string of exactly 24 chars.</p> |
|
99 |
</dd> |
|
100 |
|
|
101 |
<dt class="propname">enable_caching</dt> |
|
102 |
<dd> |
|
103 |
<?php |
|
104 |
|
47124c
|
105 |
$check_caching = new html_checkbox(array('name' => '_enable_caching', 'id' => "cfgcache")); |
354978
|
106 |
echo $check_caching->show(intval($RCI->getprop('enable_caching')), array('value' => 1)); |
T |
107 |
|
|
108 |
?> |
|
109 |
<label for="cfgcache">Cache messages in local database</label><br /> |
|
110 |
</dd> |
|
111 |
|
c5042d
|
112 |
<dt class="propname">enable_spellcheck</dt> |
T |
113 |
<dd> |
|
114 |
<?php |
82475f
|
115 |
$check_spell = new html_checkbox(array('name' => '_enable_spellcheck', 'id' => "cfgspellcheck")); |
T |
116 |
echo $check_spell->show(intval($RCI->getprop('enable_spellcheck')), array('value' => 1)); |
|
117 |
?> |
|
118 |
<label for="cfgspellcheck">Make use of the spell checker</label><br /> |
|
119 |
</dd> |
c5042d
|
120 |
|
82475f
|
121 |
<dt class="propname">spellcheck_engine</dt> |
T |
122 |
<dd> |
|
123 |
<?php |
|
124 |
$select_spell = new html_select(array('name' => '_spellcheck_engine', 'id' => "cfgspellcheckengine")); |
|
125 |
if (extension_loaded('pspell')) |
|
126 |
$select_spell->add('pspell', 'pspell'); |
|
127 |
$select_spell->add('Googlie', 'googlie'); |
|
128 |
|
|
129 |
echo $select_spell->show($RCI->is_post ? $_POST['_spellcheck_engine'] : 'pspell'); |
c5042d
|
130 |
|
T |
131 |
?> |
82475f
|
132 |
<label for="cfgspellcheckengine">Which spell checker to use</label><br /> |
c5042d
|
133 |
|
82475f
|
134 |
<p class="hint">GoogieSpell implies that the message content will be sent to Google in order to check the spelling.</p> |
c5042d
|
135 |
</dd> |
T |
136 |
|
ec0171
|
137 |
<dt class="propname">identities_level</dt> |
A |
138 |
<dd> |
|
139 |
<?php |
|
140 |
|
|
141 |
$input_ilevel = new html_select(array('name' => '_identities_level', 'id' => "cfgidentitieslevel")); |
|
142 |
$input_ilevel->add('many identities with possibility to edit all params', 0); |
|
143 |
$input_ilevel->add('many identities with possibility to edit all params but not email address', 1); |
|
144 |
$input_ilevel->add('one identity with possibility to edit all params', 2); |
|
145 |
$input_ilevel->add('one identity with possibility to edit all params but not email address', 3); |
|
146 |
echo $input_ilevel->show($RCI->getprop('identities_level'), 0); |
|
147 |
|
|
148 |
?> |
|
149 |
<div>Level of identities access</div> |
|
150 |
<p class="hint">Defines what users can do with their identities.</p> |
|
151 |
</dd> |
|
152 |
|
354978
|
153 |
</dl> |
T |
154 |
</fieldset> |
b77d0d
|
155 |
|
A |
156 |
<fieldset> |
|
157 |
<legend>Logging & Debugging</legend> |
|
158 |
<dl class="loggingblock"> |
|
159 |
|
|
160 |
<dt class="propname">debug_level</dt> |
|
161 |
<dd> |
|
162 |
<?php |
|
163 |
|
|
164 |
$value = $RCI->getprop('debug_level'); |
|
165 |
$check_debug = new html_checkbox(array('name' => '_debug_level[]')); |
|
166 |
echo $check_debug->show(($value & 1) ? 1 : 0 , array('value' => 1, 'id' => 'cfgdebug1')); |
|
167 |
echo '<label for="cfgdebug1">Log errors</label><br />'; |
|
168 |
|
|
169 |
echo $check_debug->show(($value & 4) ? 4 : 0, array('value' => 4, 'id' => 'cfgdebug4')); |
|
170 |
echo '<label for="cfgdebug4">Print errors (to the browser)</label><br />'; |
|
171 |
|
|
172 |
echo $check_debug->show(($value & 8) ? 8 : 0, array('value' => 8, 'id' => 'cfgdebug8')); |
|
173 |
echo '<label for="cfgdebug8">Verbose display (enables debug console)</label><br />'; |
|
174 |
|
|
175 |
?> |
|
176 |
</dd> |
|
177 |
|
|
178 |
<dt class="propname">log_driver</dt> |
|
179 |
<dd> |
|
180 |
<?php |
|
181 |
|
|
182 |
$select_log_driver = new html_select(array('name' => '_log_driver', 'id' => "cfglogdriver")); |
|
183 |
$select_log_driver->add(array('file', 'syslog'), array('file', 'syslog')); |
|
184 |
echo $select_log_driver->show($RCI->getprop('log_driver', 'file')); |
|
185 |
|
|
186 |
?> |
|
187 |
<div>How to do logging? 'file' - write to files in the log directory, 'syslog' - use the syslog facility.</div> |
|
188 |
</dd> |
|
189 |
|
|
190 |
<dt class="propname">log_dir</dt> |
|
191 |
<dd> |
|
192 |
<?php |
|
193 |
|
|
194 |
$input_logdir = new html_inputfield(array('name' => '_log_dir', 'size' => 30, 'id' => "cfglogdir")); |
|
195 |
echo $input_logdir->show($RCI->getprop('log_dir')); |
|
196 |
|
|
197 |
?> |
a91c9b
|
198 |
<div>Use this folder to store log files (must be writeable for webserver). Note that this only applies if you are using the 'file' log_driver.</div> |
b77d0d
|
199 |
</dd> |
A |
200 |
|
|
201 |
<dt class="propname">syslog_id</dt> |
|
202 |
<dd> |
|
203 |
<?php |
|
204 |
|
|
205 |
$input_syslogid = new html_inputfield(array('name' => '_syslog_id', 'size' => 30, 'id' => "cfgsyslogid")); |
|
206 |
echo $input_syslogid->show($RCI->getprop('syslog_id', 'roundcube')); |
|
207 |
|
|
208 |
?> |
|
209 |
<div>What ID to use when logging with syslog. Note that this only applies if you are using the 'syslog' log_driver.</div> |
|
210 |
</dd> |
|
211 |
|
|
212 |
<dt class="propname">syslog_facility</dt> |
|
213 |
<dd> |
|
214 |
<?php |
|
215 |
|
|
216 |
$input_syslogfacility = new html_select(array('name' => '_syslog_facility', 'id' => "cfgsyslogfacility")); |
|
217 |
$input_syslogfacility->add('user-level messages', LOG_USER); |
|
218 |
$input_syslogfacility->add('mail subsystem', LOG_MAIL); |
|
219 |
$input_syslogfacility->add('local level 0', LOG_LOCAL0); |
|
220 |
$input_syslogfacility->add('local level 1', LOG_LOCAL1); |
|
221 |
$input_syslogfacility->add('local level 2', LOG_LOCAL2); |
|
222 |
$input_syslogfacility->add('local level 3', LOG_LOCAL3); |
|
223 |
$input_syslogfacility->add('local level 4', LOG_LOCAL4); |
|
224 |
$input_syslogfacility->add('local level 5', LOG_LOCAL5); |
|
225 |
$input_syslogfacility->add('local level 6', LOG_LOCAL6); |
|
226 |
$input_syslogfacility->add('local level 7', LOG_LOCAL7); |
|
227 |
echo $input_syslogfacility->show($RCI->getprop('syslog_facility'), LOG_USER); |
|
228 |
|
|
229 |
?> |
|
230 |
<div>What ID to use when logging with syslog. Note that this only applies if you are using the 'syslog' log_driver.</div> |
|
231 |
</dd> |
|
232 |
|
|
233 |
|
|
234 |
|
|
235 |
|
|
236 |
</dl> |
|
237 |
</fieldset> |
|
238 |
|
354978
|
239 |
|
T |
240 |
<fieldset> |
6557d3
|
241 |
<legend>Database setup</legend> |
c5042d
|
242 |
<dl class="configblock" id="cgfblockdb"> |
T |
243 |
<dt class="propname">db_dsnw</dt> |
|
244 |
<dd> |
|
245 |
<p>Database settings for read/write operations:</p> |
|
246 |
<?php |
|
247 |
|
d5eb5c
|
248 |
require_once 'MDB2.php'; |
ad43e6
|
249 |
|
c5042d
|
250 |
$supported_dbs = array('MySQL' => 'mysql', 'MySQLi' => 'mysqli', |
T |
251 |
'PgSQL' => 'pgsql', 'SQLite' => 'sqlite'); |
|
252 |
|
47124c
|
253 |
$select_dbtype = new html_select(array('name' => '_dbtype', 'id' => "cfgdbtype")); |
c5042d
|
254 |
foreach ($supported_dbs AS $database => $ext) { |
T |
255 |
if (extension_loaded($ext)) { |
|
256 |
$select_dbtype->add($database, $ext); |
|
257 |
} |
|
258 |
} |
|
259 |
|
47124c
|
260 |
$input_dbhost = new html_inputfield(array('name' => '_dbhost', 'size' => 20, 'id' => "cfgdbhost")); |
T |
261 |
$input_dbname = new html_inputfield(array('name' => '_dbname', 'size' => 20, 'id' => "cfgdbname")); |
|
262 |
$input_dbuser = new html_inputfield(array('name' => '_dbuser', 'size' => 20, 'id' => "cfgdbuser")); |
2e90ff
|
263 |
$input_dbpass = new html_passwordfield(array('name' => '_dbpass', 'size' => 20, 'id' => "cfgdbpass")); |
c5042d
|
264 |
|
d5eb5c
|
265 |
$dsnw = MDB2::parseDSN($RCI->getprop('db_dsnw')); |
c5042d
|
266 |
|
237119
|
267 |
echo $select_dbtype->show($RCI->is_post ? $_POST['_dbtype'] : $dsnw['phptype']); |
c5042d
|
268 |
echo '<label for="cfgdbtype">Database type</label><br />'; |
237119
|
269 |
echo $input_dbhost->show($RCI->is_post ? $_POST['_dbhost'] : $dsnw['hostspec']); |
82475f
|
270 |
echo '<label for="cfgdbhost">Database server (omit for sqlite)</label><br />'; |
237119
|
271 |
echo $input_dbname->show($RCI->is_post ? $_POST['_dbname'] : $dsnw['database']); |
50d515
|
272 |
echo '<label for="cfgdbname">Database name (use a path and filename for sqlite)</label><br />'; |
237119
|
273 |
echo $input_dbuser->show($RCI->is_post ? $_POST['_dbuser'] : $dsnw['username']); |
82475f
|
274 |
echo '<label for="cfgdbuser">Database user name (needs write permissions)(omit for sqlite)</label><br />'; |
237119
|
275 |
echo $input_dbpass->show($RCI->is_post ? $_POST['_dbpass'] : $dsnw['password']); |
82475f
|
276 |
echo '<label for="cfgdbpass">Database password (omit for sqlite)</label><br />'; |
c5042d
|
277 |
|
T |
278 |
?> |
|
279 |
</dd> |
6557d3
|
280 |
</dl> |
T |
281 |
</fieldset> |
|
282 |
|
c5042d
|
283 |
|
6557d3
|
284 |
<fieldset> |
354978
|
285 |
<legend>IMAP Settings</legend> |
c5042d
|
286 |
<dl class="configblock" id="cgfblockimap"> |
T |
287 |
<dt class="propname">default_host</dt> |
|
288 |
<dd> |
|
289 |
<div>The IMAP host(s) chosen to perform the log-in</div> |
|
290 |
<div id="defaulthostlist"> |
|
291 |
<?php |
|
292 |
|
47124c
|
293 |
$text_imaphost = new html_inputfield(array('name' => '_default_host[]', 'size' => 30)); |
1c4e5d
|
294 |
$default_hosts = $RCI->get_hostlist(); |
T |
295 |
|
|
296 |
if (empty($default_hosts)) |
|
297 |
$default_hosts = array(''); |
c5042d
|
298 |
|
b3f9df
|
299 |
$i = 0; |
1c4e5d
|
300 |
foreach ($default_hosts as $host) { |
b3f9df
|
301 |
echo '<div id="defaulthostentry'.$i.'">' . $text_imaphost->show($host); |
T |
302 |
if ($i++ > 0) |
c5042d
|
303 |
echo '<a href="#" onclick="removehostfield(this.parentNode);return false" class="removelink" title="Remove this entry">remove</a>'; |
T |
304 |
echo '</div>'; |
|
305 |
} |
|
306 |
|
|
307 |
?> |
|
308 |
</div> |
|
309 |
<div><a href="javascript:addhostfield()" class="addlink" title="Add another field">add</a></div> |
|
310 |
|
b3f9df
|
311 |
<p class="hint">Leave blank to show a textbox at login. To use SSL/IMAPS connection, type ssl://hostname</p> |
c5042d
|
312 |
</dd> |
T |
313 |
|
|
314 |
<dt class="propname">default_port</dt> |
|
315 |
<dd> |
|
316 |
<?php |
|
317 |
|
47124c
|
318 |
$text_imapport = new html_inputfield(array('name' => '_default_port', 'size' => 6, 'id' => "cfgimapport")); |
c5042d
|
319 |
echo $text_imapport->show($RCI->getprop('default_port')); |
T |
320 |
|
|
321 |
?> |
|
322 |
<div>TCP port used for IMAP connections</div> |
|
323 |
</dd> |
|
324 |
|
|
325 |
<dt class="propname">username_domain</dt> |
|
326 |
<dd> |
|
327 |
<?php |
|
328 |
|
47124c
|
329 |
$text_userdomain = new html_inputfield(array('name' => '_username_domain', 'size' => 30, 'id' => "cfguserdomain")); |
c5042d
|
330 |
echo $text_userdomain->show($RCI->getprop('username_domain')); |
T |
331 |
|
|
332 |
?> |
|
333 |
<div>Automatically add this domain to user names for login</div> |
|
334 |
|
|
335 |
<p class="hint">Only for IMAP servers that require full e-mail addresses for login</p> |
|
336 |
</dd> |
|
337 |
|
354978
|
338 |
<dt class="propname">auto_create_user</dt> |
T |
339 |
<dd> |
|
340 |
<?php |
|
341 |
|
47124c
|
342 |
$check_autocreate = new html_checkbox(array('name' => '_auto_create_user', 'id' => "cfgautocreate")); |
354978
|
343 |
echo $check_autocreate->show(intval($RCI->getprop('auto_create_user')), array('value' => 1)); |
T |
344 |
|
|
345 |
?> |
|
346 |
<label for="cfgautocreate">Automatically create a new RoundCube user when log-in the first time</label><br /> |
|
347 |
|
|
348 |
<p class="hint">A user is authenticated by the IMAP server but it requires a local record to store settings |
|
349 |
and contacts. With this option enabled a new user record will automatically be created once the IMAP login succeeds.</p> |
|
350 |
|
|
351 |
<p class="hint">If this option is disabled, the login only succeeds if there's a matching user-record in the local RoundCube database |
|
352 |
what means that you have to create those records manually or disable this option after the first login.</p> |
|
353 |
</dd> |
|
354 |
|
c5042d
|
355 |
<dt class="propname">sent_mbox</dt> |
T |
356 |
<dd> |
|
357 |
<?php |
|
358 |
|
47124c
|
359 |
$text_sentmbox = new html_inputfield(array('name' => '_sent_mbox', 'size' => 20, 'id' => "cfgsentmbox")); |
c5042d
|
360 |
echo $text_sentmbox->show($RCI->getprop('sent_mbox')); |
T |
361 |
|
|
362 |
?> |
9abd0f
|
363 |
<div>Store sent messages in this folder</div> |
c5042d
|
364 |
|
T |
365 |
<p class="hint">Leave blank if sent messages should not be stored</p> |
|
366 |
</dd> |
|
367 |
|
|
368 |
<dt class="propname">trash_mbox</dt> |
|
369 |
<dd> |
|
370 |
<?php |
|
371 |
|
47124c
|
372 |
$text_trashmbox = new html_inputfield(array('name' => '_trash_mbox', 'size' => 20, 'id' => "cfgtrashmbox")); |
c5042d
|
373 |
echo $text_trashmbox->show($RCI->getprop('trash_mbox')); |
T |
374 |
|
|
375 |
?> |
|
376 |
<div>Move messages to this folder when deleting them</div> |
|
377 |
|
|
378 |
<p class="hint">Leave blank if they should be deleted directly</p> |
|
379 |
</dd> |
|
380 |
|
|
381 |
<dt class="propname">drafts_mbox</dt> |
|
382 |
<dd> |
|
383 |
<?php |
|
384 |
|
47124c
|
385 |
$text_draftsmbox = new html_inputfield(array('name' => '_drafts_mbox', 'size' => 20, 'id' => "cfgdraftsmbox")); |
c5042d
|
386 |
echo $text_draftsmbox->show($RCI->getprop('drafts_mbox')); |
T |
387 |
|
|
388 |
?> |
9abd0f
|
389 |
<div>Store draft messages in this folder</div> |
A |
390 |
|
|
391 |
<p class="hint">Leave blank if they should not be stored</p> |
c5042d
|
392 |
</dd> |
T |
393 |
|
9abd0f
|
394 |
<dt class="propname">junk_mbox</dt> |
A |
395 |
<dd> |
|
396 |
<?php |
|
397 |
|
|
398 |
$text_junkmbox = new html_inputfield(array('name' => '_junk_mbox', 'size' => 20, 'id' => "cfgjunkmbox")); |
|
399 |
echo $text_junkmbox->show($RCI->getprop('junk_mbox')); |
|
400 |
|
|
401 |
?> |
|
402 |
<div>Store spam messages in this folder</div> |
|
403 |
</dd> |
354978
|
404 |
</dl> |
T |
405 |
</fieldset> |
c5042d
|
406 |
|
354978
|
407 |
|
T |
408 |
<fieldset> |
|
409 |
<legend>SMTP Settings</legend> |
c5042d
|
410 |
<dl class="configblock" id="cgfblocksmtp"> |
T |
411 |
<dt class="propname">smtp_server</dt> |
|
412 |
<dd> |
|
413 |
<?php |
|
414 |
|
47124c
|
415 |
$text_smtphost = new html_inputfield(array('name' => '_smtp_server', 'size' => 30, 'id' => "cfgsmtphost")); |
c5042d
|
416 |
echo $text_smtphost->show($RCI->getprop('smtp_server')); |
T |
417 |
|
|
418 |
?> |
|
419 |
<div>Use this host for sending mails</div> |
|
420 |
|
|
421 |
<p class="hint">To use SSL connection, set ssl://smtp.host.com. If left blank, the PHP mail() function is used</p> |
|
422 |
</dd> |
|
423 |
|
|
424 |
<dt class="propname">smtp_port</dt> |
|
425 |
<dd> |
|
426 |
<?php |
|
427 |
|
47124c
|
428 |
$text_smtpport = new html_inputfield(array('name' => '_smtp_port', 'size' => 6, 'id' => "cfgsmtpport")); |
c5042d
|
429 |
echo $text_smtpport->show($RCI->getprop('smtp_port')); |
T |
430 |
|
|
431 |
?> |
82475f
|
432 |
<div>SMTP port (default is 25; 465 for SSL; 587 for submission)</div> |
c5042d
|
433 |
</dd> |
T |
434 |
|
|
435 |
<dt class="propname">smtp_user/smtp_pass</dt> |
|
436 |
<dd> |
|
437 |
<?php |
|
438 |
|
47124c
|
439 |
$text_smtpuser = new html_inputfield(array('name' => '_smtp_user', 'size' => 20, 'id' => "cfgsmtpuser")); |
2e90ff
|
440 |
$text_smtppass = new html_passwordfield(array('name' => '_smtp_pass', 'size' => 20, 'id' => "cfgsmtppass")); |
c5042d
|
441 |
echo $text_smtpuser->show($RCI->getprop('smtp_user')); |
T |
442 |
echo $text_smtppass->show($RCI->getprop('smtp_pass')); |
|
443 |
|
|
444 |
?> |
|
445 |
<div>SMTP username and password (if required)</div> |
|
446 |
<p> |
|
447 |
<?php |
|
448 |
|
47124c
|
449 |
$check_smtpuser = new html_checkbox(array('name' => '_smtp_user_u', 'id' => "cfgsmtpuseru")); |
c5042d
|
450 |
echo $check_smtpuser->show($RCI->getprop('smtp_user') == '%u' || $_POST['_smtp_user_u'] ? 1 : 0, array('value' => 1)); |
T |
451 |
|
|
452 |
?> |
|
453 |
<label for="cfgsmtpuseru">Use the current IMAP username and password for SMTP authentication</label> |
|
454 |
</p> |
|
455 |
</dd> |
|
456 |
<!-- |
|
457 |
<dt class="propname">smtp_auth_type</dt> |
|
458 |
<dd> |
|
459 |
<?php |
|
460 |
/* |
47124c
|
461 |
$select_smtpauth = new html_select(array('name' => '_smtp_auth_type', 'id' => "cfgsmtpauth")); |
c5042d
|
462 |
$select_smtpauth->add(array('(auto)', 'PLAIN', 'DIGEST-MD5', 'CRAM-MD5', 'LOGIN'), array('0', 'PLAIN', 'DIGEST-MD5', 'CRAM-MD5', 'LOGIN')); |
T |
463 |
echo $select_smtpauth->show(intval($RCI->getprop('smtp_auth_type'))); |
|
464 |
*/ |
|
465 |
?> |
|
466 |
<div>Method to authenticate at the SMTP server. Choose (auto) if you don't know what this is</div> |
|
467 |
</dd> |
|
468 |
--> |
|
469 |
<dt class="propname">smtp_log</dt> |
|
470 |
<dd> |
|
471 |
<?php |
|
472 |
|
47124c
|
473 |
$check_smtplog = new html_checkbox(array('name' => '_smtp_log', 'id' => "cfgsmtplog")); |
c5042d
|
474 |
echo $check_smtplog->show(intval($RCI->getprop('smtp_log')), array('value' => 1)); |
T |
475 |
|
|
476 |
?> |
b77d0d
|
477 |
<label for="cfgsmtplog">Log sent messages in <tt>{log_dir}/sendmail</tt> or to syslog.</label><br /> |
c5042d
|
478 |
</dd> |
T |
479 |
|
354978
|
480 |
</dl> |
T |
481 |
</fieldset> |
|
482 |
|
c5042d
|
483 |
|
354978
|
484 |
<fieldset> |
27564f
|
485 |
<legend>Display settings & user prefs</legend> |
c5042d
|
486 |
<dl class="configblock" id="cgfblockdisplay"> |
354978
|
487 |
|
522007
|
488 |
<dt class="propname">language</dt> |
354978
|
489 |
<dd> |
T |
490 |
<?php |
|
491 |
|
522007
|
492 |
$input_locale = new html_inputfield(array('name' => '_language', 'size' => 6, 'id' => "cfglocale")); |
T |
493 |
echo $input_locale->show($RCI->getprop('language')); |
354978
|
494 |
|
T |
495 |
?> |
c8ae24
|
496 |
<div>The default locale setting. This also defines the language of the login screen.<br/>Leave it empty to auto-detect the user agent language.</div> |
522007
|
497 |
<p class="hint">Enter a <a href="http://www.faqs.org/rfcs/rfc1766">RFC1766</a> formatted language name. Examples: en_US, de_DE, de_CH, fr_FR, pt_BR</p> |
354978
|
498 |
</dd> |
T |
499 |
|
9e8e5f
|
500 |
<dt class="propname">skin <span class="userconf">*</span></dt> |
A |
501 |
<dd> |
|
502 |
<?php |
|
503 |
|
|
504 |
$input_skin = new html_inputfield(array('name' => '_skin', 'size' => 30, 'id' => "cfgskin")); |
|
505 |
echo $input_skin->show($RCI->getprop('skin')); |
|
506 |
|
|
507 |
?> |
|
508 |
<div>Name of interface skin (folder in /skins)</div> |
|
509 |
</dd> |
|
510 |
|
27564f
|
511 |
<dt class="propname">pagesize <span class="userconf">*</span></dt> |
T |
512 |
<dd> |
|
513 |
<?php |
|
514 |
|
47124c
|
515 |
$input_pagesize = new html_inputfield(array('name' => '_pagesize', 'size' => 6, 'id' => "cfgpagesize")); |
27564f
|
516 |
echo $input_pagesize->show($RCI->getprop('pagesize')); |
T |
517 |
|
|
518 |
?> |
|
519 |
<div>Show up to X items in list view.</div> |
|
520 |
</dd> |
|
521 |
|
|
522 |
<dt class="propname">prefer_html <span class="userconf">*</span></dt> |
|
523 |
<dd> |
|
524 |
<?php |
|
525 |
|
47124c
|
526 |
$check_htmlview = new html_checkbox(array('name' => '_prefer_html', 'id' => "cfghtmlview", 'value' => 1)); |
27564f
|
527 |
echo $check_htmlview->show(intval($RCI->getprop('prefer_html'))); |
T |
528 |
|
|
529 |
?> |
|
530 |
<label for="cfghtmlview">Prefer displaying HTML messages</label><br /> |
|
531 |
</dd> |
|
532 |
|
|
533 |
<dt class="propname">preview_pane <span class="userconf">*</span></dt> |
|
534 |
<dd> |
|
535 |
<?php |
|
536 |
|
47124c
|
537 |
$check_prevpane = new html_checkbox(array('name' => '_preview_pane', 'id' => "cfgprevpane", 'value' => 1)); |
27564f
|
538 |
echo $check_prevpane->show(intval($RCI->getprop('preview_pane'))); |
T |
539 |
|
|
540 |
?> |
|
541 |
<label for="cfgprevpane">If preview pane is enabled</label><br /> |
|
542 |
</dd> |
|
543 |
|
|
544 |
<dt class="propname">htmleditor <span class="userconf">*</span></dt> |
|
545 |
<dd> |
|
546 |
<?php |
|
547 |
|
47124c
|
548 |
$check_htmlcomp = new html_checkbox(array('name' => '_htmleditor', 'id' => "cfghtmlcompose", 'value' => 1)); |
27564f
|
549 |
echo $check_htmlcomp->show(intval($RCI->getprop('htmleditor'))); |
T |
550 |
|
|
551 |
?> |
|
552 |
<label for="cfghtmlcompose">Compose HTML formatted messages</label><br /> |
|
553 |
</dd> |
|
554 |
|
|
555 |
<dt class="propname">draft_autosave <span class="userconf">*</span></dt> |
|
556 |
<dd> |
|
557 |
<label for="cfgautosave">Save compose message every</label> |
|
558 |
<?php |
|
559 |
|
47124c
|
560 |
$select_autosave = new html_select(array('name' => '_draft_autosave', 'id' => 'cfgautosave')); |
27564f
|
561 |
$select_autosave->add('never', 0); |
T |
562 |
foreach (array(3, 5, 10) as $i => $min) |
|
563 |
$select_autosave->add("$min min", $min*60); |
|
564 |
|
|
565 |
echo $select_autosave->show(intval($RCI->getprop('draft_autosave'))); |
|
566 |
|
|
567 |
?> |
|
568 |
</dd> |
|
569 |
|
9e8e5f
|
570 |
<dt class="propname">mdn_requests <span class="userconf">*</span></dt> |
A |
571 |
<dd> |
|
572 |
<?php |
|
573 |
|
|
574 |
$select_mdnreq = new html_select(array('name' => '_mdn_requests', 'id' => "cfgmdnreq")); |
|
575 |
$select_mdnreq->add(array('ask the user', 'send automatically', 'ignore'), array(0, 1, 2)); |
|
576 |
echo $select_mdnreq->show(intval($RCI->getprop('mdn_requests'))); |
|
577 |
|
|
578 |
?> |
|
579 |
<div>Behavior if a received message requests a message delivery notification (read receipt)</div> |
|
580 |
</dd> |
|
581 |
|
ffae15
|
582 |
<dt class="propname">mime_param_folding <span class="userconf">*</span></dt> |
A |
583 |
<dd> |
|
584 |
<?php |
|
585 |
|
|
586 |
$select_param_folding = new html_select(array('name' => '_mime_param_folding', 'id' => "cfgmimeparamfolding")); |
|
587 |
$select_param_folding->add('Full RFC 2231 (Roundcube, Thunderbird)', '0'); |
|
588 |
$select_param_folding->add('RFC 2047/2231 (MS Outlook, OE)', '1'); |
|
589 |
$select_param_folding->add('Full RFC 2047 (deprecated)', '2'); |
|
590 |
|
|
591 |
echo $select_param_folding->show(intval($RCI->getprop('mime_param_folding'))); |
|
592 |
|
|
593 |
?> |
|
594 |
<div>How to encode attachment long/non-ascii names</div> |
|
595 |
</dd> |
|
596 |
|
354978
|
597 |
</dl> |
27564f
|
598 |
|
T |
599 |
<p class="hint"><span class="userconf">*</span> These settings are defaults for the user preferences</p> |
354978
|
600 |
</fieldset> |
T |
601 |
|
|
602 |
<?php |
|
603 |
|
b3f9df
|
604 |
echo '<p><input type="submit" name="submit" value="' . ($RCI->configured ? 'UPDATE' : 'CREATE') . ' CONFIG" ' . ($RCI->failures ? 'disabled' : '') . ' /></p>'; |
354978
|
605 |
|
T |
606 |
?> |
|
607 |
</form> |