5
* Squirrelspell setup file, as defined by the SquirrelMail-1.2 API.
7
* Copyright (c) 1999-2003 The SquirrelMail development team
8
* Licensed under the GNU GPL. For full terms see the file COPYING.
10
* $Id: setup.php,v 1.11 2003/10/27 22:24:41 tassium Exp $
12
* @author Konstantin Riabitsev <icon@duke.edu> ($Author: tassium $)
13
* @version $Date: 2003/10/27 22:24:41 $
15
* @subpackage squirrelspell
19
* Standard squirrelmail plugin initialization API.
23
function squirrelmail_plugin_init_squirrelspell() {
24
global $squirrelmail_plugin_hooks;
25
$squirrelmail_plugin_hooks['compose_button_row']['squirrelspell'] =
26
'squirrelspell_setup';
27
$squirrelmail_plugin_hooks['optpage_register_block']['squirrelspell'] =
28
'squirrelspell_optpage_register_block';
29
$squirrelmail_plugin_hooks['options_link_and_description']['squirrelspell'] =
30
'squirrelspell_options';
34
* This function formats and adds the plugin and its description to the
39
function squirrelspell_optpage_register_block() {
40
global $optpage_blocks;
42
* soupNazi checks if this browser is capable of using the plugin.
46
* The browser checks out.
47
* Register Squirrelspell with the $optionpages array.
51
'name' => _("SpellChecker Options"),
52
'url' => '../plugins/squirrelspell/sqspell_options.php',
53
'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."),
59
* This function adds a "Check Spelling" link to the "Compose" row
60
* during message composition.
64
function squirrelspell_setup() {
66
* Check if this browser is capable of displaying SquirrelSpell
71
* Some people may choose to disable javascript even though their
72
* browser is capable of using it. So these freaks don't complain,
73
* use document.write() so the "Check Spelling" button is not
74
* displayed if js is off in the browser.
76
echo "<script type=\"text/javascript\">\n"
78
. 'document.write("<input type=\"button\" value=\"'
80
. '\" onclick=\"window.open(\'../plugins/squirrelspell/sqspell_'
81
. 'interface.php\', \'sqspell\', \'status=yes,width=550,height=370,'
82
. 'resizable=yes\')\">");' . "\n"