Version Description
2014-08-27 = * Fixed submit_time() logic for failed submits (comments/registrations). Now form fill time resets after every failed submit.
Download this release
Release Info
Developer | shagimuratov |
Plugin | Spam protection, AntiSpam, FireWall by CleanTalk |
Version | 3.2 |
Comparing to | |
See all releases |
Code changes from version 3.1 to 3.2
- cleantalk.php +22 -7
- readme.txt +8 -2
cleantalk.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
Plugin Name: Anti-spam by CleanTalk
|
4 |
Plugin URI: http://cleantalk.org
|
5 |
Description: Cloud antispam for comments, registrations and contacts. The plugin doesn't use CAPTCHA, Q&A, math, counting animals or quiz to stop spam bots.
|
6 |
-
Version: 3.
|
7 |
Author: СleanTalk <welcome@cleantalk.ru>
|
8 |
Author URI: http://cleantalk.org
|
9 |
*/
|
10 |
|
11 |
define('CLEANTALK_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
12 |
|
13 |
-
$ct_agent_version = 'wordpress-
|
14 |
$ct_plugin_name = 'Anti-spam by CleanTalk';
|
15 |
$ct_checkjs_frm = 'ct_checkjs_frm';
|
16 |
$ct_checkjs_register_form = 'ct_checkjs_register_form';
|
@@ -73,7 +73,7 @@ $ct_post_data_label = 's2member_pro_paypal_registration';
|
|
73 |
$ct_post_data_authnet_label = 's2member_pro_authnet_registration';
|
74 |
|
75 |
// Form time load label
|
76 |
-
$ct_formtime_label = '
|
77 |
|
78 |
// Plugin's options
|
79 |
$ct_options = null;
|
@@ -364,7 +364,6 @@ function ct_send_feedback($feedback_request = null) {
|
|
364 |
*/
|
365 |
function ct_init_session() {
|
366 |
if(session_id() === '') {
|
367 |
-
session_name('cleantalksession');
|
368 |
@session_start();
|
369 |
}
|
370 |
|
@@ -410,7 +409,7 @@ function ct_cookies_test ($test = false) {
|
|
410 |
* @return array array('ct'=> Cleantalk, 'ct_result' => CleantalkResponse)
|
411 |
*/
|
412 |
function ct_base_call($params = array()) {
|
413 |
-
global $wpdb, $ct_agent_version;
|
414 |
|
415 |
require_once('cleantalk.class.php');
|
416 |
|
@@ -458,6 +457,11 @@ function ct_base_call($params = array()) {
|
|
458 |
)
|
459 |
);
|
460 |
}
|
|
|
|
|
|
|
|
|
|
|
461 |
|
462 |
return array('ct' => $ct, 'ct_result' => $ct_result);
|
463 |
}
|
@@ -1144,7 +1148,7 @@ function ct_register_post($sanitized_user_login = null, $user_email = null, $err
|
|
1144 |
* @return array with errors
|
1145 |
*/
|
1146 |
function ct_registration_errors($errors, $sanitized_user_login = null, $user_email = null) {
|
1147 |
-
global $ct_agent_version, $ct_checkjs_register_form, $ct_session_request_id_label, $ct_session_register_ok_label, $bp, $ct_signup_done;
|
1148 |
|
1149 |
//
|
1150 |
// The function already executed
|
@@ -1230,6 +1234,11 @@ function ct_registration_errors($errors, $sanitized_user_login = null, $user_ema
|
|
1230 |
return $errors;
|
1231 |
}
|
1232 |
|
|
|
|
|
|
|
|
|
|
|
1233 |
if ($ct_result->inactive != 0) {
|
1234 |
$timelabel_reg = intval( get_option('cleantalk_timelabel_reg') );
|
1235 |
if(time() - 900 > $timelabel_reg){
|
@@ -1599,7 +1608,7 @@ function ct_check_wplp(){
|
|
1599 |
* @return array with errors
|
1600 |
*/
|
1601 |
function ct_s2member_registration_test() {
|
1602 |
-
global $ct_agent_version, $ct_post_data_label, $ct_post_data_authnet_label;
|
1603 |
|
1604 |
$options = ct_get_options();
|
1605 |
if ($options['registrations_test'] == 0) {
|
@@ -1666,6 +1675,12 @@ function ct_s2member_registration_test() {
|
|
1666 |
if ($ct_result->errno != 0) {
|
1667 |
return false;
|
1668 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1669 |
if ($ct_result->allow == 0) {
|
1670 |
ct_die_extended($ct_result->comment);
|
1671 |
}
|
3 |
Plugin Name: Anti-spam by CleanTalk
|
4 |
Plugin URI: http://cleantalk.org
|
5 |
Description: Cloud antispam for comments, registrations and contacts. The plugin doesn't use CAPTCHA, Q&A, math, counting animals or quiz to stop spam bots.
|
6 |
+
Version: 3.2
|
7 |
Author: СleanTalk <welcome@cleantalk.ru>
|
8 |
Author URI: http://cleantalk.org
|
9 |
*/
|
10 |
|
11 |
define('CLEANTALK_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
12 |
|
13 |
+
$ct_agent_version = 'wordpress-32';
|
14 |
$ct_plugin_name = 'Anti-spam by CleanTalk';
|
15 |
$ct_checkjs_frm = 'ct_checkjs_frm';
|
16 |
$ct_checkjs_register_form = 'ct_checkjs_register_form';
|
73 |
$ct_post_data_authnet_label = 's2member_pro_authnet_registration';
|
74 |
|
75 |
// Form time load label
|
76 |
+
$ct_formtime_label = 'ct_formtime';
|
77 |
|
78 |
// Plugin's options
|
79 |
$ct_options = null;
|
364 |
*/
|
365 |
function ct_init_session() {
|
366 |
if(session_id() === '') {
|
|
|
367 |
@session_start();
|
368 |
}
|
369 |
|
409 |
* @return array array('ct'=> Cleantalk, 'ct_result' => CleantalkResponse)
|
410 |
*/
|
411 |
function ct_base_call($params = array()) {
|
412 |
+
global $wpdb, $ct_agent_version, $ct_formtime_label;
|
413 |
|
414 |
require_once('cleantalk.class.php');
|
415 |
|
457 |
)
|
458 |
);
|
459 |
}
|
460 |
+
|
461 |
+
// Restart submit form counter for failed requests
|
462 |
+
if ($ct_result->allow == 0) {
|
463 |
+
$_SESSION[$ct_formtime_label] = time();
|
464 |
+
}
|
465 |
|
466 |
return array('ct' => $ct, 'ct_result' => $ct_result);
|
467 |
}
|
1148 |
* @return array with errors
|
1149 |
*/
|
1150 |
function ct_registration_errors($errors, $sanitized_user_login = null, $user_email = null) {
|
1151 |
+
global $ct_agent_version, $ct_checkjs_register_form, $ct_session_request_id_label, $ct_session_register_ok_label, $bp, $ct_signup_done, $ct_formtime_label;
|
1152 |
|
1153 |
//
|
1154 |
// The function already executed
|
1234 |
return $errors;
|
1235 |
}
|
1236 |
|
1237 |
+
// Restart submit form counter for failed requests
|
1238 |
+
if ($ct_result->allow == 0) {
|
1239 |
+
$_SESSION[$ct_formtime_label] = time();
|
1240 |
+
}
|
1241 |
+
|
1242 |
if ($ct_result->inactive != 0) {
|
1243 |
$timelabel_reg = intval( get_option('cleantalk_timelabel_reg') );
|
1244 |
if(time() - 900 > $timelabel_reg){
|
1608 |
* @return array with errors
|
1609 |
*/
|
1610 |
function ct_s2member_registration_test() {
|
1611 |
+
global $ct_agent_version, $ct_post_data_label, $ct_post_data_authnet_label, $ct_formtime_label;
|
1612 |
|
1613 |
$options = ct_get_options();
|
1614 |
if ($options['registrations_test'] == 0) {
|
1675 |
if ($ct_result->errno != 0) {
|
1676 |
return false;
|
1677 |
}
|
1678 |
+
|
1679 |
+
// Restart submit form counter for failed requests
|
1680 |
+
if ($ct_result->allow == 0) {
|
1681 |
+
$_SESSION[$ct_formtime_label] = time();
|
1682 |
+
}
|
1683 |
+
|
1684 |
if ($ct_result->allow == 0) {
|
1685 |
ct_die_extended($ct_result->comment);
|
1686 |
}
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Anti-spam by CleanTalk (No CAPTCHA) ===
|
2 |
Contributors: znaeff, shagimuratov
|
3 |
-
Tags: antispam, anti-spam, anti spam, spam, spammers, captcha, comments, registration, contact form, blacklist, math, signup, formidable, bot, spam bots, spammy, s2member, wordpress, support, BuddyPress, bbpress, landing pages, fast secure contact form, WooCommerce, jetpack, cf7,
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.0
|
6 |
-
Stable tag: 3.
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -149,6 +149,9 @@ WordPress 3.0 at least. PHP 4, 5 with CURL or file_get_contents() function and e
|
|
149 |
1. Anti spam stopped spam bot at the registration form.
|
150 |
|
151 |
== Changelog ==
|
|
|
|
|
|
|
152 |
= 3.1 2014-08-19 =
|
153 |
* Added anti spam test over senders Cookies.
|
154 |
* Improved form fill anti spam test.
|
@@ -380,6 +383,9 @@ WordPress 3.0 at least. PHP 4, 5 with CURL or file_get_contents() function and e
|
|
380 |
* First version
|
381 |
|
382 |
== Upgrade Notice ==
|
|
|
|
|
|
|
383 |
= 3.1 2014-08-19 =
|
384 |
Major changes for comments antispam logic. Improved plugin speed.
|
385 |
|
1 |
=== Anti-spam by CleanTalk (No CAPTCHA) ===
|
2 |
Contributors: znaeff, shagimuratov
|
3 |
+
Tags: antispam, anti-spam, anti spam, spam, spammers, captcha, comments, registration, contact form, blacklist, math, signup, formidable, bot, spam bots, spammy, s2member, wordpress, support, BuddyPress, bbpress, landing pages, fast secure contact form, WooCommerce, jetpack, cf7, forms
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.0
|
6 |
+
Stable tag: 3.2
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
149 |
1. Anti spam stopped spam bot at the registration form.
|
150 |
|
151 |
== Changelog ==
|
152 |
+
= 3.2 2014-08-27 =
|
153 |
+
* Fixed submit_time() logic for failed submits (comments/registrations). Now form fill time resets after every failed submit.
|
154 |
+
|
155 |
= 3.1 2014-08-19 =
|
156 |
* Added anti spam test over senders Cookies.
|
157 |
* Improved form fill anti spam test.
|
383 |
* First version
|
384 |
|
385 |
== Upgrade Notice ==
|
386 |
+
= 3.2 2014-08-27 =
|
387 |
+
Minor changes in spam filtration logic.
|
388 |
+
|
389 |
= 3.1 2014-08-19 =
|
390 |
Major changes for comments antispam logic. Improved plugin speed.
|
391 |
|