Replacing tabs with spaces, trimming white space at EOL and newline at EOF
[squirrelmail.git] / plugins / abook_take / setup.php
1 <?php
2
3 /**
4 * setup.php
5 *
6 * Copyright (c) 1999-2004 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * Address Take -- steals addresses from incoming email messages. Searches
10 * the To, Cc, From and Reply-To headers, also searches the body of the
11 * message.
12 *
13 * $Id$
14 * @package plugins
15 * @subpackage abook_take
16 */
17
18 /**
19 * If SM_PATH isn't defined, define it. Required to include files.
20 * @ignore
21 */
22 if (!defined('SM_PATH')) {
23 define('SM_PATH','../../');
24 }
25
26 /**
27 * Initialize the plugin
28 */
29 function squirrelmail_plugin_init_abook_take()
30 {
31 global $squirrelmail_plugin_hooks;
32
33 $squirrelmail_plugin_hooks['read_body_bottom']['abook_take'] = 'abook_take_read_body_bottom';
34 $squirrelmail_plugin_hooks['loading_prefs']['abook_take'] = 'abook_take_loading_prefs';
35 $squirrelmail_plugin_hooks['options_display_inside']['abook_take'] = 'abook_take_options_display_inside';
36 $squirrelmail_plugin_hooks['options_display_save']['abook_take'] = 'abook_take_options_display_save';
37 }
38
39 function abook_take_read_body_bottom() {
40 include_once(SM_PATH . 'plugins/abook_take/functions.php');
41
42 abook_take_read();
43 }
44
45 function abook_take_loading_prefs() {
46 include_once(SM_PATH . 'plugins/abook_take/functions.php');
47
48 abook_take_pref();
49 }
50
51 function abook_take_options_display_inside() {
52 include_once(SM_PATH . 'plugins/abook_take/functions.php');
53
54 abook_take_options();
55 }
56
57 function abook_take_options_display_save() {
58 include_once(SM_PATH . 'plugins/abook_take/functions.php');
59
60 abook_take_save();
61 }
62
63 ?>