Version Description
May 3 2018 = * Fix: "Get key automatically" button display logic. * Fix: PHP notices.
Download this release
Release Info
Developer | shagimuratov |
Plugin | Spam protection, AntiSpam, FireWall by CleanTalk |
Version | 5.95.1 |
Comparing to | |
See all releases |
Code changes from version 5.95 to 5.95.1
- cleantalk.php +3 -3
- inc/cleantalk-admin.php +10 -2
- inc/cleantalk-common.php +1 -0
- readme.txt +12 -4
cleantalk.php
CHANGED
@@ -3,15 +3,15 @@
|
|
3 |
Plugin Name: Anti-Spam 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.
|
6 |
-
Version: 5.95
|
7 |
Author: СleanTalk <welcome@cleantalk.org>
|
8 |
Author URI: http://cleantalk.org
|
9 |
*/
|
10 |
|
11 |
$cleantalk_executed = false;
|
12 |
|
13 |
-
define('APBCT_VERSION', '5.95');
|
14 |
-
define('APBCT_AGENT', 'wordpress-
|
15 |
|
16 |
define('CLEANTALK_REMOTE_CALL_SLEEP', 10); // Minimum time between remote call
|
17 |
define('APBCT_CASERT_PATH', file_exists(ABSPATH . WPINC . '/certificates/ca-bundle.crt')
|
3 |
Plugin Name: Anti-Spam 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.
|
6 |
+
Version: 5.95.1
|
7 |
Author: СleanTalk <welcome@cleantalk.org>
|
8 |
Author URI: http://cleantalk.org
|
9 |
*/
|
10 |
|
11 |
$cleantalk_executed = false;
|
12 |
|
13 |
+
define('APBCT_VERSION', '5.95.1');
|
14 |
+
define('APBCT_AGENT', 'wordpress-5951');
|
15 |
|
16 |
define('CLEANTALK_REMOTE_CALL_SLEEP', 10); // Minimum time between remote call
|
17 |
define('APBCT_CASERT_PATH', file_exists(ABSPATH . WPINC . '/certificates/ca-bundle.crt')
|
inc/cleantalk-admin.php
CHANGED
@@ -497,7 +497,8 @@ function apbct_admin_init(){
|
|
497 |
add_settings_field('cleantalk_apikey', '', 'ct_input_apikey', 'cleantalk', 'cleantalk_settings_main');
|
498 |
}
|
499 |
|
500 |
-
|
|
|
501 |
|
502 |
//Forms for protection
|
503 |
add_settings_field('cleantalk_title_fiels_for_protect', "", 'ct_input_what_fields_should_be_protected', 'cleantalk', 'cleantalk_settings_anti_spam');//Title settings
|
@@ -1062,7 +1063,7 @@ function ct_input_apikey() {
|
|
1062 |
if (function_exists('curl_init') && function_exists('json_decode')){
|
1063 |
echo '<br /><br />';
|
1064 |
echo "<a target='__blank' style='' href='https://cleantalk.org/register?platform=wordpress&email=".urlencode(ct_get_admin_email())."&website=".urlencode(parse_url(get_option('siteurl'),PHP_URL_HOST))."'><input type='button' class='cleantalk_auto_link' value='".__('Get access key manually', 'cleantalk')."' /></a>";
|
1065 |
-
if($ct_data['ip_license']
|
1066 |
echo " " . __("or") . " ";
|
1067 |
echo '<input name="get_apikey_auto" type="submit" class="cleantalk_manual_link" value="' . __('Get access key automatically', 'cleantalk') . '" />';
|
1068 |
}
|
@@ -1087,6 +1088,13 @@ function ct_input_apikey() {
|
|
1087 |
echo "<script type=\"text/javascript\">var cleantalk_good_key=true; var cleantalk_support_links = \"$cleantalk_support_links\";</script>";
|
1088 |
}
|
1089 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1090 |
$test_failed = (!empty($ct_data['testing_failed']) ? true : false);
|
1091 |
$moderate_ip = (!empty($ct_data['moderate_ip']) ? true : false);
|
1092 |
|
497 |
add_settings_field('cleantalk_apikey', '', 'ct_input_apikey', 'cleantalk', 'cleantalk_settings_main');
|
498 |
}
|
499 |
|
500 |
+
if(ct_valid_key())
|
501 |
+
add_settings_field('cleantalk_connection_reports', '', 'ct_report_builder', 'cleantalk', 'cleantalk_settings_main');
|
502 |
|
503 |
//Forms for protection
|
504 |
add_settings_field('cleantalk_title_fiels_for_protect', "", 'ct_input_what_fields_should_be_protected', 'cleantalk', 'cleantalk_settings_anti_spam');//Title settings
|
1063 |
if (function_exists('curl_init') && function_exists('json_decode')){
|
1064 |
echo '<br /><br />';
|
1065 |
echo "<a target='__blank' style='' href='https://cleantalk.org/register?platform=wordpress&email=".urlencode(ct_get_admin_email())."&website=".urlencode(parse_url(get_option('siteurl'),PHP_URL_HOST))."'><input type='button' class='cleantalk_auto_link' value='".__('Get access key manually', 'cleantalk')."' /></a>";
|
1066 |
+
if($ct_data['ip_license'] == 0){
|
1067 |
echo " " . __("or") . " ";
|
1068 |
echo '<input name="get_apikey_auto" type="submit" class="cleantalk_manual_link" value="' . __('Get access key automatically', 'cleantalk') . '" />';
|
1069 |
}
|
1088 |
echo "<script type=\"text/javascript\">var cleantalk_good_key=true; var cleantalk_support_links = \"$cleantalk_support_links\";</script>";
|
1089 |
}
|
1090 |
|
1091 |
+
if($ct_data['ip_license']){
|
1092 |
+
$cleantalk_support_links = "<br /><div>";
|
1093 |
+
$cleantalk_support_links .= "<a href='#' id='cleantalk_access_key_link' class='ct_support_link'>" . __("Show the access key", 'cleantalk') . "</a>";
|
1094 |
+
$cleantalk_support_links .= "</div>";
|
1095 |
+
echo "<script type=\"text/javascript\">var cleantalk_good_key=true; var cleantalk_support_links = \"$cleantalk_support_links\";</script>";
|
1096 |
+
}
|
1097 |
+
|
1098 |
$test_failed = (!empty($ct_data['testing_failed']) ? true : false);
|
1099 |
$moderate_ip = (!empty($ct_data['moderate_ip']) ? true : false);
|
1100 |
|
inc/cleantalk-common.php
CHANGED
@@ -482,6 +482,7 @@ function ct_def_data() {
|
|
482 |
'js_keys' => array(), // Keys to do JavaScript antispam test
|
483 |
'js_keys_store_days' => 14, // JavaScript keys store days - 8 days now
|
484 |
'js_key_lifetime' => 86400, // JavaScript key life time in seconds - 1 day now
|
|
|
485 |
'sfw_counter' => array(
|
486 |
'all' => 0,
|
487 |
'blocked' => 0
|
482 |
'js_keys' => array(), // Keys to do JavaScript antispam test
|
483 |
'js_keys_store_days' => 14, // JavaScript keys store days - 8 days now
|
484 |
'js_key_lifetime' => 86400, // JavaScript key life time in seconds - 1 day now
|
485 |
+
'ip_license' => 0,
|
486 |
'sfw_counter' => array(
|
487 |
'all' => 0,
|
488 |
'blocked' => 0
|
readme.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
-
=== Spam protection, AntiSpam, FireWall
|
2 |
Contributors: safronik
|
3 |
Tags: spam, antispam, protection, comments, firewall
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 4.9
|
6 |
-
Stable tag: 5.95
|
7 |
License: GPLv2
|
8 |
|
9 |
-
Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce spam.
|
10 |
|
11 |
== Description ==
|
12 |
|
@@ -516,6 +516,10 @@ Yes, it is. Please read this article,
|
|
516 |
10. Website's options.
|
517 |
|
518 |
== Changelog ==
|
|
|
|
|
|
|
|
|
519 |
= 5.95 May 2 2018 =
|
520 |
* Spam filtration improved.
|
521 |
* Fix: Public widget layout.
|
@@ -1583,6 +1587,10 @@ Yes, it is. Please read this article,
|
|
1583 |
* First version
|
1584 |
|
1585 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
1586 |
= 5.95 May 2 2018 =
|
1587 |
* Spam filtration improved.
|
1588 |
* Fix: Public widget layout.
|
1 |
+
=== Spam protection, AntiSpam, FireWall by CleanTalk ===
|
2 |
Contributors: safronik
|
3 |
Tags: spam, antispam, protection, comments, firewall
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 4.9
|
6 |
+
Stable tag: 5.95.1
|
7 |
License: GPLv2
|
8 |
|
9 |
+
Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce anti-spam.
|
10 |
|
11 |
== Description ==
|
12 |
|
516 |
10. Website's options.
|
517 |
|
518 |
== Changelog ==
|
519 |
+
= 5.95.1 May 3 2018 =
|
520 |
+
* Fix: "Get key automatically" button display logic.
|
521 |
+
* Fix: PHP notices.
|
522 |
+
|
523 |
= 5.95 May 2 2018 =
|
524 |
* Spam filtration improved.
|
525 |
* Fix: Public widget layout.
|
1587 |
* First version
|
1588 |
|
1589 |
== Upgrade Notice ==
|
1590 |
+
= 5.95.1 May 3 2018 =
|
1591 |
+
* Fix: "Get key automatically" button display logic.
|
1592 |
+
* Fix: PHP notices.
|
1593 |
+
|
1594 |
= 5.95 May 2 2018 =
|
1595 |
* Spam filtration improved.
|
1596 |
* Fix: Public widget layout.
|