5
5
* Squirrelspell setup file, as defined by the SquirrelMail-1.2 API.
7
* Copyright (c) 1999-2005 The SquirrelMail development team
7
* Copyright (c) 1999-2005 The SquirrelMail Project Team
8
8
* Licensed under the GNU GPL. For full terms see the file COPYING.
10
* $Id: setup.php,v 1.10.2.2 2004/12/27 15:03:58 kink Exp $
12
* @author Konstantin Riabitsev <icon@duke.edu> ($Author: kink $)
13
* @version $Date: 2004/12/27 15:03:58 $
10
* @author Konstantin Riabitsev <icon@duke.edu>
11
* @version $Id: setup.php,v 1.10.2.5 2005/06/04 21:57:32 jervfors Exp $
13
* @subpackage squirrelspell
17
if (! defined('SM_PATH')) define('SM_PATH','../../');
17
* Standard squirrelmail plugin initialization API.
20
* Standard SquirrelMail plugin initialization API.
21
24
function squirrelmail_plugin_init_squirrelspell() {
22
25
global $squirrelmail_plugin_hooks;
23
$squirrelmail_plugin_hooks['compose_button_row']['squirrelspell'] =
24
'squirrelspell_setup';
25
$squirrelmail_plugin_hooks['optpage_register_block']['squirrelspell'] =
26
'squirrelspell_optpage_register_block';
26
$squirrelmail_plugin_hooks['compose_button_row']['squirrelspell'] =
27
'squirrelspell_setup';
28
$squirrelmail_plugin_hooks['optpage_register_block']['squirrelspell'] =
29
'squirrelspell_optpage_register_block';
27
30
$squirrelmail_plugin_hooks['options_link_and_description']['squirrelspell'] =
28
'squirrelspell_options';
31
'squirrelspell_options';
44
47
* The browser checks out.
45
* Register Squirrelspell with the $optionpages array.
48
* Register Squirrelspell with the $optionpages array.
47
50
$optpage_blocks[] =
49
'name' => _("SpellChecker Options"),
50
'url' => '../plugins/squirrelspell/sqspell_options.php',
51
'desc' => _("Here you may set up how your personal dictionary is stored, edit it, or choose which languages should be available to you when spell-checking."),
52
'name' => _("SpellChecker Options"),
53
'url' => '../plugins/squirrelspell/sqspell_options.php',
54
'desc' => _("Here you may set up how your personal dictionary is stored, edit it, or choose which languages should be available to you when spell-checking."),
71
74
* use document.write() so the "Check Spelling" button is not
72
75
* displayed if js is off in the browser.
74
echo "<script type=\"text/javascript\">\n"
76
. 'document.write("<input type=\"button\" value=\"'
78
. '\" onclick=\"window.open(\'../plugins/squirrelspell/sqspell_'
79
. 'interface.php\', \'sqspell\', \'status=yes,width=550,height=370,'
80
. 'resizable=yes\')\">");' . "\n"
77
echo "<script type=\"text/javascript\">\n".
79
'document.write("<input type=\"button\" value=\"'.
81
'\" name=\"check_spelling\" onclick=\"window.open(\'../plugins/squirrelspell/sqspell_'.
82
'interface.php\', \'sqspell\', \'status=yes,width=550,height=370,'.
83
'resizable=yes\')\" />");' . "\n".
b'\\ No newline at end of file'