alecpl
2008-10-09 e70b3b24fc8ac7b54a820ae87ce8f4af4043125e
commit | author | age
4ca10b 1 <?php
T 2
3     /** start RoundCube specific code */
4     
526d17 5     define('INSTALL_PATH', preg_replace('/program[\\\\\/]js[\\\\\/].+$/', '', getcwd()));
4ca10b 6     require_once INSTALL_PATH . 'program/include/iniset.php';
T 7     
8     $rcmail_config = new rcube_config();
9     $config['general.engine'] = $rcmail_config->get('spellcheck_engine') == 'pspell' ? 'PSpell' : 'GoogleSpell';
ded713 10     $config['GoogleSpell.rpc_uri'] = $rcmail_config->get('spellcheck_uri');
4ca10b 11     
T 12     /** end RoundCube specific code */
13
14     // General settings
15     //$config['general.engine'] = 'GoogleSpell';
16     //$config['general.engine'] = 'PSpell';
17     //$config['general.engine'] = 'PSpellShell';
18     //$config['general.remote_rpc_url'] = 'http://some.other.site/some/url/rpc.php';
19
20     // PSpell settings
21     $config['PSpell.mode'] = PSPELL_FAST;
22     $config['PSpell.spelling'] = "";
23     $config['PSpell.jargon'] = "";
24     $config['PSpell.encoding'] = "";
25
26     // PSpellShell settings
27     $config['PSpellShell.mode'] = PSPELL_FAST;
28     $config['PSpellShell.aspell'] = '/usr/bin/aspell';
29     $config['PSpellShell.tmp'] = '/tmp';
30     
31     // Windows PSpellShell settings
32     //$config['PSpellShell.aspell'] = '"c:\Program Files\Aspell\bin\aspell.exe"';
33     //$config['PSpellShell.tmp'] = 'c:/temp';
34 ?>