]> git.donarmstrong.com Git - roundcube.git/blob - program/steps/utils/spell.inc
d14b19a8c85010d856d49e198c6bee7394d0ad77
[roundcube.git] / program / steps / utils / spell.inc
1 <?php
2
3 /*
4  +-----------------------------------------------------------------------+
5  | program/steps/utils/spell.inc                                         |
6  |                                                                       |
7  | This file is part of the Roundcube Webmail client                     |
8  | Licensed under the GNU GPL                                            |
9  |                                                                       |
10  | PURPOSE:                                                              |
11  |   Invoke the configured or default spell checking engine.             |
12  |                                                                       |
13  +-----------------------------------------------------------------------+
14  | Author: Kris Steinhoff <steinhof@umich.edu>                           |
15  +-----------------------------------------------------------------------+
16
17  $Id: spell.inc 3989 2010-09-25 13:03:53Z alec $
18
19 */
20
21 // max. number of suggestions for one word
22 define('MAX_SUGGESTIONS', 10);
23
24 $tiny = !empty($_GET['tiny']) ? 'html_' : '';
25
26 if ($spell_engine = $RCMAIL->config->get('spellcheck_engine', 'googie')) {
27     include('spell_'.$tiny.$spell_engine.'.inc');
28 }
29
30 header('HTTP/1.1 404 Not Found');
31 exit;
32