5 * @package MCManager.includes
8 require_once(dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))))).'/config.php'); // moodle hack
9 @error_reporting(E_ALL ^ E_NOTICE); // hide notices even if Moodle is configured to show them
12 $config['general.engine'] = get_config('editor_tinymce', 'spellengine') ? get_config('editor_tinymce', 'spellengine') : 'GoogleSpell';
13 //$config['general.engine'] = 'PSpell';
14 //$config['general.engine'] = 'PSpellShell';
15 //$config['general.remote_rpc_url'] = 'http://some.other.site/some/url/rpc.php';
17 // GoogleSpell settings
18 $config['GoogleSpell.proxy'] = isset($CFG->proxyhost) ? $CFG->proxyhost : '';
19 $config['GoogleSpell.proxyport'] = isset($CFG->proxyport) ? $CFG->proxyport : '';
21 if ($config['general.engine'] === 'PSpell' or $config['general.engine'] === 'PSpellShell') {
23 $config['PSpell.mode'] = PSPELL_FAST;
24 $config['PSpell.spelling'] = "";
25 $config['PSpell.jargon'] = "";
26 $config['PSpell.encoding'] = "";
28 // PSpellShell settings
29 $config['PSpellShell.mode'] = PSPELL_FAST;
30 $config['PSpellShell.aspell'] = $CFG->aspellpath;
31 $config['PSpellShell.tmp'] = '/tmp';
33 // Windows PSpellShell settings
34 //$config['PSpellShell.aspell'] = '"c:\Program Files\Aspell\bin\aspell.exe"';
35 //$config['PSpellShell.tmp'] = 'c:/temp';