// Report an entry as abuse to centralized blacklist: // Check that this action request is not a CSRF hacked request: $Session->assert_received_crumb('antispam'); // Check permission: $current_User->check_perm('spamblacklist', 'edit', true); // Report this keyword as abuse: antispam_report_abuse($keyword); break; case 'poll': // request abuse list from central blacklist: // Check that this action request is not a CSRF hacked request: $Session->assert_received_crumb('antispam'); // Check permission: $current_User->check_perm('spamblacklist', 'edit', true); ob_start(); antispam_poll_abuse(); $Debuglog->add(ob_get_contents(), 'antispam_poll'); ob_end_clean(); break; case 'update': // Check that this action request is not a CSRF hacked request: $Session->assert_received_crumb('antispam'); // Check permission: $current_User->check_perm('options', 'edit', true); // fp> Restore defaults has been removed because it's extra maintenance work and no real benefit to the user. param_integer_range('antispam_threshold_publish', -100, 100, T_('The threshold must be between -100 and 100.')); $Settings->set('antispam_threshold_publish', $antispam_threshold_publish); param_integer_range('antispam_threshold_delete', -100, 100, T_('The threshold must be between -100 and 100.')); $Settings->set('antispam_threshold_delete', $antispam_threshold_delete); param('antispam_block_spam_referers', 'integer', 0); $Settings->set('antispam_block_spam_referers', $antispam_block_spam_referers);
<?php /** * This file implements the Antispam poll Cron controller * * @author fplanque: Francois PLANQUE * * @version $Id: _antispam_poll.job.php,v 1.1 2007/06/25 10:59:45 fplanque Exp $ */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } if (antispam_poll_abuse()) { // Success $job_ret = 1; } else { // Error $job_ret = 100; } global $Messages; $result_message = $Messages->get_string('', '', 'all', "\n"); return $job_ret;