Source for file setup.php
Documentation is available at setup.php
* Squirrelspell setup file, as defined by the SquirrelMail-1.2 API.
* Copyright (c) 1999-2020 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
* @version $Id: setup.php 14840 2020-01-07 07:42:38Z pdontthink $
* @subpackage squirrelspell
* Standard SquirrelMail plugin initialization API.
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks['compose_button_row']['squirrelspell'] =
$squirrelmail_plugin_hooks['optpage_register_block']['squirrelspell'] =
'squirrelspell_optpage_register_block';
* This function formats and adds the plugin and its description to the
global $optpage_blocks, $javascript_on, $squirrelmail_language;
// this is a hack to avoid having to change the strings
// in all our translations for this misspelled word
if (strpos($squirrelmail_language, 'en_') ===
0)
$name =
'Spell Checker Options';
$name =
_("SpellChecker Options");
'url' =>
'../plugins/squirrelspell/sqspell_options.php',
'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."),
* This function adds a "Check Spelling" link to the "Compose" row
* during message composition.
global $data_dir, $username, $javascript_on;
$sqspell_show_button =
getPref($data_dir, $username, 'sqspell_show_button', 1);
if ($javascript_on &&
$sqspell_show_button) {
echo
'<input type="button" value="'
.
'" name="check_spelling" onclick="window.open(\'../plugins/squirrelspell/sqspell_interface.php\', \'sqspell\', \'status=yes,width=550,height=370,resizable=yes\')" />';
Documentation generated on Mon, 13 Jan 2020 04:25:17 +0100 by phpDocumentor 1.4.3