Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.58.1

Version Description

February 16 2017 = * Minor fixes.

Download this release

Release Info

Developer Safronik
Plugin Icon 128x128 Spam protection, AntiSpam, FireWall by CleanTalk
Version 5.58.1
Comparing to
See all releases

Code changes from version 5.58 to 5.58.1

Files changed (2) hide show
  1. cleantalk.php +37 -3
  2. readme.txt +7 -1
cleantalk.php CHANGED
@@ -3,17 +3,19 @@
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.58
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
- $cleantalk_plugin_version='5.58';
11
- $ct_agent_version = 'wordpress-558';
12
  $cleantalk_executed=false;
13
  $ct_sfw_updated = false;
14
 
15
  $ct_redirects_label = 'ct_redirects';
16
 
 
 
17
  $cleantalk_use_buffer = (defined('CLEANTALK_AJAX_USE_BUFFER') ? CLEANTALK_AJAX_USE_BUFFER : true);
18
  $cleantalk_use_footer_header = (defined('CLEANTALK_AJAX_USE_FOOTER_HEADER') ? CLEANTALK_AJAX_USE_FOOTER_HEADER : true);
19
 
@@ -132,6 +134,38 @@ if(!defined('CLEANTALK_PLUGIN_DIR')){
132
  //cron end
133
  }
134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  if(isset($ct_options['check_external']) && @intval($ct_options['check_external']) == 1)
136
  $test_external_forms=true;
137
  else
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.58.1
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
+ $cleantalk_plugin_version='5.58.1';
11
+ $ct_agent_version = 'wordpress-5581';
12
  $cleantalk_executed=false;
13
  $ct_sfw_updated = false;
14
 
15
  $ct_redirects_label = 'ct_redirects';
16
 
17
+ define('CLEANTALK_REMOTE_CALL_SLEEP', 10); //Minimum time between remote call
18
+
19
  $cleantalk_use_buffer = (defined('CLEANTALK_AJAX_USE_BUFFER') ? CLEANTALK_AJAX_USE_BUFFER : true);
20
  $cleantalk_use_footer_header = (defined('CLEANTALK_AJAX_USE_FOOTER_HEADER') ? CLEANTALK_AJAX_USE_FOOTER_HEADER : true);
21
 
134
  //cron end
135
  }
136
 
137
+ //* Remote calls
138
+ if(isset($_GET['spbc_remote_call_token'], $_GET['spbc_remote_call_action'], $_GET['plugin_name']) && $_GET['plugin_name'] == 'antispam'){
139
+
140
+ if(isset($ct_data['last_remote_call']) && time() - $ct_data['last_remote_call'] < CLEANTALK_REMOTE_CALL_SLEEP){
141
+ echo "FAIL TOO_MANY_ATTEMPTS";
142
+ die();
143
+ }else{
144
+ $ct_data['last_remote_call'] = time();
145
+ update_option('cleantalk_data', $ct_data);
146
+ }
147
+
148
+ $spbc_remote_call_token = md5($ct_options['apikey']);
149
+
150
+ if($_GET['spbc_remote_call_token'] == $spbc_remote_call_token){
151
+
152
+ if($_GET['spbc_remote_call_action'] == 'close_renew_banner'){
153
+ $ct_data['show_ct_notice_trial'] = 0;
154
+ $ct_data['show_ct_notice_renew'] = 0;
155
+ $ct_data['next_account_status_check'] = time() + $account_notice_check_timeout*3600;
156
+ update_option('cleantalk_data', $ct_data);
157
+
158
+ echo "OK";
159
+ die();
160
+ }
161
+ }else{
162
+ echo "FAIL WRONG_TOKEN";
163
+ die();
164
+ }
165
+
166
+ }
167
+ //*/
168
+
169
  if(isset($ct_options['check_external']) && @intval($ct_options['check_external']) == 1)
170
  $test_external_forms=true;
171
  else
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: znaeff, shagimuratov, serge00, sartemd174
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, plugin, contact, recaptcha, google captcha, google recaptcha, 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,puzzle,quiz,survey,poll,security, amo forms, caldera forms, visual form builder, contact form clean and simple
4
  Requires at least: 3.0
5
  Tested up to: 4.7.2
6
- Stable tag: 5.58
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -486,6 +486,9 @@ WordPress 3.0 at least. PHP 5 with CURL or file_get_contents() function and enab
486
  1. The Dashboard with a map of most spam active countries per your account.
487
 
488
  == Changelog ==
 
 
 
489
  = 5.58 February 15 2017 =
490
  * Work without access key
491
  * Bitrix24 contact integration
@@ -1243,6 +1246,9 @@ WordPress 3.0 at least. PHP 5 with CURL or file_get_contents() function and enab
1243
  * First version
1244
 
1245
  == Upgrade Notice ==
 
 
 
1246
  = 5.58 February 15 2017 =
1247
  * Work without access key
1248
  * Bitrix24 contact integration
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, plugin, contact, recaptcha, google captcha, google recaptcha, 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,puzzle,quiz,survey,poll,security, amo forms, caldera forms, visual form builder, contact form clean and simple
4
  Requires at least: 3.0
5
  Tested up to: 4.7.2
6
+ Stable tag: 5.58.1
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
486
  1. The Dashboard with a map of most spam active countries per your account.
487
 
488
  == Changelog ==
489
+ = 5.58.1 February 16 2017 =
490
+ * Minor fixes.
491
+
492
  = 5.58 February 15 2017 =
493
  * Work without access key
494
  * Bitrix24 contact integration
1246
  * First version
1247
 
1248
  == Upgrade Notice ==
1249
+ = 5.58.1 February 16 2017 =
1250
+ * Minor fixes.
1251
+
1252
  = 5.58 February 15 2017 =
1253
  * Work without access key
1254
  * Bitrix24 contact integration