~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to plugins/squirrelspell/setup.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst, Jeroen van Wolffelaar, Thijs Kinkhorst
  • Date: 2005-08-15 21:06:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050815210600-qxvat452exjqg64j
Tags: 2:1.4.5-2
[ Jeroen van Wolffelaar ]
* Restore squirrelmail-configure manpage, accidently dropped in -1
* Use debhelper compat level 4

[ Thijs Kinkhorst ]
* Drop obsolete symlink for attachment dir.
* Do not ship upstream README, which contains hardly any information
  relevant to Debian. Extend README.Debian a bit. Thanks W. Borgert.
* Add years to copyright statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * setup.php
4
4
 * -----------
5
5
 * Squirrelspell setup file, as defined by the SquirrelMail-1.2 API.
6
 
 * 
7
 
 * Copyright (c) 1999-2005 The SquirrelMail development team
 
6
 *
 
7
 * Copyright (c) 1999-2005 The SquirrelMail Project Team
8
8
 * Licensed under the GNU GPL. For full terms see the file COPYING.
9
9
 *
10
 
 * $Id: setup.php,v 1.10.2.2 2004/12/27 15:03:58 kink Exp $
11
 
 *
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 $
 
12
 * @package plugins
 
13
 * @subpackage squirrelspell
14
14
 */
15
15
 
 
16
/** @ignore */
 
17
if (! defined('SM_PATH')) define('SM_PATH','../../');
 
18
 
16
19
/**
17
 
 * Standard squirrelmail plugin initialization API.
 
20
 * Standard SquirrelMail plugin initialization API.
18
21
 *
19
22
 * @return void
20
23
 */
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';
29
32
}
30
33
 
31
34
/**
42
45
  if (!soupNazi()) {
43
46
    /**
44
47
     * The browser checks out.
45
 
     * Register Squirrelspell with the $optionpages array. 
 
48
     * Register Squirrelspell with the $optionpages array.
46
49
     */
47
50
    $optpage_blocks[] =
48
 
       array(
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
 
             'js'   => TRUE);
 
51
      array(
 
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."),
 
55
        'js'   => TRUE);
53
56
  }
54
57
}
55
58
 
71
74
     * use document.write() so the "Check Spelling" button is not
72
75
     * displayed if js is off in the browser.
73
76
     */
74
 
    echo "<script type=\"text/javascript\">\n"
75
 
      . "<!--\n"
76
 
      . 'document.write("<input type=\"button\" value=\"'
77
 
      . _("Check Spelling") 
78
 
      . '\" onclick=\"window.open(\'../plugins/squirrelspell/sqspell_'
79
 
      . 'interface.php\', \'sqspell\', \'status=yes,width=550,height=370,'
80
 
      . 'resizable=yes\')\">");' . "\n"
81
 
      . "//-->\n"
82
 
      . "</script>\n";
 
77
    echo "<script type=\"text/javascript\">\n".
 
78
      "<!--\n".
 
79
      'document.write("<input type=\"button\" value=\"'.
 
80
      _("Check Spelling").
 
81
      '\" name=\"check_spelling\" onclick=\"window.open(\'../plugins/squirrelspell/sqspell_'.
 
82
      'interface.php\', \'sqspell\', \'status=yes,width=550,height=370,'.
 
83
      'resizable=yes\')\" />");' . "\n".
 
84
      "//-->\n".
 
85
      "</script>\n";
83
86
  }
84
87
}
85
 
?>
 
88
 
 
89
?>
 
 
b'\\ No newline at end of file'