2305e73696cb0958ce529d01153618181630a18e
4 * setup.php -- SpamCop plugin - setup script
6 * @copyright 1999-2011 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
14 * Initialize the plugin
17 function squirrelmail_plugin_init_spamcop() {
18 global $squirrelmail_plugin_hooks;
20 $squirrelmail_plugin_hooks['optpage_register_block']['spamcop'] =
22 $squirrelmail_plugin_hooks['loading_prefs']['spamcop'] =
24 $squirrelmail_plugin_hooks['read_body_header_right']['spamcop'] =
26 $squirrelmail_plugin_hooks['compose_send']['spamcop'] =
27 'spamcop_while_sending';
31 * Loads spamcop settings and validates some of values (make '' into 'default', etc.)
34 function spamcop_load() {
35 include_once(SM_PATH
. 'plugins/spamcop/functions.php');
36 spamcop_load_function();
41 * Shows spamcop link on the read-a-message screen
44 function spamcop_show_link(&$links) {
45 include_once(SM_PATH
. 'plugins/spamcop/functions.php');
46 spamcop_show_link_function($links);
50 * Show spamcop options block
53 function spamcop_options() {
54 include_once(SM_PATH
. 'plugins/spamcop/functions.php');
55 spamcop_options_function();
60 * Process messages submitted by email
63 function spamcop_while_sending() {
64 include_once(SM_PATH
. 'plugins/spamcop/functions.php');
65 spamcop_while_sending_function();