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