copyright update
[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-2006 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 * If SM_PATH isn't defined, define it. Required to include files.
19 * @ignore
20 */
21 if (!defined('SM_PATH')) {
22 define('SM_PATH','../../');
23 }
24
25 /**
26 * Initialize the plugin
27 */
28 function squirrelmail_plugin_init_abook_take()
29 {
30 global $squirrelmail_plugin_hooks;
31
32 $squirrelmail_plugin_hooks['read_body_bottom']['abook_take'] = 'abook_take_read_body_bottom';
33 $squirrelmail_plugin_hooks['loading_prefs']['abook_take'] = 'abook_take_loading_prefs';
34 $squirrelmail_plugin_hooks['options_display_inside']['abook_take'] = 'abook_take_options_display_inside';
35 $squirrelmail_plugin_hooks['options_display_save']['abook_take'] = 'abook_take_options_display_save';
36 }
37
38 function abook_take_read_body_bottom() {
39 include_once(SM_PATH . 'plugins/abook_take/functions.php');
40
41 abook_take_read();
42 }
43
44 function abook_take_loading_prefs() {
45 include_once(SM_PATH . 'plugins/abook_take/functions.php');
46
47 abook_take_pref();
48 }
49
50 function abook_take_options_display_inside() {
51 include_once(SM_PATH . 'plugins/abook_take/functions.php');
52
53 abook_take_options();
54 }
55
56 function abook_take_options_display_save() {
57 include_once(SM_PATH . 'plugins/abook_take/functions.php');
58
59 abook_take_save();
60 }
61
62 ?>