MDL-29081 add proxy support to googlespell
[moodle.git] / lib / editor / tinymce / tiny_mce / 3.4.5 / plugins / spellchecker / config.php
CommitLineData
fb916bf0
PS
1<?php
2/**
3 * config.php
4 *
5 * @package MCManager.includes
6 */
7
8require_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
10
11 // General settings
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';
16
8f9f70fb
PS
17 // GoogleSpell settings
18 $config['GoogleSpell.proxyhost'] = isset($CFG->proxyhost) ? $CFG->proxyhost : '';
19 $config['GoogleSpell.proxyport'] = isset($CFG->proxyport) ? $CFG->proxyport : '';
20 $config['GoogleSpell.proxytype'] = isset($CFG->proxytype) ? $CFG->proxytype : 'HTML';
21 $config['GoogleSpell.proxyuser'] = isset($CFG->proxyuser) ? $CFG->proxyuser : '';
22 $config['GoogleSpell.proxypassword'] = isset($CFG->proxypassword) ? $CFG->proxypassword : '';
fb916bf0 23
8f9f70fb
PS
24if ($config['general.engine'] === 'PSpell' or $config['general.engine'] === 'PSpellShell') { // moodlehack
25 // PSpell settings
26 $config['PSpell.mode'] = PSPELL_FAST;
27 $config['PSpell.spelling'] = "";
28 $config['PSpell.jargon'] = "";
29 $config['PSpell.encoding'] = "";
fb916bf0 30
8f9f70fb
PS
31 // PSpellShell settings
32 $config['PSpellShell.mode'] = PSPELL_FAST;
33 $config['PSpellShell.aspell'] = $CFG->aspellpath;
34 $config['PSpellShell.tmp'] = '/tmp';
35
36 // Windows PSpellShell settings
37 //$config['PSpellShell.aspell'] = '"c:\Program Files\Aspell\bin\aspell.exe"';
38 //$config['PSpellShell.tmp'] = 'c:/temp';
39}
fb916bf0 40?>