moving functions to separate file, adding configuration files
[squirrelmail.git] / plugins / abook_take / setup.php
CommitLineData
e8b140ab 1<?php
2
b755a6b1 3/**
4 * setup.php
5 *
82d304a0 6 * Copyright (c) 1999-2004 The SquirrelMail Project Team
b755a6b1 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$
ea5f4b8e 14 * @package plugins
15 * @subpackage abook_take
b755a6b1 16 */
17
ea5f4b8e 18/**
19 * If SM_PATH isn't defined, define it. Required to include files.
20 * @ignore
21 */
c3c84392 22if (!defined('SM_PATH')) {
b755a6b1 23 define('SM_PATH','../../');
c3c84392 24}
d55c0f66 25
ea5f4b8e 26/**
27 * Initialize the plugin
28 */
e8b140ab 29function squirrelmail_plugin_init_abook_take()
30{
b755a6b1 31 global $squirrelmail_plugin_hooks;
e8b140ab 32
70e61af6 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';
e8b140ab 37}
38
70e61af6 39function abook_take_read_body_bottom() {
40 include_once(SM_PATH . 'plugins/abook_take/functions.php');
b755a6b1 41
70e61af6 42 abook_take_read();
e8b140ab 43}
44
70e61af6 45function abook_take_loading_prefs() {
46 include_once(SM_PATH . 'plugins/abook_take/functions.php');
e8b140ab 47
70e61af6 48 abook_take_pref();
e8b140ab 49}
50
70e61af6 51function abook_take_options_display_inside() {
52 include_once(SM_PATH . 'plugins/abook_take/functions.php');
b755a6b1 53
70e61af6 54 abook_take_options();
e8b140ab 55}
56
70e61af6 57function abook_take_options_display_save() {
58 include_once(SM_PATH . 'plugins/abook_take/functions.php');
e8b140ab 59
70e61af6 60 abook_take_save();
e8b140ab 61}
62
63?>