Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 519 lines (386 sloc) 16.328 kb
3549785 Thomas B. 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 Thomas B. 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 Thomas B. Fix database initialization and check write access on the DB; update INS...
thomascube authored
6 $RCI->load_defaults();
c5042d4 Thomas B. More installer stuff
thomascube authored
7
27564f1 Thomas B. Add IMAP test and some more options to installer script
thomascube authored
8 // register these boolean fields
9 $RCI->config_props = array(
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,
17 'htmleditor' => 1,
18 );
19
967b342 Thomas B. 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 Thomas B. 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';
26 echo ' (names above the text box) within the <tt>config/</tt> directory of your RoundCube installation.<br/>';
c0dc907 Thomas B. Add hint for saving config files + stop DB initialization if en error oc...
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 Thomas B. More installer stuff
thomascube authored
28
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
29 $textbox = new html_textarea(array('rows' => 16, 'cols' => 60, 'class' => "configfile"));
c5042d4 Thomas B. 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>';
c5042d4 Thomas B. More installer stuff
thomascube authored
32 echo $textbox->show($RCI->create_config('main'));
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>';
c5042d4 Thomas B. More installer stuff
thomascube authored
35 echo $textbox->show($RCI->create_config('db'));
36
27564f1 Thomas B. 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 Thomas B. 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 Thomas B. First steps to implement an installer
thomascube authored
45
46 ?>
47 <fieldset>
48 <legend>General configuration</legend>
c5042d4 Thomas B. More installer stuff
thomascube authored
49 <dl class="configblock">
3549785 Thomas B. First steps to implement an installer
thomascube authored
50 <!--
c5042d4 Thomas B. More installer stuff
thomascube authored
51 <dt id="cgfblockgeneral" class="propname">debug_level</dt>
3549785 Thomas B. First steps to implement an installer
thomascube authored
52 <dd>
53 <?php
54 /*
55 $value = $RCI->getprop('debug_level');
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
56 $check_debug = new html_checkbox(array('name' => '_debug_level[]'));
3549785 Thomas B. First steps to implement an installer
thomascube authored
57 echo $check_debug->show(($value & 1) ? 1 : 0 , array('value' => 1, 'id' => 'cfgdebug1'));
58 echo '<label for="cfgdebug1">Log errors</label><br />';
59
60 echo $check_debug->show(($value & 4) ? 4 : 0, array('value' => 4, 'id' => 'cfgdebug4'));
61 echo '<label for="cfgdebug4">Display errors</label><br />';
62
63 echo $check_debug->show(($value & 8) ? 8 : 0, array('value' => 8, 'id' => 'cfgdebug8'));
64 echo '<label for="cfgdebug8">Verbose display</label><br />';
65 */
66 ?>
67 </dd>
68 -->
69
70 <dt class="propname">product_name</dt>
71 <dd>
72 <?php
73
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
74 $input_prodname = new html_inputfield(array('name' => '_product_name', 'size' => 30, 'id' => "cfgprodname"));
3549785 Thomas B. First steps to implement an installer
thomascube authored
75 echo $input_prodname->show($RCI->getprop('product_name'));
76
77 ?>
78 <div>The name of your service (used to compose page titles)</div>
79 </dd>
80
81 <dt class="propname">skin_path</dt>
82 <dd>
83 <?php
84
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
85 $input_skinpath = new html_inputfield(array('name' => '_skin_path', 'size' => 30, 'id' => "cfgskinpath"));
3549785 Thomas B. First steps to implement an installer
thomascube authored
86 echo $input_skinpath->show($RCI->getprop('skin_path'));
87
88 ?>
89 <div>Relative path to the skin folder</div>
90 </dd>
91
92 <dt class="propname">temp_dir</dt>
93 <dd>
94 <?php
95
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
96 $input_tempdir = new html_inputfield(array('name' => '_temp_dir', 'size' => 30, 'id' => "cfgtempdir"));
3549785 Thomas B. First steps to implement an installer
thomascube authored
97 echo $input_tempdir->show($RCI->getprop('temp_dir'));
98
99 ?>
100 <div>Use this folder to store temp files (must be writebale for webserver)</div>
101 </dd>
102
103 <dt class="propname">log_dir</dt>
104 <dd>
105 <?php
106
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
107 $input_logdir = new html_inputfield(array('name' => '_log_dir', 'size' => 30, 'id' => "cfglogdir"));
3549785 Thomas B. First steps to implement an installer
thomascube authored
108 echo $input_logdir->show($RCI->getprop('log_dir'));
109
110 ?>
111 <div>Use this folder to store log files (must be writebale for webserver)</div>
112 </dd>
113
114 <dt class="propname">ip_check</dt>
115 <dd>
116 <?php
117
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
118 $check_ipcheck = new html_checkbox(array('name' => '_ip_check', 'id' => "cfgipcheck"));
3549785 Thomas B. First steps to implement an installer
thomascube authored
119 echo $check_ipcheck->show(intval($RCI->getprop('ip_check')), array('value' => 1));
120
121 ?>
c5042d4 Thomas B. More installer stuff
thomascube authored
122 <label for="cfgipcheck">Check client IP in session authorization</label><br />
3549785 Thomas B. First steps to implement an installer
thomascube authored
123
124 <p class="hint">This increases security but can cause sudden logouts when someone uses a proxy with changeing IPs.</p>
125 </dd>
126
127 <dt class="propname">des_key</dt>
128 <dd>
129 <?php
130
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
131 $input_deskey = new html_inputfield(array('name' => '_des_key', 'size' => 30, 'id' => "cfgdeskey"));
3549785 Thomas B. First steps to implement an installer
thomascube authored
132 echo $input_deskey->show($RCI->getprop('des_key'));
133
134 ?>
135 <div>This key is used to encrypt the users imap password before storing in the session record</div>
136 <p class="hint">It's a random generated string to ensure that every installation has it's own key.
137 If you enter it manually please provide a string of exactly 24 chars.</p>
138 </dd>
139
140 <dt class="propname">enable_caching</dt>
141 <dd>
142 <?php
143
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
144 $check_caching = new html_checkbox(array('name' => '_enable_caching', 'id' => "cfgcache"));
3549785 Thomas B. First steps to implement an installer
thomascube authored
145 echo $check_caching->show(intval($RCI->getprop('enable_caching')), array('value' => 1));
146
147 ?>
148 <label for="cfgcache">Cache messages in local database</label><br />
149 </dd>
150
c5042d4 Thomas B. More installer stuff
thomascube authored
151 <dt class="propname">enable_spellcheck</dt>
152 <dd>
153 <?php
154
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
155 $check_caching = new html_checkbox(array('name' => '_enable_spellcheck', 'id' => "cfgspellcheck"));
c5042d4 Thomas B. More installer stuff
thomascube authored
156 echo $check_caching->show(intval($RCI->getprop('enable_spellcheck')), array('value' => 1));
157
158 ?>
159 <label for="cfgspellcheck">Make use of the built-in spell checker</label><br />
160
161 <p class="hint">It is based on GoogieSpell what implies that the message content will be sent to Google in order to check the spelling.</p>
162 </dd>
163
164 <dt class="propname">mdn_requests</dt>
165 <dd>
166 <?php
167
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
168 $select_mdnreq = new html_select(array('name' => '_mdn_requests', 'id' => "cfgmdnreq"));
c5042d4 Thomas B. More installer stuff
thomascube authored
169 $select_mdnreq->add(array('ask the user', 'send automatically', 'ignore'), array(0, 1, 2));
170 echo $select_mdnreq->show(intval($RCI->getprop('mdn_requests')));
171
172 ?>
173 <div>Behavior if a received message requests a message delivery notification (read receipt)</div>
174 </dd>
175
3549785 Thomas B. First steps to implement an installer
thomascube authored
176 </dl>
177 </fieldset>
178
179 <fieldset>
6557d30 Thomas B. Added environment checks from check.php-dist
thomascube authored
180 <legend>Database setup</legend>
c5042d4 Thomas B. More installer stuff
thomascube authored
181 <dl class="configblock" id="cgfblockdb">
182 <dt class="propname">db_dsnw</dt>
183 <dd>
184 <p>Database settings for read/write operations:</p>
185 <?php
186
ad43e63 Thomas B. Add SMTP test to installer script
thomascube authored
187 require_once 'DB.php';
188
c5042d4 Thomas B. More installer stuff
thomascube authored
189 $supported_dbs = array('MySQL' => 'mysql', 'MySQLi' => 'mysqli',
190 'PgSQL' => 'pgsql', 'SQLite' => 'sqlite');
191
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
192 $select_dbtype = new html_select(array('name' => '_dbtype', 'id' => "cfgdbtype"));
c5042d4 Thomas B. More installer stuff
thomascube authored
193 foreach ($supported_dbs AS $database => $ext) {
194 if (extension_loaded($ext)) {
195 $select_dbtype->add($database, $ext);
196 }
197 }
198
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
199 $input_dbhost = new html_inputfield(array('name' => '_dbhost', 'size' => 20, 'id' => "cfgdbhost"));
200 $input_dbname = new html_inputfield(array('name' => '_dbname', 'size' => 20, 'id' => "cfgdbname"));
201 $input_dbuser = new html_inputfield(array('name' => '_dbuser', 'size' => 20, 'id' => "cfgdbuser"));
2e90ff5 Aleksander Machniak - Make password input fields of type password in installer (#1484886)
alecpl authored
202 $input_dbpass = new html_passwordfield(array('name' => '_dbpass', 'size' => 20, 'id' => "cfgdbpass"));
c5042d4 Thomas B. More installer stuff
thomascube authored
203
ad43e63 Thomas B. Add SMTP test to installer script
thomascube authored
204 $dsnw = DB::parseDSN($RCI->getprop('db_dsnw'));
c5042d4 Thomas B. More installer stuff
thomascube authored
205
2371191 Thomas B. Fix sqlite dsn composing
thomascube authored
206 echo $select_dbtype->show($RCI->is_post ? $_POST['_dbtype'] : $dsnw['phptype']);
c5042d4 Thomas B. More installer stuff
thomascube authored
207 echo '<label for="cfgdbtype">Database type</label><br />';
2371191 Thomas B. Fix sqlite dsn composing
thomascube authored
208 echo $input_dbhost->show($RCI->is_post ? $_POST['_dbhost'] : $dsnw['hostspec']);
c5042d4 Thomas B. More installer stuff
thomascube authored
209 echo '<label for="cfgdbhost">Database server</label><br />';
2371191 Thomas B. Fix sqlite dsn composing
thomascube authored
210 echo $input_dbname->show($RCI->is_post ? $_POST['_dbname'] : $dsnw['database']);
c5042d4 Thomas B. More installer stuff
thomascube authored
211 echo '<label for="cfgdbname">Database name</label><br />';
2371191 Thomas B. Fix sqlite dsn composing
thomascube authored
212 echo $input_dbuser->show($RCI->is_post ? $_POST['_dbuser'] : $dsnw['username']);
c5042d4 Thomas B. More installer stuff
thomascube authored
213 echo '<label for="cfgdbuser">Database user name (needs write permissions)</label><br />';
2371191 Thomas B. Fix sqlite dsn composing
thomascube authored
214 echo $input_dbpass->show($RCI->is_post ? $_POST['_dbpass'] : $dsnw['password']);
c5042d4 Thomas B. More installer stuff
thomascube authored
215 echo '<label for="cfgdbpass">Database password</label><br />';
216
217 ?>
218 </dd>
219
220 <dt class="propname">db_backend</dt>
221 <dd>
222 <?php
223
224 // check for existing PEAR classes
225 @include_once 'DB.php';
226 @include_once 'MDB2.php';
227
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
228 $select_dbba = new html_select(array('name' => '_db_backend', 'id' => "cfgdbba"));
c5042d4 Thomas B. More installer stuff
thomascube authored
229
230 if (class_exists('DB'))
231 $select_dbba->add('DB', 'db');
232 if (class_exists('MDB2'))
233 $select_dbba->add('MDB2', 'mdb2');
234
235 echo $select_dbba->show($RCI->getprop('db_backend'));
236
237 ?>
238 <div>PEAR Database backend to use</div>
239 </dd>
240
6557d30 Thomas B. Added environment checks from check.php-dist
thomascube authored
241 </dl>
242 </fieldset>
243
c5042d4 Thomas B. More installer stuff
thomascube authored
244
6557d30 Thomas B. Added environment checks from check.php-dist
thomascube authored
245 <fieldset>
3549785 Thomas B. First steps to implement an installer
thomascube authored
246 <legend>IMAP Settings</legend>
c5042d4 Thomas B. More installer stuff
thomascube authored
247 <dl class="configblock" id="cgfblockimap">
248 <dt class="propname">default_host</dt>
249 <dd>
250 <div>The IMAP host(s) chosen to perform the log-in</div>
251 <div id="defaulthostlist">
252 <?php
253
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
254 $text_imaphost = new html_inputfield(array('name' => '_default_host[]', 'size' => 30));
1c4e5dd Thomas B. Some more bugfixes for the install script
thomascube authored
255 $default_hosts = $RCI->get_hostlist();
256
257 if (empty($default_hosts))
258 $default_hosts = array('');
c5042d4 Thomas B. More installer stuff
thomascube authored
259
b3f9dfb Thomas B. Allow to skip the config step if config files already exist
thomascube authored
260 $i = 0;
1c4e5dd Thomas B. Some more bugfixes for the install script
thomascube authored
261 foreach ($default_hosts as $host) {
b3f9dfb Thomas B. Allow to skip the config step if config files already exist
thomascube authored
262 echo '<div id="defaulthostentry'.$i.'">' . $text_imaphost->show($host);
263 if ($i++ > 0)
c5042d4 Thomas B. More installer stuff
thomascube authored
264 echo '<a href="#" onclick="removehostfield(this.parentNode);return false" class="removelink" title="Remove this entry">remove</a>';
265 echo '</div>';
266 }
267
268 ?>
269 </div>
270 <div><a href="javascript:addhostfield()" class="addlink" title="Add another field">add</a></div>
271
b3f9dfb Thomas B. Allow to skip the config step if config files already exist
thomascube authored
272 <p class="hint">Leave blank to show a textbox at login. To use SSL/IMAPS connection, type ssl://hostname</p>
c5042d4 Thomas B. More installer stuff
thomascube authored
273 </dd>
274
275 <dt class="propname">default_port</dt>
276 <dd>
277 <?php
278
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
279 $text_imapport = new html_inputfield(array('name' => '_default_port', 'size' => 6, 'id' => "cfgimapport"));
c5042d4 Thomas B. More installer stuff
thomascube authored
280 echo $text_imapport->show($RCI->getprop('default_port'));
281
282 ?>
283 <div>TCP port used for IMAP connections</div>
284 </dd>
285
286 <dt class="propname">username_domain</dt>
287 <dd>
288 <?php
289
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
290 $text_userdomain = new html_inputfield(array('name' => '_username_domain', 'size' => 30, 'id' => "cfguserdomain"));
c5042d4 Thomas B. More installer stuff
thomascube authored
291 echo $text_userdomain->show($RCI->getprop('username_domain'));
292
293 ?>
294 <div>Automatically add this domain to user names for login</div>
295
296 <p class="hint">Only for IMAP servers that require full e-mail addresses for login</p>
297 </dd>
298
3549785 Thomas B. First steps to implement an installer
thomascube authored
299 <dt class="propname">auto_create_user</dt>
300 <dd>
301 <?php
302
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
303 $check_autocreate = new html_checkbox(array('name' => '_auto_create_user', 'id' => "cfgautocreate"));
3549785 Thomas B. First steps to implement an installer
thomascube authored
304 echo $check_autocreate->show(intval($RCI->getprop('auto_create_user')), array('value' => 1));
305
306 ?>
307 <label for="cfgautocreate">Automatically create a new RoundCube user when log-in the first time</label><br />
308
309 <p class="hint">A user is authenticated by the IMAP server but it requires a local record to store settings
310 and contacts. With this option enabled a new user record will automatically be created once the IMAP login succeeds.</p>
311
312 <p class="hint">If this option is disabled, the login only succeeds if there's a matching user-record in the local RoundCube database
313 what means that you have to create those records manually or disable this option after the first login.</p>
314 </dd>
315
c5042d4 Thomas B. More installer stuff
thomascube authored
316 <dt class="propname">sent_mbox</dt>
317 <dd>
318 <?php
319
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
320 $text_sentmbox = new html_inputfield(array('name' => '_sent_mbox', 'size' => 20, 'id' => "cfgsentmbox"));
c5042d4 Thomas B. More installer stuff
thomascube authored
321 echo $text_sentmbox->show($RCI->getprop('sent_mbox'));
322
323 ?>
324 <div>Store sent messages is this folder</div>
325
326 <p class="hint">Leave blank if sent messages should not be stored</p>
327 </dd>
328
329 <dt class="propname">trash_mbox</dt>
330 <dd>
331 <?php
332
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
333 $text_trashmbox = new html_inputfield(array('name' => '_trash_mbox', 'size' => 20, 'id' => "cfgtrashmbox"));
c5042d4 Thomas B. More installer stuff
thomascube authored
334 echo $text_trashmbox->show($RCI->getprop('trash_mbox'));
335
336 ?>
337 <div>Move messages to this folder when deleting them</div>
338
339 <p class="hint">Leave blank if they should be deleted directly</p>
340 </dd>
341
342 <dt class="propname">drafts_mbox</dt>
343 <dd>
344 <?php
345
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
346 $text_draftsmbox = new html_inputfield(array('name' => '_drafts_mbox', 'size' => 20, 'id' => "cfgdraftsmbox"));
c5042d4 Thomas B. More installer stuff
thomascube authored
347 echo $text_draftsmbox->show($RCI->getprop('drafts_mbox'));
348
349 ?>
350 <div>Store draft messages is this folder</div>
351 </dd>
352
3549785 Thomas B. First steps to implement an installer
thomascube authored
353 </dl>
354 </fieldset>
355
c5042d4 Thomas B. More installer stuff
thomascube authored
356
3549785 Thomas B. First steps to implement an installer
thomascube authored
357 <fieldset>
358 <legend>SMTP Settings</legend>
c5042d4 Thomas B. More installer stuff
thomascube authored
359 <dl class="configblock" id="cgfblocksmtp">
360 <dt class="propname">smtp_server</dt>
361 <dd>
362 <?php
363
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
364 $text_smtphost = new html_inputfield(array('name' => '_smtp_server', 'size' => 30, 'id' => "cfgsmtphost"));
c5042d4 Thomas B. More installer stuff
thomascube authored
365 echo $text_smtphost->show($RCI->getprop('smtp_server'));
366
367 ?>
368 <div>Use this host for sending mails</div>
369
370 <p class="hint">To use SSL connection, set ssl://smtp.host.com. If left blank, the PHP mail() function is used</p>
371 </dd>
372
373 <dt class="propname">smtp_port</dt>
374 <dd>
375 <?php
376
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
377 $text_smtpport = new html_inputfield(array('name' => '_smtp_port', 'size' => 6, 'id' => "cfgsmtpport"));
c5042d4 Thomas B. More installer stuff
thomascube authored
378 echo $text_smtpport->show($RCI->getprop('smtp_port'));
379
380 ?>
381 <div>SMTP port (default is 25; 465 for SSL)</div>
382 </dd>
383
384 <dt class="propname">smtp_user/smtp_pass</dt>
385 <dd>
386 <?php
387
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
388 $text_smtpuser = new html_inputfield(array('name' => '_smtp_user', 'size' => 20, 'id' => "cfgsmtpuser"));
2e90ff5 Aleksander Machniak - Make password input fields of type password in installer (#1484886)
alecpl authored
389 $text_smtppass = new html_passwordfield(array('name' => '_smtp_pass', 'size' => 20, 'id' => "cfgsmtppass"));
c5042d4 Thomas B. More installer stuff
thomascube authored
390 echo $text_smtpuser->show($RCI->getprop('smtp_user'));
391 echo $text_smtppass->show($RCI->getprop('smtp_pass'));
392
393 ?>
394 <div>SMTP username and password (if required)</div>
395 <p>
396 <?php
397
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
398 $check_smtpuser = new html_checkbox(array('name' => '_smtp_user_u', 'id' => "cfgsmtpuseru"));
c5042d4 Thomas B. More installer stuff
thomascube authored
399 echo $check_smtpuser->show($RCI->getprop('smtp_user') == '%u' || $_POST['_smtp_user_u'] ? 1 : 0, array('value' => 1));
400
401 ?>
402 <label for="cfgsmtpuseru">Use the current IMAP username and password for SMTP authentication</label>
403 </p>
404 </dd>
405 <!--
406 <dt class="propname">smtp_auth_type</dt>
407 <dd>
408 <?php
409 /*
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
410 $select_smtpauth = new html_select(array('name' => '_smtp_auth_type', 'id' => "cfgsmtpauth"));
c5042d4 Thomas B. More installer stuff
thomascube authored
411 $select_smtpauth->add(array('(auto)', 'PLAIN', 'DIGEST-MD5', 'CRAM-MD5', 'LOGIN'), array('0', 'PLAIN', 'DIGEST-MD5', 'CRAM-MD5', 'LOGIN'));
412 echo $select_smtpauth->show(intval($RCI->getprop('smtp_auth_type')));
413 */
414 ?>
415 <div>Method to authenticate at the SMTP server. Choose (auto) if you don't know what this is</div>
416 </dd>
417 -->
418 <dt class="propname">smtp_log</dt>
419 <dd>
420 <?php
421
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
422 $check_smtplog = new html_checkbox(array('name' => '_smtp_log', 'id' => "cfgsmtplog"));
c5042d4 Thomas B. More installer stuff
thomascube authored
423 echo $check_smtplog->show(intval($RCI->getprop('smtp_log')), array('value' => 1));
424
425 ?>
426 <label for="cfgsmtplog">Log sent messages in <tt>logs/sendmail</tt></label><br />
427 </dd>
428
3549785 Thomas B. First steps to implement an installer
thomascube authored
429 </dl>
430 </fieldset>
431
c5042d4 Thomas B. More installer stuff
thomascube authored
432
3549785 Thomas B. First steps to implement an installer
thomascube authored
433 <fieldset>
27564f1 Thomas B. Add IMAP test and some more options to installer script
thomascube authored
434 <legend>Display settings &amp; user prefs</legend>
c5042d4 Thomas B. More installer stuff
thomascube authored
435 <dl class="configblock" id="cgfblockdisplay">
3549785 Thomas B. First steps to implement an installer
thomascube authored
436
437 <dt class="propname">locale_string</dt>
438 <dd>
439 <?php
440
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
441 $input_locale = new html_inputfield(array('name' => '_locale_string', 'size' => 6, 'id' => "cfglocale"));
3549785 Thomas B. First steps to implement an installer
thomascube authored
442 echo $input_locale->show($RCI->getprop('locale_string'));
443
444 ?>
445 <div>The default locale setting. This also defines the language of the login screen.</div>
446 <p class="hint">Enter a <a href="http://www.faqs.org/rfcs/rfc1766">RFC1766</a> formatted locale name. Examples: en_US, de, de_CH, fr, pt_BR</p>
447 </dd>
448
27564f1 Thomas B. Add IMAP test and some more options to installer script
thomascube authored
449 <dt class="propname">pagesize <span class="userconf">*</span></dt>
450 <dd>
451 <?php
452
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
453 $input_pagesize = new html_inputfield(array('name' => '_pagesize', 'size' => 6, 'id' => "cfgpagesize"));
27564f1 Thomas B. Add IMAP test and some more options to installer script
thomascube authored
454 echo $input_pagesize->show($RCI->getprop('pagesize'));
455
456 ?>
457 <div>Show up to X items in list view.</div>
458 </dd>
459
460 <dt class="propname">prefer_html <span class="userconf">*</span></dt>
461 <dd>
462 <?php
463
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
464 $check_htmlview = new html_checkbox(array('name' => '_prefer_html', 'id' => "cfghtmlview", 'value' => 1));
27564f1 Thomas B. Add IMAP test and some more options to installer script
thomascube authored
465 echo $check_htmlview->show(intval($RCI->getprop('prefer_html')));
466
467 ?>
468 <label for="cfghtmlview">Prefer displaying HTML messages</label><br />
469 </dd>
470
471 <dt class="propname">preview_pane <span class="userconf">*</span></dt>
472 <dd>
473 <?php
474
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
475 $check_prevpane = new html_checkbox(array('name' => '_preview_pane', 'id' => "cfgprevpane", 'value' => 1));
27564f1 Thomas B. Add IMAP test and some more options to installer script
thomascube authored
476 echo $check_prevpane->show(intval($RCI->getprop('preview_pane')));
477
478 ?>
479 <label for="cfgprevpane">If preview pane is enabled</label><br />
480 </dd>
481
482 <dt class="propname">htmleditor <span class="userconf">*</span></dt>
483 <dd>
484 <?php
485
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
486 $check_htmlcomp = new html_checkbox(array('name' => '_htmleditor', 'id' => "cfghtmlcompose", 'value' => 1));
27564f1 Thomas B. Add IMAP test and some more options to installer script
thomascube authored
487 echo $check_htmlcomp->show(intval($RCI->getprop('htmleditor')));
488
489 ?>
490 <label for="cfghtmlcompose">Compose HTML formatted messages</label><br />
491 </dd>
492
493 <dt class="propname">draft_autosave <span class="userconf">*</span></dt>
494 <dd>
495 <label for="cfgautosave">Save compose message every</label>
496 <?php
497
47124c2 Thomas B. Changed codebase to PHP5 with autoloader + added some new classes from t...
thomascube authored
498 $select_autosave = new html_select(array('name' => '_draft_autosave', 'id' => 'cfgautosave'));
27564f1 Thomas B. Add IMAP test and some more options to installer script
thomascube authored
499 $select_autosave->add('never', 0);
500 foreach (array(3, 5, 10) as $i => $min)
501 $select_autosave->add("$min min", $min*60);
502
503 echo $select_autosave->show(intval($RCI->getprop('draft_autosave')));
504
505 ?>
506 </dd>
507
3549785 Thomas B. First steps to implement an installer
thomascube authored
508 </dl>
27564f1 Thomas B. Add IMAP test and some more options to installer script
thomascube authored
509
510 <p class="hint"><span class="userconf">*</span>&nbsp; These settings are defaults for the user preferences</p>
3549785 Thomas B. First steps to implement an installer
thomascube authored
511 </fieldset>
512
513 <?php
514
b3f9dfb Thomas B. Allow to skip the config step if config files already exist
thomascube authored
515 echo '<p><input type="submit" name="submit" value="' . ($RCI->configured ? 'UPDATE' : 'CREATE') . ' CONFIG" ' . ($RCI->failures ? 'disabled' : '') . ' /></p>';
3549785 Thomas B. First steps to implement an installer
thomascube authored
516
517 ?>
518 </form>
Something went wrong with that request. Please try again.