|
|
|
@ -3,13 +3,17 @@ header('Content-type: text/html; charset=utf-8'); |
|
|
|
|
|
|
|
|
|
// The following variables values must reflect your installation needs. |
|
|
|
|
|
|
|
|
|
$aspell_prog = '"C:\Program Files\Aspell\bin\aspell.exe"'; // by FredCK (for Windows) |
|
|
|
|
//$aspell_prog = 'aspell'; // by FredCK (for Linux) |
|
|
|
|
require_once '../../../../../../../../inc/global.inc.php'; |
|
|
|
|
|
|
|
|
|
$lang = 'en_US'; |
|
|
|
|
$aspell_opts = "-a --lang=$lang --encoding=utf-8 -H --rem-sgml-check=alt"; // by FredCK |
|
|
|
|
$aspellBinary = api_get_configuration_value('aspell_bin'); |
|
|
|
|
$aspellLanguage = api_get_configuration_value('aspell_lang'); |
|
|
|
|
$aspellOptions = api_get_configuration_value('aspell_opts'); |
|
|
|
|
$aspellTempDir = api_get_configuration_value('aspell_temp_dir'); |
|
|
|
|
|
|
|
|
|
$tempfiledir = "./"; |
|
|
|
|
$aspell_prog = !empty($aspellBinary) ? $aspellBinary : '"C:\Program Files\Aspell\bin\aspell.exe"'; |
|
|
|
|
$lang = !empty($aspellLanguage) ? $aspellLanguage : 'en_US'; |
|
|
|
|
$aspell_opts = !empty($aspellOptions) ? $aspellOptions : "-a --lang=$lang --encoding=utf-8 -H --rem-sgml-check=alt"; |
|
|
|
|
$tempfiledir = !empty($aspellTempDir) ? $aspellTempDir : "./"; |
|
|
|
|
|
|
|
|
|
$spellercss = '../spellerStyle.css'; // by FredCK |
|
|
|
|
$word_win_src = '../wordWindow.js'; // by FredCK |
|
|
|
|