Replacing deprecated HTML "center" element.
[squirrelmail.git] / plugins / abook_take / setup.php
CommitLineData
e8b140ab 1<?php
2
b755a6b1 3/**
4 * setup.php
5 *
b755a6b1 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 *
47ccfad4 10 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
4b4abf93 11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
4f51df66 12 * @version $Id$
ea5f4b8e 13 * @package plugins
14 * @subpackage abook_take
b755a6b1 15 */
16
ea5f4b8e 17/**
18 * If SM_PATH isn't defined, define it. Required to include files.
19 * @ignore
20 */
c3c84392 21if (!defined('SM_PATH')) {
b755a6b1 22 define('SM_PATH','../../');
c3c84392 23}
d55c0f66 24
ea5f4b8e 25/**
26 * Initialize the plugin
27 */
e8b140ab 28function squirrelmail_plugin_init_abook_take()
29{
b755a6b1 30 global $squirrelmail_plugin_hooks;
e8b140ab 31
70e61af6 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';
e8b140ab 36}
37
70e61af6 38function abook_take_read_body_bottom() {
39 include_once(SM_PATH . 'plugins/abook_take/functions.php');
b755a6b1 40
70e61af6 41 abook_take_read();
e8b140ab 42}
43
70e61af6 44function abook_take_loading_prefs() {
45 include_once(SM_PATH . 'plugins/abook_take/functions.php');
e8b140ab 46
70e61af6 47 abook_take_pref();
e8b140ab 48}
49
70e61af6 50function abook_take_options_display_inside() {
51 include_once(SM_PATH . 'plugins/abook_take/functions.php');
b755a6b1 52
70e61af6 53 abook_take_options();
e8b140ab 54}
55
70e61af6 56function abook_take_options_display_save() {
57 include_once(SM_PATH . 'plugins/abook_take/functions.php');
e8b140ab 58
70e61af6 59 abook_take_save();
e8b140ab 60}
61
91e0dccc 62?>