Version Description
October 5 2016 = * Fixed database error.
Download this release
Release Info
Developer | Safronik |
Plugin | Spam protection, AntiSpam, FireWall by CleanTalk |
Version | 5.49.1 |
Comparing to | |
See all releases |
Code changes from version 5.49 to 5.49.1
- cleantalk.php +23 -15
- inc/cleantalk-common.php +1 -0
- inc/cleantalk-public.php +9 -1
- readme.txt +5 -1
cleantalk.php
CHANGED
@@ -3,12 +3,12 @@
|
|
3 |
Plugin Name: Spam Protection by CleanTalk
|
4 |
Plugin URI: http://cleantalk.org
|
5 |
Description: Max power, all-in-one, no Captcha, premium anti-spam plugin. No comment spam, no registration spam, no contact spam, protects any WordPress forms. Formerly Anti-Spam by CleanTalk.
|
6 |
-
Version: 5.49
|
7 |
Author: СleanTalk <welcome@cleantalk.org>
|
8 |
Author URI: http://cleantalk.org
|
9 |
*/
|
10 |
-
$cleantalk_plugin_version='5.49';
|
11 |
-
$ct_agent_version = 'wordpress-
|
12 |
$cleantalk_executed=false;
|
13 |
$ct_sfw_updated = false;
|
14 |
|
@@ -278,19 +278,10 @@ if(!defined('CLEANTALK_PLUGIN_DIR')){
|
|
278 |
}
|
279 |
}
|
280 |
|
281 |
-
|
282 |
-
|
283 |
-
*/
|
284 |
-
if (!function_exists ( 'ct_activation')) {
|
285 |
-
function ct_activation() {
|
286 |
-
|
287 |
-
global $wpdb;
|
288 |
|
289 |
-
|
290 |
-
//wp_schedule_event(time(), 'hourly', 'ct_send_sfw_log' );
|
291 |
-
wp_schedule_event(time(), 'daily', 'cleantalk_update_sfw' );
|
292 |
-
|
293 |
-
$wpdb->query("CREATE TABLE IF NOT EXISTS `".$wpdb->base_prefix."cleantalk_sfw` (
|
294 |
`network` int(11) unsigned NOT NULL,
|
295 |
`mask` int(11) unsigned NOT NULL,
|
296 |
INDEX ( `network` , `mask` )
|
@@ -303,6 +294,23 @@ INDEX ( `network` , `mask` )
|
|
303 |
`timestamp` INT NOT NULL ,
|
304 |
PRIMARY KEY (`ip`))
|
305 |
ENGINE = MYISAM;");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
|
307 |
cleantalk_update_sfw();
|
308 |
add_option('ct_plugin_do_activation_redirect', true);
|
3 |
Plugin Name: Spam Protection by CleanTalk
|
4 |
Plugin URI: http://cleantalk.org
|
5 |
Description: Max power, all-in-one, no Captcha, premium anti-spam plugin. No comment spam, no registration spam, no contact spam, protects any WordPress forms. Formerly Anti-Spam by CleanTalk.
|
6 |
+
Version: 5.49.1
|
7 |
Author: СleanTalk <welcome@cleantalk.org>
|
8 |
Author URI: http://cleantalk.org
|
9 |
*/
|
10 |
+
$cleantalk_plugin_version='5.49.1';
|
11 |
+
$ct_agent_version = 'wordpress-5491';
|
12 |
$cleantalk_executed=false;
|
13 |
$ct_sfw_updated = false;
|
14 |
|
278 |
}
|
279 |
}
|
280 |
|
281 |
+
function ct_db_refresh(){
|
282 |
+
global $wpdb;
|
|
|
|
|
|
|
|
|
|
|
283 |
|
284 |
+
$wpdb->query("CREATE TABLE IF NOT EXISTS `".$wpdb->base_prefix."cleantalk_sfw` (
|
|
|
|
|
|
|
|
|
285 |
`network` int(11) unsigned NOT NULL,
|
286 |
`mask` int(11) unsigned NOT NULL,
|
287 |
INDEX ( `network` , `mask` )
|
294 |
`timestamp` INT NOT NULL ,
|
295 |
PRIMARY KEY (`ip`))
|
296 |
ENGINE = MYISAM;");
|
297 |
+
|
298 |
+
}
|
299 |
+
|
300 |
+
/**
|
301 |
+
* On activation, set a time, frequency and name of an action hook to be scheduled.
|
302 |
+
*/
|
303 |
+
if (!function_exists ( 'ct_activation')) {
|
304 |
+
function ct_activation() {
|
305 |
+
|
306 |
+
global $wpdb;
|
307 |
+
|
308 |
+
ct_db_refresh();
|
309 |
+
|
310 |
+
wp_schedule_event(time(), 'hourly', 'ct_hourly_event_hook' );
|
311 |
+
//wp_schedule_event(time(), 'hourly', 'ct_send_sfw_log' );
|
312 |
+
wp_schedule_event(time(), 'daily', 'cleantalk_update_sfw' );
|
313 |
+
|
314 |
|
315 |
cleantalk_update_sfw();
|
316 |
add_option('ct_plugin_do_activation_redirect', true);
|
inc/cleantalk-common.php
CHANGED
@@ -462,6 +462,7 @@ function ct_get_options($force=false) {
|
|
462 |
*/
|
463 |
function ct_def_options() {
|
464 |
return array(
|
|
|
465 |
'server' => 'http://moderate.cleantalk.org',
|
466 |
'apikey' => __('', 'cleantalk'),
|
467 |
'autoPubRevelantMess' => '0',
|
462 |
*/
|
463 |
function ct_def_options() {
|
464 |
return array(
|
465 |
+
'spam_firewall' => '0',
|
466 |
'server' => 'http://moderate.cleantalk.org',
|
467 |
'apikey' => __('', 'cleantalk'),
|
468 |
'autoPubRevelantMess' => '0',
|
inc/cleantalk-public.php
CHANGED
@@ -5,11 +5,19 @@
|
|
5 |
* @return mixed[] Array of options
|
6 |
*/
|
7 |
function ct_init() {
|
8 |
-
global $ct_wplp_result_label, $ct_jp_comments, $ct_post_data_label, $ct_post_data_authnet_label, $ct_formtime_label, $ct_direct_post, $ct_options, $ct_data, $ct_check_post_result, $test_external_forms, $cleantalk_executed;
|
9 |
|
10 |
$ct_options = ct_get_options();
|
11 |
$ct_data=ct_get_data();
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
//fix for EPM registration form
|
14 |
if(isset($_POST) && isset($_POST['reg_email']) && shortcode_exists( 'epm_registration_form' ))
|
15 |
{
|
5 |
* @return mixed[] Array of options
|
6 |
*/
|
7 |
function ct_init() {
|
8 |
+
global $ct_wplp_result_label, $ct_jp_comments, $ct_post_data_label, $ct_post_data_authnet_label, $ct_formtime_label, $ct_direct_post, $ct_options, $ct_data, $ct_check_post_result, $test_external_forms, $cleantalk_executed, $wpdb, $ct_agent_version;
|
9 |
|
10 |
$ct_options = ct_get_options();
|
11 |
$ct_data=ct_get_data();
|
12 |
|
13 |
+
if(!isset($ct_data['db_refreshed'])){
|
14 |
+
|
15 |
+
ct_db_refresh();
|
16 |
+
|
17 |
+
$ct_data['db_refreshed'] = 1;
|
18 |
+
update_option('cleantalk_data', $ct_data);
|
19 |
+
}
|
20 |
+
|
21 |
//fix for EPM registration form
|
22 |
if(isset($_POST) && isset($_POST['reg_email']) && shortcode_exists( 'epm_registration_form' ))
|
23 |
{
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: znaeff, shagimuratov, serge00
|
|
3 |
Tags: spam, anti-spam, antispam, anti spam, bbpress, buddypress, captcha, capcha, captha, catcha, cf7 spam, comments, contact form spam, signup, spammers, spammy, woocommerce, wordpress spam, subscription, gravity spam, jetpack, bots, contact form 7, contact form, registrations, ninja, Fast Secure Contact, Gravity forms, formidable, mailchimp, s2member, protection, protect, email, akismet, plugin, contact, recaptcha, google captcha, google recaptcha, math, security, login, blacklist, prevent spam comments, wordpress, User Frontend, bulk delete, bulk remove, widget, review, firewall, cleantalk, mailpoet, profile builder, comment spam, registration spam, spam comments, comment moderation, spam bots, block spam, signup spam, spam blocker, spam filter, user registration spam,pingback,trackback, anti-spam plugin, varnish, amp, spam free, userpro,honeypot,spamshield
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.6.1
|
6 |
-
Stable tag: 5.49
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -481,6 +481,8 @@ WordPress 3.0 at least. PHP 5 with CURL or file_get_contents() function and enab
|
|
481 |
1. The Dashboard with a map of most spam active countries per your account.
|
482 |
|
483 |
== Changelog ==
|
|
|
|
|
484 |
= 5.49 October 3 2016 =
|
485 |
* SpamFireWall feature: Class upgraded.
|
486 |
* New feature: Delete links from approved comments.
|
@@ -1157,6 +1159,8 @@ WordPress 3.0 at least. PHP 5 with CURL or file_get_contents() function and enab
|
|
1157 |
|
1158 |
== Upgrade Notice ==
|
1159 |
== Changelog ==
|
|
|
|
|
1160 |
= 5.49 October 3 2016 =
|
1161 |
* SpamFireWall feature: Class upgraded.
|
1162 |
* New feature: Delete links from approved comments.
|
3 |
Tags: spam, anti-spam, antispam, anti spam, bbpress, buddypress, captcha, capcha, captha, catcha, cf7 spam, comments, contact form spam, signup, spammers, spammy, woocommerce, wordpress spam, subscription, gravity spam, jetpack, bots, contact form 7, contact form, registrations, ninja, Fast Secure Contact, Gravity forms, formidable, mailchimp, s2member, protection, protect, email, akismet, plugin, contact, recaptcha, google captcha, google recaptcha, math, security, login, blacklist, prevent spam comments, wordpress, User Frontend, bulk delete, bulk remove, widget, review, firewall, cleantalk, mailpoet, profile builder, comment spam, registration spam, spam comments, comment moderation, spam bots, block spam, signup spam, spam blocker, spam filter, user registration spam,pingback,trackback, anti-spam plugin, varnish, amp, spam free, userpro,honeypot,spamshield
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.6.1
|
6 |
+
Stable tag: 5.49.1
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
481 |
1. The Dashboard with a map of most spam active countries per your account.
|
482 |
|
483 |
== Changelog ==
|
484 |
+
= 5.49.1 October 5 2016 =
|
485 |
+
* Fixed database error.
|
486 |
= 5.49 October 3 2016 =
|
487 |
* SpamFireWall feature: Class upgraded.
|
488 |
* New feature: Delete links from approved comments.
|
1159 |
|
1160 |
== Upgrade Notice ==
|
1161 |
== Changelog ==
|
1162 |
+
= 5.49.1 October 5 2016 =
|
1163 |
+
* Fixed database error.
|
1164 |
= 5.49 October 3 2016 =
|
1165 |
* SpamFireWall feature: Class upgraded.
|
1166 |
* New feature: Delete links from approved comments.
|