| | |
| | | $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'); |
| | | $select_spell->add('Googie', 'googie'); |
| | | |
| | | echo $select_spell->show($RCI->is_post ? $_POST['_spellcheck_engine'] : 'pspell'); |
| | | |
| | |
| | | echo $input_dbhost->show($RCI->is_post ? $_POST['_dbhost'] : $dsnw['hostspec']); |
| | | 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 (use a path and filename for sqlite)</label><br />'; |
| | | echo '<label for="cfgdbname">Database name (use absolute path and filename for sqlite)</label><br />'; |
| | | echo $input_dbuser->show($RCI->is_post ? $_POST['_dbuser'] : $dsnw['username']); |
| | | 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']); |
| | |
| | | <legend>Display settings & user prefs</legend> |
| | | <dl class="configblock" id="cgfblockdisplay"> |
| | | |
| | | <dt class="propname">language</dt> |
| | | <dt class="propname">language <span class="userconf">*</span></dt> |
| | | <dd> |
| | | <?php |
| | | |
| | |
| | | |
| | | $select_autosave = new html_select(array('name' => '_draft_autosave', 'id' => 'cfgautosave')); |
| | | $select_autosave->add('never', 0); |
| | | foreach (array(3, 5, 10) as $i => $min) |
| | | foreach (array(1, 3, 5, 10) as $i => $min) |
| | | $select_autosave->add("$min min", $min*60); |
| | | |
| | | echo $select_autosave->show(intval($RCI->getprop('draft_autosave'))); |