Skip to content

HTTPS clone URL

Subversion checkout URL

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