From 82475f4b16987bdd4539303c305d389d8fe82b07 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 01 May 2009 12:07:03 -0400 Subject: [PATCH] Add pspell option to installer script (patch from #1485588) --- installer/config.php | 28 ++++++++++++++++++++-------- 1 files changed, 20 insertions(+), 8 deletions(-) diff --git a/installer/config.php b/installer/config.php index fef222d..f72a0e8 100644 --- a/installer/config.php +++ b/installer/config.php @@ -112,14 +112,26 @@ <dt class="propname">enable_spellcheck</dt> <dd> <?php +$check_spell = new html_checkbox(array('name' => '_enable_spellcheck', 'id' => "cfgspellcheck")); +echo $check_spell->show(intval($RCI->getprop('enable_spellcheck')), array('value' => 1)); +?> +<label for="cfgspellcheck">Make use of the spell checker</label><br /> +</dd> -$check_caching = new html_checkbox(array('name' => '_enable_spellcheck', 'id' => "cfgspellcheck")); -echo $check_caching->show(intval($RCI->getprop('enable_spellcheck')), array('value' => 1)); +<dt class="propname">spellcheck_engine</dt> +<dd> +<?php +$select_spell = new html_select(array('name' => '_spellcheck_engine', 'id' => "cfgspellcheckengine")); +if (extension_loaded('pspell')) + $select_spell->add('pspell', 'pspell'); +$select_spell->add('Googlie', 'googlie'); + +echo $select_spell->show($RCI->is_post ? $_POST['_spellcheck_engine'] : 'pspell'); ?> -<label for="cfgspellcheck">Make use of the built-in spell checker</label><br /> +<label for="cfgspellcheckengine">Which spell checker to use</label><br /> -<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> +<p class="hint">GoogieSpell implies that the message content will be sent to Google in order to check the spelling.</p> </dd> <dt class="propname">identities_level</dt> @@ -255,13 +267,13 @@ echo $select_dbtype->show($RCI->is_post ? $_POST['_dbtype'] : $dsnw['phptype']); echo '<label for="cfgdbtype">Database type</label><br />'; echo $input_dbhost->show($RCI->is_post ? $_POST['_dbhost'] : $dsnw['hostspec']); -echo '<label for="cfgdbhost">Database server</label><br />'; +echo '<label for="cfgdbhost">Database server (omit for sqlite)</label><br />'; echo $input_dbname->show($RCI->is_post ? $_POST['_dbname'] : $dsnw['database']); echo '<label for="cfgdbname">Database name</label><br />'; echo $input_dbuser->show($RCI->is_post ? $_POST['_dbuser'] : $dsnw['username']); -echo '<label for="cfgdbuser">Database user name (needs write permissions)</label><br />'; +echo '<label for="cfgdbuser">Database user name (needs write permissions)(omit for sqlite)</label><br />'; echo $input_dbpass->show($RCI->is_post ? $_POST['_dbpass'] : $dsnw['password']); -echo '<label for="cfgdbpass">Database password</label><br />'; +echo '<label for="cfgdbpass">Database password (omit for sqlite)</label><br />'; ?> </dd> @@ -417,7 +429,7 @@ echo $text_smtpport->show($RCI->getprop('smtp_port')); ?> -<div>SMTP port (default is 25; 465 for SSL)</div> +<div>SMTP port (default is 25; 465 for SSL; 587 for submission)</div> </dd> <dt class="propname">smtp_user/smtp_pass</dt> -- Gitblit v1.9.1