<?php
- /**
- ** setup.php -- SpamCop plugin
- **
- ** Copyright (c) 1999-2003 The SquirrelMail development team
- ** Licensed under the GNU GPL. For full terms see the file COPYING.
- **
- ** $Id$
- * @package plugins
- * @subpackage spamcop
- **/
+/**
+ * setup.php -- SpamCop plugin - setup script
+ *
+ * @copyright (c) 1999-2004 The SquirrelMail development team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package plugins
+ * @subpackage spamcop
+ */
/** @ignore */
require_once(SM_PATH . 'functions/global.php');
/** Disable Quick Reporting by default */
$spamcop_quick_report = false;
-/** Initialize the plugin */
+/**
+ * Initialize the plugin
+ * @access private
+ */
function squirrelmail_plugin_init_spamcop() {
global $squirrelmail_plugin_hooks, $data_dir, $username,
$spamcop_is_composing;
/**
* Loads spamcop settings and validates some of values (make '' into 'default', etc.)
+ * @access private
*/
function spamcop_load() {
global $username, $data_dir, $spamcop_enabled, $spamcop_delete,
/**
* Shows spamcop link on the read-a-message screen
+ * @access private
*/
function spamcop_show_link() {
global $spamcop_enabled, $spamcop_method, $spamcop_quick_report,$javascript_on;
/**
* Show spamcop options block
+ * @access private
*/
function spamcop_options()
{
$optpage_blocks[] = array(
'name' => _("SpamCop - Spam Reporting"),
'url' => '../plugins/spamcop/options.php',
- 'desc' => _("Help fight the battle against unsolicited email. SpamCop reads the spam email and determines the correct addresses to send complaints to. Quite fast, really smart, and easy to use."),
+ 'desc' => _("Help fight the battle against unsolicited email. SpamCop reads the spam email and determines the correct addresses to send complaints to. Quite fast, really smart, and easy to use."),
'js' => false
);
}
/**
* When we send the email, we optionally trash it then too
+ * @access private
*/
function spamcop_while_sending()
{