All this document.write stuff is overkill when we already have checkForJavascript...
[squirrelmail.git] / plugins / abook_take / setup.php
1 <?php
2
3 /**
4 * setup.php
5 *
6 * Address Take -- steals addresses from incoming email messages. Searches
7 * the To, Cc, From and Reply-To headers, also searches the body of the
8 * message.
9 *
10 * @copyright &copy; 1999-2007 The SquirrelMail Project Team
11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @version $Id$
13 * @package plugins
14 * @subpackage abook_take
15 */
16
17
18 /**
19 * Initialize the plugin
20 */
21 function squirrelmail_plugin_init_abook_take()
22 {
23 global $squirrelmail_plugin_hooks;
24
25 $squirrelmail_plugin_hooks['read_body_bottom']['abook_take'] = 'abook_take_read_body_bottom';
26 $squirrelmail_plugin_hooks['loading_prefs']['abook_take'] = 'abook_take_loading_prefs';
27 $squirrelmail_plugin_hooks['options_display_inside']['abook_take'] = 'abook_take_options_display_inside';
28 $squirrelmail_plugin_hooks['options_display_save']['abook_take'] = 'abook_take_options_display_save';
29 }
30
31 function abook_take_read_body_bottom() {
32 include_once(SM_PATH . 'plugins/abook_take/functions.php');
33
34 abook_take_read();
35 }
36
37 function abook_take_loading_prefs() {
38 include_once(SM_PATH . 'plugins/abook_take/functions.php');
39
40 abook_take_pref();
41 }
42
43 function abook_take_options_display_inside() {
44 include_once(SM_PATH . 'plugins/abook_take/functions.php');
45
46 abook_take_options();
47 }
48
49 function abook_take_options_display_save() {
50 include_once(SM_PATH . 'plugins/abook_take/functions.php');
51
52 abook_take_save();
53 }