From 27564f1a22d42cdcdb1d2972ca79cc537876c44c Mon Sep 17 00:00:00 2001 From: thomascube Date: Thu, 28 Feb 2008 21:52:57 +0000 Subject: Add IMAP test and some more options to installer script --- installer/config.php | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) (limited to 'installer/config.php') diff --git a/installer/config.php b/installer/config.php index 2719cdb87..97052c8da 100644 --- a/installer/config.php +++ b/installer/config.php @@ -8,6 +8,18 @@ require_once 'include/rcube_html.inc'; // also load the default config to fill in the fields $RCI->load_defaults(); +// register these boolean fields +$RCI->config_props = array( + 'ip_check' => 1, + 'enable_caching' => 1, + 'enable_spellcheck' => 1, + 'auto_create_user' => 1, + 'smtp_log' => 1, + 'prefer_html' => 1, + 'preview_pane' => 1, + 'htmleditor' => 1, +); + if (!empty($_POST['submit'])) { echo '

Copy the following configurations and save them in two files (names above the text box)'; @@ -21,6 +33,9 @@ if (!empty($_POST['submit'])) { echo '

db.inc.php
'; echo $textbox->show($RCI->create_config('db')); + echo '

Of course there are more options to configure. + Have a look at the config files or visit Howto_Config to find out.

'; + echo '

'; // echo ''; @@ -415,7 +430,7 @@ echo $check_smtplog->show(intval($RCI->getprop('smtp_log')), array('value' => 1)
-Display settings +Display settings & user prefs
locale_string
@@ -430,7 +445,68 @@ echo $input_locale->show($RCI->getprop('locale_string'));

Enter a RFC1766 formatted locale name. Examples: en_US, de, de_CH, fr, pt_BR

+
pagesize *
+
+ '_pagesize', 'size' => 6, 'id' => "cfgpagesize")); +echo $input_pagesize->show($RCI->getprop('pagesize')); + +?> +
Show up to X items in list view.
+
+ +
prefer_html *
+
+ '_prefer_html', 'id' => "cfghtmlview", 'value' => 1)); +echo $check_htmlview->show(intval($RCI->getprop('prefer_html'))); + +?> +
+
+ +
preview_pane *
+
+ '_preview_pane', 'id' => "cfgprevpane", 'value' => 1)); +echo $check_prevpane->show(intval($RCI->getprop('preview_pane'))); + +?> +
+
+ +
htmleditor *
+
+ '_htmleditor', 'id' => "cfghtmlcompose", 'value' => 1)); +echo $check_htmlcomp->show(intval($RCI->getprop('htmleditor'))); + +?> +
+
+ +
draft_autosave *
+
+ + '_draft_autosave', 'id' => 'cfgautosave')); +$select_autosave->add('never', 0); +foreach (array(3, 5, 10) as $i => $min) + $select_autosave->add("$min min", $min*60); + +echo $select_autosave->show(intval($RCI->getprop('draft_autosave'))); + +?> +
+
+ +

*  These settings are defaults for the user preferences