From: Tomas K. <to...@us...> - 2006-09-30 17:48:18
|
Update of /cvsroot/squirrelmail/squirrelmail/plugins/squirrelspell In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11494 Modified Files: sqspell_config.php sqspell_functions.php Log Message: adding php pspell support. If it breaks - blame me. Index: sqspell_config.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/squirrelspell/sqspell_config.php,v retrieving revision 1.25 retrieving revision 1.26 diff -u -w -r1.25 -r1.26 --- sqspell_config.php 15 Jul 2006 12:01:18 -0000 1.25 +++ sqspell_config.php 30 Sep 2006 17:48:14 -0000 1.26 @@ -62,6 +62,29 @@ 'Spanish' => 'ispell -d spanish -a'); /** + * Sample configuration for PHP pspell extension. Sets dictionary options. + * Each language definition can contain up to 3 comma delimited options. + * First option sets language, second sets spelling, third one sets jargon. + * See http://www.php.net/pspell-new + * + * Pspell extension is supported since 0.6 (sm 1.5.2) + */ +//$SQSPELL_APP = array('English' => 'en', +// 'Spanish' => 'es'); + +/** + * 0 - default, command line ispell or aspell utilities configured with SQSPELL_APP + * 1 - use php pspell extension. WARNING requires different SQSPELL_APP options. + */ +$SQSPELL_SPELLCHECKER = 0; + +/** + * Can be used to turn of detection of proc_open support in command line spellcheck + * module. Option is not used if $SQSPELL_SPELLCHECKER is set to 1. + */ +$SQSPELL_FORCE_POPEN = false; + +/** * Default dictionary * @global string $SQSPELL_APP_DEFAULT */ Index: sqspell_functions.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/squirrelspell/sqspell_functions.php,v retrieving revision 1.35 retrieving revision 1.36 diff -u -w -r1.35 -r1.36 --- sqspell_functions.php 15 Jul 2006 12:01:18 -0000 1.35 +++ sqspell_functions.php 30 Sep 2006 17:48:14 -0000 1.36 @@ -218,8 +218,10 @@ html_tag( 'tr', "\n" . html_tag( 'td', 'SquirrelSpell ' . squirrelspell_version(), 'center', $color[9] ) ) , - '', '', 'width="100%" border="0" cellpadding="2"' ) - . "</body>\n</html>\n"; + '', '', 'width="100%" border="0" cellpadding="2"' ); + + global $oTemplate; + $oTemplate->display('footer.tpl'); } /** |