Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.66

Version Description

May 23 2017 = * Spam protection improved. * Major fixes for users and comments spam check. * Added feedback from Wordpress comments list. * Fix for "internal forms check" option. * Fixed issue with caching SpamFireWall die page. * Other small fixes.

Download this release

Release Info

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

Code changes from version 5.67 to 5.66

assets/css/cleantalk-admin.css CHANGED
@@ -9,10 +9,4 @@
9
  .ct_translate_links:hover{color: rgba(210, 210, 20, 1) !important;}
10
  .ct_support_links:hover {color: rgba(250, 20, 20, 1) !important;}
11
  .ct_faq_links :hover {color: rgba(20, 250, 20, 1) !important;}
12
- .ct_setting_links:hover {color: rgba(20, 20, 250, 1) !important;}
13
-
14
- .ct_link_new_tab img{
15
- float: none !important;
16
- margin: 0 2px;
17
- border: 0;
18
- }
9
  .ct_translate_links:hover{color: rgba(210, 210, 20, 1) !important;}
10
  .ct_support_links:hover {color: rgba(250, 20, 20, 1) !important;}
11
  .ct_faq_links :hover {color: rgba(20, 250, 20, 1) !important;}
12
+ .ct_setting_links:hover {color: rgba(20, 20, 250, 1) !important;}
 
 
 
 
 
 
assets/css/cleantalk-public.css DELETED
@@ -1,68 +0,0 @@
1
- .ct_hidden{
2
- display: none;
3
- }
4
-
5
- .ct_comment_info{
6
- position: relative;
7
- top: -5px;
8
- padding: 7px 1% 7px 1%;
9
- margin-bottom: 20px;
10
- min-height: 20px !important;
11
- border: 1px solid gray !important;
12
- border-radius: 8px;
13
- font-size: 15px;
14
- }
15
- .ct_comment_info_title{
16
- position: absolute;
17
- top: -14px;
18
- margin: 0; padding: 0 5px;
19
- font-size: 15px;
20
- background: inherit;
21
- line-height: 16px;
22
- }
23
- p.ct_comment_logo_title{
24
- position: absolute;
25
- bottom: -15px; right: 10px;
26
- margin: 0; padding: 0 7px;
27
- font-size: 15px;
28
- background: inherit;
29
- line-height: 17px;
30
- }
31
- .ct_comment_logo_img{
32
- height: 17px;
33
- margin-right: 0px;
34
- vertical-align: text-top;
35
- }
36
-
37
- .ct_this_is{
38
- font-size: 14px;
39
- padding: 2px 5px;
40
- cursor: pointer;
41
- white-space: nowrap;
42
- color: black !important;
43
- background: rgba(230,230,230,1);
44
- border: 1px solid #777;
45
- border-radius: 4px;
46
- }
47
- .ct_this_is_spam{
48
-
49
- }
50
- p.ct_feedback_wrap{
51
- display: none;
52
- position: absolute;
53
- top: 4px; left: 1%;
54
- width: 98%;
55
- background: white;
56
- padding: 2px 6px;
57
- border: 1px solid gray;
58
- border-radius: 3px;
59
- }
60
- .ct_feedback_result{display: none; text-decoration: underline;}
61
- .ct_feedback_result_spam{color: red;}
62
- .ct_feedback_result_not_spam{color: green;}
63
-
64
- .ct_feedback_msg a{color: green !important; text-decoration: underline;}
65
-
66
- .ct_feedback_success{color: green;}
67
- .ct_feedback_error{color: red;}
68
- .ct_feedback_no_hash{color: blue;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/cleantalk-public.js DELETED
@@ -1,88 +0,0 @@
1
- jQuery(document).ready(function(){
2
-
3
- // Debug
4
- if(parseInt(ctPublic.ct_debug_ajax))
5
- jQuery(document).ajaxSuccess(function(e, xhr, settings, data) {
6
- console.log(e);
7
- console.log(xhr);
8
- console.log(settings);
9
- console.log(data);
10
- });
11
-
12
- // Set background-color similar to parents
13
- var ct_current_wrapper = jQuery('.ct_comment_info').parent(),
14
- ct_current_background_color;
15
- for(var i=0; i < 30; i++){
16
- if(ct_current_wrapper.css('background-color') == 'rgba(0, 0, 0, 0)' || i == 29)
17
- ct_current_wrapper = ct_current_wrapper.parent();
18
- else{
19
- jQuery('.ct_comment_info').css('background', ct_current_wrapper.css('background-color'));
20
- break;
21
- }
22
- }
23
-
24
- jQuery('.ct_this_is').on('click', function(){
25
-
26
- var ct_current_button = jQuery(this),
27
- ct_feedback_wrap = jQuery(this).siblings('.ct_feedback_wrap'),
28
- ct_feedback_msg = jQuery('.ct_feedback_msg'),
29
- ct_comment_status;
30
-
31
- if(ct_current_button.hasClass('ct_this_is_spam'))
32
- ct_comment_status = 'spam';
33
- else
34
- ct_comment_status = 'approve';
35
-
36
- var data = {
37
- 'action': 'ct_feedback_comment',
38
- 'security': ctPublic.ct_ajax_nonce,
39
- 'comment_id': ct_current_button.attr('commentid'),
40
- 'comment_status': ct_comment_status,
41
- 'change_status': 1
42
- };
43
-
44
- jQuery.ajax({
45
- type: "POST",
46
- url: ct_ajaxurl,
47
- data: data,
48
- success: function(msg){
49
- ct_current_button.hide();
50
- ct_current_button.siblings('span.ct_this_is').show();
51
-
52
- jQuery('.ct_feedback_result').hide();
53
- if(ct_comment_status == 'approve')
54
- jQuery('.ct_feedback_result_not_spam').show();
55
- else
56
- jQuery('.ct_feedback_result_spam').show();
57
-
58
- if(msg == 1){
59
- ct_feedback_msg.addClass('ct_feedback_success');
60
- ct_feedback_msg.html(ctPublic.ct_feedback_msg);
61
- }else if(msg == 0){
62
- // Error occurred
63
- ct_feedback_msg.addClass('ct_feedback_error');
64
- ct_feedback_msg.html(ctPublic.ct_feedback_error);
65
- }else if(msg == 'no_hash'){
66
- // No hash for this comment
67
- ct_feedback_msg.addClass('ct_feedback_no_hash');
68
- ct_feedback_msg.html(ctPublic.ct_feedback_no_hash);
69
- }
70
- // Hidding feedback message for every message type
71
- ct_feedback_wrap.show();
72
- ct_feedback_wrap.css('display', 'inline-block');
73
-
74
- var ct_timeout_id = ct_feedback_wrap.data('interval_id');
75
- clearInterval(ct_timeout_id);
76
- ct_timeout_id = setTimeout(function(){
77
- ct_feedback_wrap.fadeOut(1000);
78
- }, 5000);
79
- ct_feedback_wrap.data('interval_id', ct_timeout_id);
80
- },
81
- error: function(jqXHR, textStatus, errorThrown) {
82
-
83
- },
84
- timeout: 5000
85
- });
86
- });
87
-
88
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/cleantalk-users-editscreen.js DELETED
@@ -1,22 +0,0 @@
1
- function ct_is_email(str){
2
- return str.search(/.*@.*\..*/);
3
- }
4
- function ct_is_ip(str){
5
- return str.search(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/);
6
- }
7
-
8
- jQuery(document).ready(function(){
9
-
10
- /* Shows "Find spam users" Buttons */
11
- jQuery('#changeit').after(' <a href="users.php?page=ct_check_users" class="button" style="margin:1px 0 0 0; display: inline-block;">'+ctUsersScreen.spambutton_users_text+'</a>' +
12
- ' <a href="users.php?page=ct_check_users&ct_worked=1" class="button" style="margin:1px 0 0 0; display: inline-block;">'+ctUsersScreen.spambutton_users_text_show+'</a>');
13
-
14
- /* Shows link to blacklists near every email and IP address */
15
- if(parseInt(ctUsersScreen.ct_show_check_links))
16
- jQuery('.column-email a').each(function(){
17
- var ct_curr_str = jQuery(this).html();
18
- if(ct_is_email(ct_curr_str) != -1){
19
- jQuery(this).after('&nbsp;<a href="https://cleantalk.org/blacklists/'+ct_curr_str+'" target="_blank" title="https://cleantalk.org/blacklists/'+ct_curr_str+'" class="ct_link_new_tab"><img src="'+ctUsersScreen.ct_img_src_new_tab+'"></a>');
20
- }
21
- });
22
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cleantalk.php CHANGED
@@ -3,12 +3,12 @@
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. Formerly Anti-Spam by CleanTalk.
6
- Version: 5.67
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
- $cleantalk_plugin_version='5.67';
11
- $ct_agent_version = 'wordpress-567';
12
  $cleantalk_executed=false;
13
  $ct_sfw_updated = false;
14
 
@@ -142,6 +142,7 @@ if(!defined('CLEANTALK_PLUGIN_DIR')){
142
  if(isset($_COOKIE['ct_sfw_pass_key']) && $_COOKIE['ct_sfw_pass_key'] == md5($ct_cur_ip.$ct_options['apikey'])){
143
  $is_sfw_check=false;
144
  if(isset($_COOKIE['ct_sfw_passed'])){
 
145
  CleanTalkSFW::sfw_update_logs($ct_cur_ip, 'passed');
146
  @setcookie ('ct_sfw_passed', '0', 1, "/");
147
  }
@@ -341,8 +342,6 @@ if(!defined('CLEANTALK_PLUGIN_DIR')){
341
 
342
  require_once(CLEANTALK_PLUGIN_DIR . 'inc/cleantalk-public.php');
343
 
344
- add_action('wp_enqueue_scripts', 'ct_enqueue_scripts_public');
345
-
346
  // Init action.
347
  add_action('plugins_loaded', 'ct_init', 1);
348
 
@@ -363,9 +362,6 @@ if(!defined('CLEANTALK_PLUGIN_DIR')){
363
  // Login form - for notifications only
364
  add_filter('login_message', 'ct_login_message');
365
 
366
- // Comments output hook
367
- add_filter('wp_list_comments_args', 'ct_wp_list_comments_args');
368
-
369
  // Ait-Themes fix
370
  if(isset($_GET['ait-action']) && $_GET['ait-action']=='register'){
371
  $tmp=$_POST['redirect_to'];
@@ -373,7 +369,7 @@ if(!defined('CLEANTALK_PLUGIN_DIR')){
373
  ct_contact_form_validate();
374
  $_POST['redirect_to']=$tmp;
375
  }
376
- }
377
  }
378
 
379
  function ct_db_refresh(){
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. Formerly Anti-Spam by CleanTalk.
6
+ Version: 5.66
7
  Author: СleanTalk <welcome@cleantalk.org>
8
  Author URI: http://cleantalk.org
9
  */
10
+ $cleantalk_plugin_version='5.66';
11
+ $ct_agent_version = 'wordpress-566';
12
  $cleantalk_executed=false;
13
  $ct_sfw_updated = false;
14
 
142
  if(isset($_COOKIE['ct_sfw_pass_key']) && $_COOKIE['ct_sfw_pass_key'] == md5($ct_cur_ip.$ct_options['apikey'])){
143
  $is_sfw_check=false;
144
  if(isset($_COOKIE['ct_sfw_passed'])){
145
+ update_option('cleantalk_data', $ct_data);
146
  CleanTalkSFW::sfw_update_logs($ct_cur_ip, 'passed');
147
  @setcookie ('ct_sfw_passed', '0', 1, "/");
148
  }
342
 
343
  require_once(CLEANTALK_PLUGIN_DIR . 'inc/cleantalk-public.php');
344
 
 
 
345
  // Init action.
346
  add_action('plugins_loaded', 'ct_init', 1);
347
 
362
  // Login form - for notifications only
363
  add_filter('login_message', 'ct_login_message');
364
 
 
 
 
365
  // Ait-Themes fix
366
  if(isset($_GET['ait-action']) && $_GET['ait-action']=='register'){
367
  $tmp=$_POST['redirect_to'];
369
  ct_contact_form_validate();
370
  $_POST['redirect_to']=$tmp;
371
  }
372
+ }
373
  }
374
 
375
  function ct_db_refresh(){
i18n/cleantalk-ru_RU.mo CHANGED
Binary file
i18n/cleantalk.pot CHANGED
@@ -3,8 +3,8 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Anti-Spam by CleanTalk\n"
6
- "POT-Creation-Date: 2017-05-31 17:48+0500\n"
7
- "PO-Revision-Date: 2017-05-31 17:47+0500\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
@@ -20,29 +20,29 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: cleantalk.php:618
24
  msgid "WordPress spam"
25
  msgstr ""
26
 
27
- #: cleantalk.php:618
28
  msgid "blocked by"
29
  msgstr ""
30
 
31
- #: cleantalk.php:776
32
  #, php-format
33
  msgid "%d spam attacks have been blocked"
34
  msgstr ""
35
 
36
- #: cleantalk.php:789
37
  msgid "Complete setup"
38
  msgstr ""
39
 
40
- #: cleantalk.php:790 inc/cleantalk-admin.php:1704
41
  msgid ""
42
  "To see the anti-spam log and complete the setup, please get the Access key."
43
  msgstr ""
44
 
45
- #: cleantalk.php:795
46
  #, php-format
47
  msgid "%s spam attacks report"
48
  msgstr ""
@@ -51,687 +51,640 @@ msgstr ""
51
  msgid "CleanTalk Anti-Spam Statistics"
52
  msgstr ""
53
 
54
- #: inc/cleantalk-admin.php:22
55
  #, php-format
56
- msgid "%sRefresh%s"
57
  msgstr ""
58
 
59
- #: inc/cleantalk-admin.php:23
60
  #, php-format
61
- msgid "%sConfigure%s"
62
  msgstr ""
63
 
64
- #: inc/cleantalk-admin.php:73
65
  msgid "7 days anti-spam stats"
66
  msgstr ""
67
 
68
- #: inc/cleantalk-admin.php:82
69
  msgid "Top 5 spam IPs blocked"
70
  msgstr ""
71
 
72
- #: inc/cleantalk-admin.php:90
73
  msgid "IP"
74
  msgstr ""
75
 
76
- #: inc/cleantalk-admin.php:91
77
  msgid "Country"
78
  msgstr ""
79
 
80
- #: inc/cleantalk-admin.php:92
81
  msgid "Block Count"
82
  msgstr ""
83
 
84
- #: inc/cleantalk-admin.php:129
85
  msgid "Get Access key to activate Anti-Spam protection!"
86
  msgstr ""
87
 
88
- #: inc/cleantalk-admin.php:137
89
  msgid "Something went wrong! Server response is: \""
90
  msgstr ""
91
 
92
- #: inc/cleantalk-admin.php:141
93
  msgid "Please, visit your dashboard."
94
  msgstr ""
95
 
96
- #: inc/cleantalk-admin.php:166
97
  #, php-format
98
  msgid ""
99
  "has blocked %s spam. The statistics is automatically updated every 24 hours."
100
  msgstr ""
101
 
102
- #: inc/cleantalk-admin.php:237
103
  msgid "Failed from timeout. Going to check comments again."
104
  msgstr ""
105
 
106
- #: inc/cleantalk-admin.php:238
107
- msgid "Added"
108
- msgstr ""
109
-
110
- #: inc/cleantalk-admin.php:239
111
- msgid "comments"
112
  msgstr ""
113
 
114
- #: inc/cleantalk-admin.php:240
115
  msgid "Delete all spam comments?"
116
  msgstr ""
117
 
118
- #: inc/cleantalk-admin.php:241
119
  msgid "Delete checked comments?"
120
  msgstr ""
121
 
122
- #: inc/cleantalk-admin.php:245
123
  msgid "Find spam-comments"
124
  msgstr ""
125
 
126
- #: inc/cleantalk-admin.php:246
127
  msgid "Show spam-comments"
128
  msgstr ""
129
 
130
- #: inc/cleantalk-admin.php:247
131
- msgid "The sender has been whitelisted."
132
- msgstr ""
133
-
134
- #: inc/cleantalk-admin.php:248
135
- msgid "The sender has been blacklisted."
136
- msgstr ""
137
-
138
- #: inc/cleantalk-admin.php:249 inc/cleantalk-public.php:2845
139
- #, php-format
140
- msgid "Feedback has been sent to %sCleanTalk Dashboard%s."
141
- msgstr ""
142
-
143
- #: inc/cleantalk-admin.php:270
144
  msgid "Failed from timeout. Going to check users again."
145
  msgstr ""
146
 
147
- #: inc/cleantalk-admin.php:271
148
  msgid "Failed from timeout. Going to run a new attempt to delete spam users."
149
  msgstr ""
150
 
151
- #: inc/cleantalk-admin.php:272
152
  msgid "Inserted"
153
  msgstr ""
154
 
155
- #: inc/cleantalk-admin.php:273
156
  msgid "users."
157
  msgstr ""
158
 
159
- #: inc/cleantalk-admin.php:274
160
  msgid "Delete all spam users?"
161
  msgstr ""
162
 
163
- #: inc/cleantalk-admin.php:275
164
  msgid "Delete checked users?"
165
  msgstr ""
166
 
167
- #: inc/cleantalk-admin.php:277
168
  msgid ""
169
  "File doesn't exist. File will be generated while checking. Please, press "
170
  "\"Check for spam\"."
171
  msgstr ""
172
 
173
- #: inc/cleantalk-admin.php:280
174
  msgid "Find spam-users"
175
  msgstr ""
176
 
177
- #: inc/cleantalk-admin.php:281
178
  msgid "Show spam-users"
179
  msgstr ""
180
 
181
- #: inc/cleantalk-admin.php:295 inc/cleantalk-admin.php:297
182
  msgid "CleanTalk settings"
183
  msgstr ""
184
 
185
- #: inc/cleantalk-admin.php:416
186
  #, php-format
187
  msgid "Unable to connect to %s."
188
  msgstr ""
189
 
190
- #: inc/cleantalk-admin.php:517
191
  msgid "Protection is active"
192
  msgstr ""
193
 
194
- #: inc/cleantalk-admin.php:519
195
  msgid "Advanced settings"
196
  msgstr ""
197
 
198
- #: inc/cleantalk-admin.php:523
199
  msgid "Access key"
200
  msgstr ""
201
 
202
- #: inc/cleantalk-admin.php:532 inc/cleantalk-admin.php:900
203
  msgid "Registration forms"
204
  msgstr ""
205
 
206
- #: inc/cleantalk-admin.php:533
207
  msgid "Comments form"
208
  msgstr ""
209
 
210
- #: inc/cleantalk-admin.php:534 inc/cleantalk-admin.php:902
211
  msgid "Contact forms"
212
  msgstr ""
213
 
214
- #: inc/cleantalk-admin.php:535 inc/cleantalk-admin.php:903
215
  msgid "Custom contact forms"
216
  msgstr ""
217
 
218
- #: inc/cleantalk-admin.php:536 inc/cleantalk-admin.php:907
219
  msgid "WooCommerce checkout form"
220
  msgstr ""
221
 
222
- #: inc/cleantalk-admin.php:537
223
  msgid "Protect external forms"
224
  msgstr ""
225
 
226
- #: inc/cleantalk-admin.php:538
227
  msgid "Protect internal forms"
228
  msgstr ""
229
 
230
- #: inc/cleantalk-admin.php:542
231
  msgid "buddyPress private messages"
232
  msgstr ""
233
 
234
- #: inc/cleantalk-admin.php:543
235
  msgid "Don't check trusted user's comments"
236
  msgstr ""
237
 
238
- #: inc/cleantalk-admin.php:544
239
  msgid "Automatically delete spam comments"
240
  msgstr ""
241
 
242
- #: inc/cleantalk-admin.php:545
243
  msgid "Remove links from approved comments"
244
  msgstr ""
245
 
246
- #: inc/cleantalk-admin.php:546
247
- msgid "Show links to check Emails, IPs for spam."
248
- msgstr ""
249
-
250
- #: inc/cleantalk-admin.php:550
251
  msgid "Protect logged in Users"
252
  msgstr ""
253
 
254
- #: inc/cleantalk-admin.php:551
255
  msgid "Use AJAX for JavaScript check"
256
  msgstr ""
257
 
258
- #: inc/cleantalk-admin.php:552
259
  msgid "Check all post data"
260
  msgstr ""
261
 
262
- #: inc/cleantalk-admin.php:553
263
  msgid "Set cookies"
264
  msgstr ""
265
 
266
- #: inc/cleantalk-admin.php:554
267
  msgid "Use SSL"
268
  msgstr ""
269
 
270
- #: inc/cleantalk-admin.php:558
271
  msgid "Show statistics in admin bar"
272
  msgstr ""
273
 
274
- #: inc/cleantalk-admin.php:559
275
  msgid "Show All-time counter"
276
  msgstr ""
277
 
278
- #: inc/cleantalk-admin.php:560
279
  msgid "Show 24 hours counter"
280
  msgstr ""
281
 
282
- #: inc/cleantalk-admin.php:561
283
  msgid "SpamFireWall counter"
284
  msgstr ""
285
 
286
- #: inc/cleantalk-admin.php:564 inc/cleantalk-admin.php:1300
287
  msgid "Collect details about browsers"
288
  msgstr ""
289
 
290
- #: inc/cleantalk-admin.php:565 inc/cleantalk-admin.php:1464
291
  msgid "Tell others about CleanTalk"
292
  msgstr ""
293
 
294
- #: inc/cleantalk-admin.php:566 inc/cleantalk-admin.php:904
295
- #: inc/cleantalk-admin.php:1490
296
  msgid "SpamFireWall"
297
  msgstr ""
298
 
299
- #: inc/cleantalk-admin.php:643 inc/cleantalk-admin.php:658
300
- #: inc/cleantalk-admin.php:673 inc/cleantalk-admin.php:1030
301
- #: inc/cleantalk-admin.php:1063 inc/cleantalk-admin.php:1079
302
- #: inc/cleantalk-admin.php:1095 inc/cleantalk-admin.php:1111
303
- #: inc/cleantalk-admin.php:1127 inc/cleantalk-admin.php:1143
304
- #: inc/cleantalk-admin.php:1159 inc/cleantalk-admin.php:1178
305
- #: inc/cleantalk-admin.php:1203 inc/cleantalk-admin.php:1228
306
- #: inc/cleantalk-admin.php:1248 inc/cleantalk-admin.php:1278
307
- #: inc/cleantalk-admin.php:1335 inc/cleantalk-admin.php:1355
308
- #: inc/cleantalk-admin.php:1375 inc/cleantalk-admin.php:1395
309
- #: inc/cleantalk-admin.php:1415 inc/cleantalk-admin.php:1436
310
  msgid "Yes"
311
  msgstr ""
312
 
313
- #: inc/cleantalk-admin.php:645 inc/cleantalk-admin.php:660
314
- #: inc/cleantalk-admin.php:675 inc/cleantalk-admin.php:1032
315
- #: inc/cleantalk-admin.php:1065 inc/cleantalk-admin.php:1081
316
- #: inc/cleantalk-admin.php:1097 inc/cleantalk-admin.php:1113
317
- #: inc/cleantalk-admin.php:1129 inc/cleantalk-admin.php:1145
318
- #: inc/cleantalk-admin.php:1161 inc/cleantalk-admin.php:1180
319
- #: inc/cleantalk-admin.php:1205 inc/cleantalk-admin.php:1230
320
- #: inc/cleantalk-admin.php:1250 inc/cleantalk-admin.php:1280
321
- #: inc/cleantalk-admin.php:1337 inc/cleantalk-admin.php:1357
322
- #: inc/cleantalk-admin.php:1377 inc/cleantalk-admin.php:1397
323
- #: inc/cleantalk-admin.php:1417 inc/cleantalk-admin.php:1438
324
  msgid "No"
325
  msgstr ""
326
 
327
- #: inc/cleantalk-admin.php:646 inc/cleantalk-admin.php:676
328
  msgid ""
329
  "Display all-time requests counter in the admin bar. Counter displays number "
330
  "of requests since plugin installation."
331
  msgstr ""
332
 
333
- #: inc/cleantalk-admin.php:661
334
  msgid ""
335
  "Display daily requests counter in the admin bar. Counter displays number of "
336
  "requests of the past 24 hours."
337
  msgstr ""
338
 
339
- #: inc/cleantalk-admin.php:727
340
  msgid "Since"
341
  msgstr ""
342
 
343
- #: inc/cleantalk-admin.php:733
344
  msgid ""
345
  "All / Allowed / Blocked submissions. The number of submissions is being "
346
  "counted since CleanTalk plugin installation."
347
  msgstr ""
348
 
349
- #: inc/cleantalk-admin.php:733
350
  msgid "All"
351
  msgstr ""
352
 
353
- #: inc/cleantalk-admin.php:741
354
  msgid ""
355
  "Allowed / Blocked submissions. The number of submissions for past 24 hours. "
356
  msgstr ""
357
 
358
- #: inc/cleantalk-admin.php:741
359
  msgid "Day"
360
  msgstr ""
361
 
362
- #: inc/cleantalk-admin.php:747
363
  msgid ""
364
  "All / Blocked events. Access attempts regitred by SpamFireWall counted since "
365
  "the last plugin activation."
366
  msgstr ""
367
 
368
- #: inc/cleantalk-admin.php:752
369
  msgid ""
370
  "Allowed / Blocked submissions. The number of submissions is being counted "
371
  "since "
372
  msgstr ""
373
 
374
- #: inc/cleantalk-admin.php:759
375
  msgid "dashboard"
376
  msgstr ""
377
 
378
- #: inc/cleantalk-admin.php:768 inc/cleantalk-admin.php:774
379
- #: inc/cleantalk-admin.php:1907 inc/cleantalk-admin.php:1908
380
  msgid "Settings"
381
  msgstr ""
382
 
383
- #: inc/cleantalk-admin.php:783 inc/cleantalk-admin.php:961
384
- #: inc/cleantalk-admin.php:1936
385
  msgid "Support"
386
  msgstr ""
387
 
388
- #: inc/cleantalk-admin.php:792
389
  msgid "Bulk spam comments removal tool."
390
  msgstr ""
391
 
392
- #: inc/cleantalk-admin.php:792 inc/cleantalk-admin.php:999
393
  msgid "Check comments for spam"
394
  msgstr ""
395
 
396
- #: inc/cleantalk-admin.php:802 inc/cleantalk-admin.php:1000
397
  msgid "Check users for spam"
398
  msgstr ""
399
 
400
- #: inc/cleantalk-admin.php:811
401
  msgid "Reset counter"
402
  msgstr ""
403
 
404
- #: inc/cleantalk-admin.php:901
405
  msgid "Comments forms"
406
  msgstr ""
407
 
408
- #: inc/cleantalk-admin.php:950
409
  #, php-format
410
  msgid "has blocked <b>%s</b> spam."
411
  msgstr ""
412
 
413
- #: inc/cleantalk-admin.php:959
414
  msgid "Click here to get anti-spam statistics"
415
  msgstr ""
416
 
417
- #: inc/cleantalk-admin.php:969
418
  msgid "Enter the key"
419
  msgstr ""
420
 
421
- #: inc/cleantalk-admin.php:983
422
  msgid "Get access key manually"
423
  msgstr ""
424
 
425
- #: inc/cleantalk-admin.php:984
426
  msgid "or"
427
  msgstr ""
428
 
429
- #: inc/cleantalk-admin.php:985
430
  msgid "Get access key automatically"
431
  msgstr ""
432
 
433
- #: inc/cleantalk-admin.php:990
434
  #, php-format
435
  msgid "Admin e-mail (%s) will be used for registration"
436
  msgstr ""
437
 
438
- #: inc/cleantalk-admin.php:991
439
  msgid "License agreement"
440
  msgstr ""
441
 
442
- #: inc/cleantalk-admin.php:996
443
  msgid "Show the access key"
444
  msgstr ""
445
 
446
- #: inc/cleantalk-admin.php:1013
447
  #, php-format
448
  msgid ""
449
  "Testing is failed, please, check the settings! Tech support "
450
  "%ssupport@cleantalk.org%s"
451
  msgstr ""
452
 
453
- #: inc/cleantalk-admin.php:1033
454
  msgid "WordPress, JetPack, WooCommerce."
455
  msgstr ""
456
 
457
- #: inc/cleantalk-admin.php:1038
458
  msgid "Forms to protect"
459
  msgstr ""
460
 
461
- #: inc/cleantalk-admin.php:1042
462
  msgid "Comments and messages"
463
  msgstr ""
464
 
465
- #: inc/cleantalk-admin.php:1046
466
  msgid "Data processing"
467
  msgstr ""
468
 
469
- #: inc/cleantalk-admin.php:1050
470
  msgid "Admin bar"
471
  msgstr ""
472
 
473
- #: inc/cleantalk-admin.php:1066
474
  msgid "Remove links from approved comments. Replace it with \"[Link deleted]\""
475
  msgstr ""
476
 
477
- #: inc/cleantalk-admin.php:1082
478
- msgid ""
479
- "Shows little icon near IP addresses and Emails allowing you to check it via "
480
- "CleanTalk's database. Also allowing you to manage comments from the public "
481
- "post's page."
482
- msgstr ""
483
-
484
- #: inc/cleantalk-admin.php:1098
485
  msgid "WordPress, BuddyPress, bbPress, S2Member, WooCommerce."
486
  msgstr ""
487
 
488
- #: inc/cleantalk-admin.php:1114
489
  msgid ""
490
  "Contact Form 7, Formidable forms, JetPack, Fast Secure Contact Form, "
491
  "WordPress Landing Pages, Gravity Forms."
492
  msgstr ""
493
 
494
- #: inc/cleantalk-admin.php:1130
495
  msgid "Anti spam test for any WordPress themes or contacts forms."
496
  msgstr ""
497
 
498
- #: inc/cleantalk-admin.php:1146
499
  msgid "Anti spam test for WooCommerce checkout form."
500
  msgstr ""
501
 
502
- #: inc/cleantalk-admin.php:1162
503
  msgid "Check buddyPress private messages."
504
  msgstr ""
505
 
506
- #: inc/cleantalk-admin.php:1181
507
  #, php-format
508
  msgid "Delete spam comments older than %d days."
509
  msgstr ""
510
 
511
- #: inc/cleantalk-admin.php:1206
512
  msgid ""
513
  "Show/hide CleanTalk icon in top level menu in WordPress backend. The number "
514
  "of submissions is being counted for past 24 hours."
515
  msgstr ""
516
 
517
- #: inc/cleantalk-admin.php:1231
518
  msgid ""
519
  "Check all POST submissions from website visitors. Enable this option if you "
520
  "have spam misses on website or you don`t have records about missed spam here:"
521
  msgstr ""
522
 
523
- #: inc/cleantalk-admin.php:1231
524
  msgid "CleanTalk dashboard"
525
  msgstr ""
526
 
527
- #: inc/cleantalk-admin.php:1231
528
  msgid "СAUTION! Option can catch POST requests in WordPress backend"
529
  msgstr ""
530
 
531
- #: inc/cleantalk-admin.php:1251
532
  msgid ""
533
  "Options helps protect WordPress against spam with any caching plugins. Turn "
534
  "this option on to avoid issues with caching plugins."
535
  msgstr ""
536
 
537
- #: inc/cleantalk-admin.php:1251
538
  msgid "Attention! Incompatible with AMP plugins!"
539
  msgstr ""
540
 
541
- #: inc/cleantalk-admin.php:1281
542
  msgid "Dont't check comments for users with above"
543
  msgstr ""
544
 
545
- #: inc/cleantalk-admin.php:1281
546
  msgid "comments."
547
  msgstr ""
548
 
549
- #: inc/cleantalk-admin.php:1301
550
  msgid ""
551
  "Checking this box you allow plugin store information about screen size and "
552
  "browser plugins of website visitors. The option in a beta state."
553
  msgstr ""
554
 
555
- #: inc/cleantalk-admin.php:1358
556
  msgid ""
557
  "Turn this option on to protect forms on your WordPress that send data to "
558
  "third-part servers (like MailChimp)."
559
  msgstr ""
560
 
561
- #: inc/cleantalk-admin.php:1378
562
  msgid ""
563
  "This option will enable protection for custom (hand-made) AJAX forms with "
564
  "PHP scripts handlers on your WordPress."
565
  msgstr ""
566
 
567
- #: inc/cleantalk-admin.php:1398
568
  msgid ""
569
  "Turn this option off to deny plugin generates any cookies on website front-"
570
  "end. This option is helpful if you use Varnish. But most of contact forms "
571
  "will not be protected by CleanTalk if the option is turned off!"
572
  msgstr ""
573
 
574
- #: inc/cleantalk-admin.php:1418
575
  msgid ""
576
  "Turn this option on to use encrypted (SSL) connection with CleanTalk servers."
577
  msgstr ""
578
 
579
- #: inc/cleantalk-admin.php:1439
580
  msgid ""
581
  "Turn this option on to check for spam any submissions (comments, contact "
582
  "forms and etc.) from registered Users."
583
  msgstr ""
584
 
585
- #: inc/cleantalk-admin.php:1465
586
  msgid ""
587
  "Checking this box places a small link under the comment form that lets "
588
  "others know what anti-spam tool protects your site."
589
  msgstr ""
590
 
591
- #: inc/cleantalk-admin.php:1491
592
  msgid ""
593
  "This option allows to filter spam bots before they access website. Also "
594
  "reduces CPU usage on hosting server and accelerates pages load time."
595
  msgstr ""
596
 
597
- #: inc/cleantalk-admin.php:1493
598
  msgid "Learn more"
599
  msgstr ""
600
 
601
- #: inc/cleantalk-admin.php:1609
602
  msgid "Save Changes"
603
  msgstr ""
604
 
605
- #: inc/cleantalk-admin.php:1649
606
  msgid "CleanTalk's tech support:"
607
  msgstr ""
608
 
609
- #: inc/cleantalk-admin.php:1655
610
  msgid "Plugin Homepage at"
611
  msgstr ""
612
 
613
- #: inc/cleantalk-admin.php:1656
614
  msgid "Use s@cleantalk.org to test plugin in any WordPress form."
615
  msgstr ""
616
 
617
- #: inc/cleantalk-admin.php:1657
618
  msgid "CleanTalk is registered Trademark. All rights reserved."
619
  msgstr ""
620
 
621
- #: inc/cleantalk-admin.php:1712
622
  #, php-format
623
  msgid "Unable to get Access key automatically: %s"
624
  msgstr ""
625
 
626
- #: inc/cleantalk-admin.php:1713
627
  msgid "Get the Access key"
628
  msgstr ""
629
 
630
- #: inc/cleantalk-admin.php:1724
631
  #, php-format
632
  msgid "Please enter Access Key in %s settings to enable anti spam protection!"
633
  msgstr ""
634
 
635
- #: inc/cleantalk-admin.php:1733
636
  #, php-format
637
  msgid "%s trial period ends, please upgrade to %s!"
638
  msgstr ""
639
 
640
- #: inc/cleantalk-admin.php:1744
641
  msgid "RENEW ANTI-SPAM"
642
  msgstr ""
643
 
644
- #: inc/cleantalk-admin.php:1745
645
  msgid "next year"
646
  msgstr ""
647
 
648
- #: inc/cleantalk-admin.php:1749
649
  #, php-format
650
  msgid "Please renew your anti-spam license for %s."
651
  msgstr ""
652
 
653
- #: inc/cleantalk-admin.php:1932
 
 
 
 
 
 
 
 
654
  msgid "Translate"
655
  msgstr ""
656
 
657
- #: inc/cleantalk-admin.php:1935
658
  msgid "FAQ"
659
  msgstr ""
660
 
661
- #: inc/cleantalk-comments.php:14 inc/cleantalk-comments.php:222
662
- #: inc/cleantalk-users.php:14 inc/cleantalk-users.php:220
663
  msgid "Check for spam"
664
  msgstr ""
665
 
666
- #: inc/cleantalk-comments.php:39 inc/cleantalk-users.php:37
667
- msgid ""
668
- "Ajax error. Process will be automatically restarted in 3 seconds. Status: "
669
- msgstr ""
670
-
671
- #: inc/cleantalk-comments.php:46
672
- msgid ""
673
- "Please wait for a while. CleanTalk is deleting spam comments. Comments left: "
674
- msgstr ""
675
-
676
- #: inc/cleantalk-comments.php:62
677
- msgid ""
678
- "Please wait! CleanTalk is checking all approved and pending comments via "
679
- "blacklist database at cleantalk.org. You will have option to delete found "
680
- "spam comments after plugin finish."
681
- msgstr ""
682
-
683
- #: inc/cleantalk-comments.php:107
684
  msgid "Author"
685
  msgstr ""
686
 
687
- #: inc/cleantalk-comments.php:108
688
  msgid "Comment"
689
  msgstr ""
690
 
691
- #: inc/cleantalk-comments.php:109
692
  msgid "In Response To"
693
  msgstr ""
694
 
695
- #: inc/cleantalk-comments.php:155
696
  #, php-format
697
  msgid "Submitted on <a href=\"%1$s\">%2$s at %3$s</a>"
698
  msgstr ""
699
 
700
- #: inc/cleantalk-comments.php:157
701
  msgid "Y/m/d"
702
  msgstr ""
703
 
704
- #: inc/cleantalk-comments.php:167 inc/cleantalk-users.php:163
705
  msgid "Approve"
706
  msgstr ""
707
 
708
- #: inc/cleantalk-comments.php:169 inc/cleantalk-users.php:165
709
  msgid "Delete"
710
  msgstr ""
711
 
712
- #: inc/cleantalk-comments.php:184
713
  msgid "View Post"
714
  msgstr ""
715
 
716
- #: inc/cleantalk-comments.php:211
717
  msgid "Delete all comments from the list"
718
  msgstr ""
719
 
720
- #: inc/cleantalk-comments.php:212 inc/cleantalk-users.php:208
721
  msgid "Delete selected"
722
  msgstr ""
723
 
724
- #: inc/cleantalk-comments.php:216
725
- msgid "Insert comments"
726
- msgstr ""
727
-
728
- #: inc/cleantalk-comments.php:226
729
- msgid ""
730
- "The plugin will check all comments against blacklists database and show you "
731
- "senders that have spam activity on other websites."
732
- msgstr ""
733
-
734
- #: inc/cleantalk-comments.php:235 inc/cleantalk-users.php:233
735
  msgid ""
736
  "There is some differencies between blacklists database and our API "
737
  "mechanisms. Blacklists shows all history of spam activity, but our API (that "
@@ -741,153 +694,134 @@ msgid ""
741
  "emails/IPs will be not found by this checking."
742
  msgstr ""
743
 
744
- #: inc/cleantalk-comments.php:441
745
- #, php-format
 
 
 
 
 
 
 
 
 
 
 
746
  msgid ""
747
- "Total comments %s. Checked %s. Found %s spam comments. %d bad comments "
748
- "(without IP or email)."
 
 
 
 
 
 
 
 
 
749
  msgstr ""
750
 
751
- #: inc/cleantalk-comments.php:445
752
  msgid "Please do backup of WordPress database before delete any comments!"
753
  msgstr ""
754
 
755
- #: inc/cleantalk-public.php:407 inc/cleantalk-public.php:499
756
- #: inc/cleantalk-public.php:560 inc/cleantalk-public.php:2306
757
- #: inc/cleantalk-public.php:2609
758
  msgid "Spam protection by CleanTalk"
759
  msgstr ""
760
 
761
- #: inc/cleantalk-public.php:1136 inc/cleantalk-public.php:1176
762
- #: inc/cleantalk-public.php:1194
763
  msgid "Spam protection"
764
  msgstr ""
765
 
766
- #: inc/cleantalk-public.php:1398
767
  #, php-format
768
  msgid "Registration is approved by %s."
769
  msgstr ""
770
 
771
- #: inc/cleantalk-public.php:2141
772
  msgid "Comment approved. Anti-spam by CleanTalk."
773
  msgstr ""
774
 
775
- #: inc/cleantalk-public.php:2790
776
  msgid "Attention, please!"
777
  msgstr ""
778
 
779
- #: inc/cleantalk-public.php:2791
780
  #, php-format
781
  msgid "\"%s\" plugin error on your site %s:"
782
  msgstr ""
783
 
784
- #: inc/cleantalk-public.php:2793
785
  #, php-format
786
  msgid "[%s] %s error!"
787
  msgstr ""
788
 
789
- #: inc/cleantalk-public.php:2846
790
- msgid "Error occured while sending feedback."
791
- msgstr ""
792
-
793
- #: inc/cleantalk-public.php:2847
794
- msgid "Feedback wasn't sent. There is no associated request."
795
- msgstr ""
796
-
797
- #: inc/cleantalk-public.php:2885
798
- msgid "Sender info"
799
- msgstr ""
800
-
801
- #: inc/cleantalk-public.php:2888
802
- msgid "by"
803
- msgstr ""
804
-
805
- #: inc/cleantalk-public.php:2898
806
- msgid "No email"
807
- msgstr ""
808
-
809
- #: inc/cleantalk-public.php:2907
810
- msgid "No IP"
811
- msgstr ""
812
-
813
- #: inc/cleantalk-public.php:2909
814
- msgid "Mark as spam"
815
- msgstr ""
816
-
817
- #: inc/cleantalk-public.php:2910
818
- msgid "Unspam"
819
- msgstr ""
820
-
821
- #: inc/cleantalk-public.php:2912
822
- msgid "Marked as spam."
823
- msgstr ""
824
-
825
- #: inc/cleantalk-public.php:2913
826
- msgid "Marked as not spam."
827
  msgstr ""
828
 
829
- #: inc/cleantalk-users.php:44
830
  msgid "Please wait for a while. CleanTalk is deleting spam users. Users left: "
831
  msgstr ""
832
 
833
- #: inc/cleantalk-users.php:60
834
  msgid ""
835
  "Please wait for a while. CleanTalk is checking all users via blacklist "
836
  "database at cleantalk.org. You will have option to delete found spam users "
837
  "after plugin finish."
838
  msgstr ""
839
 
840
- #: inc/cleantalk-users.php:104
841
  msgid "Username"
842
  msgstr ""
843
 
844
- #: inc/cleantalk-users.php:105
845
  msgid "Name"
846
  msgstr ""
847
 
848
- #: inc/cleantalk-users.php:106
849
- msgid "E-mail"
850
- msgstr ""
851
-
852
- #: inc/cleantalk-users.php:107
853
  msgid "Role"
854
  msgstr ""
855
 
856
- #: inc/cleantalk-users.php:108
857
  msgid "Posts"
858
  msgstr ""
859
 
860
- #: inc/cleantalk-users.php:207
861
  msgid "Delete all users from list"
862
  msgstr ""
863
 
864
- #: inc/cleantalk-users.php:209
865
  msgid "Download results in CSV"
866
  msgstr ""
867
 
868
- #: inc/cleantalk-users.php:213
869
  msgid "Insert accounts"
870
  msgstr ""
871
 
872
- #: inc/cleantalk-users.php:224
873
  msgid ""
874
  "The plugin will check all users against blacklists database and show you "
875
  "senders that have spam activity on other websites. Just click 'Find spam "
876
  "users' to start."
877
  msgstr ""
878
 
879
- #: inc/cleantalk-users.php:237
880
  msgid "Stop deletion"
881
  msgstr ""
882
 
883
- #: inc/cleantalk-users.php:431
884
  #, php-format
885
  msgid ""
886
  "Total users %s, checked %s, found %s spam users and %s bad users (without IP "
887
  "or email)"
888
  msgstr ""
889
 
890
- #: inc/cleantalk-users.php:434
891
  msgid "Please do backup of WordPress database before delete any accounts!"
892
  msgstr ""
893
 
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Anti-Spam by CleanTalk\n"
6
+ "POT-Creation-Date: 2017-04-19 18:36+0500\n"
7
+ "PO-Revision-Date: 2017-04-19 18:35+0500\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: cleantalk.php:596
24
  msgid "WordPress spam"
25
  msgstr ""
26
 
27
+ #: cleantalk.php:596
28
  msgid "blocked by"
29
  msgstr ""
30
 
31
+ #: cleantalk.php:754
32
  #, php-format
33
  msgid "%d spam attacks have been blocked"
34
  msgstr ""
35
 
36
+ #: cleantalk.php:767
37
  msgid "Complete setup"
38
  msgstr ""
39
 
40
+ #: cleantalk.php:768 inc/cleantalk-admin.php:1650
41
  msgid ""
42
  "To see the anti-spam log and complete the setup, please get the Access key."
43
  msgstr ""
44
 
45
+ #: cleantalk.php:773
46
  #, php-format
47
  msgid "%s spam attacks report"
48
  msgstr ""
51
  msgid "CleanTalk Anti-Spam Statistics"
52
  msgstr ""
53
 
54
+ #: inc/cleantalk-admin.php:20
55
  #, php-format
56
+ msgid "%sConfigure%s"
57
  msgstr ""
58
 
59
+ #: inc/cleantalk-admin.php:21
60
  #, php-format
61
+ msgid "%sRefresh%s"
62
  msgstr ""
63
 
64
+ #: inc/cleantalk-admin.php:71
65
  msgid "7 days anti-spam stats"
66
  msgstr ""
67
 
68
+ #: inc/cleantalk-admin.php:80
69
  msgid "Top 5 spam IPs blocked"
70
  msgstr ""
71
 
72
+ #: inc/cleantalk-admin.php:88
73
  msgid "IP"
74
  msgstr ""
75
 
76
+ #: inc/cleantalk-admin.php:89
77
  msgid "Country"
78
  msgstr ""
79
 
80
+ #: inc/cleantalk-admin.php:90
81
  msgid "Block Count"
82
  msgstr ""
83
 
84
+ #: inc/cleantalk-admin.php:127
85
  msgid "Get Access key to activate Anti-Spam protection!"
86
  msgstr ""
87
 
88
+ #: inc/cleantalk-admin.php:135
89
  msgid "Something went wrong! Server response is: \""
90
  msgstr ""
91
 
92
+ #: inc/cleantalk-admin.php:139
93
  msgid "Please, visit your dashboard."
94
  msgstr ""
95
 
96
+ #: inc/cleantalk-admin.php:164
97
  #, php-format
98
  msgid ""
99
  "has blocked %s spam. The statistics is automatically updated every 24 hours."
100
  msgstr ""
101
 
102
+ #: inc/cleantalk-admin.php:236
103
  msgid "Failed from timeout. Going to check comments again."
104
  msgstr ""
105
 
106
+ #: inc/cleantalk-admin.php:237
107
+ msgid "Added 500 comments"
 
 
 
 
108
  msgstr ""
109
 
110
+ #: inc/cleantalk-admin.php:238
111
  msgid "Delete all spam comments?"
112
  msgstr ""
113
 
114
+ #: inc/cleantalk-admin.php:239
115
  msgid "Delete checked comments?"
116
  msgstr ""
117
 
118
+ #: inc/cleantalk-admin.php:242
119
  msgid "Find spam-comments"
120
  msgstr ""
121
 
122
+ #: inc/cleantalk-admin.php:243
123
  msgid "Show spam-comments"
124
  msgstr ""
125
 
126
+ #: inc/cleantalk-admin.php:258
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  msgid "Failed from timeout. Going to check users again."
128
  msgstr ""
129
 
130
+ #: inc/cleantalk-admin.php:259
131
  msgid "Failed from timeout. Going to run a new attempt to delete spam users."
132
  msgstr ""
133
 
134
+ #: inc/cleantalk-admin.php:260
135
  msgid "Inserted"
136
  msgstr ""
137
 
138
+ #: inc/cleantalk-admin.php:261
139
  msgid "users."
140
  msgstr ""
141
 
142
+ #: inc/cleantalk-admin.php:262
143
  msgid "Delete all spam users?"
144
  msgstr ""
145
 
146
+ #: inc/cleantalk-admin.php:263
147
  msgid "Delete checked users?"
148
  msgstr ""
149
 
150
+ #: inc/cleantalk-admin.php:265
151
  msgid ""
152
  "File doesn't exist. File will be generated while checking. Please, press "
153
  "\"Check for spam\"."
154
  msgstr ""
155
 
156
+ #: inc/cleantalk-admin.php:268
157
  msgid "Find spam-users"
158
  msgstr ""
159
 
160
+ #: inc/cleantalk-admin.php:269
161
  msgid "Show spam-users"
162
  msgstr ""
163
 
164
+ #: inc/cleantalk-admin.php:281 inc/cleantalk-admin.php:283
165
  msgid "CleanTalk settings"
166
  msgstr ""
167
 
168
+ #: inc/cleantalk-admin.php:383
169
  #, php-format
170
  msgid "Unable to connect to %s."
171
  msgstr ""
172
 
173
+ #: inc/cleantalk-admin.php:481
174
  msgid "Protection is active"
175
  msgstr ""
176
 
177
+ #: inc/cleantalk-admin.php:483
178
  msgid "Advanced settings"
179
  msgstr ""
180
 
181
+ #: inc/cleantalk-admin.php:487
182
  msgid "Access key"
183
  msgstr ""
184
 
185
+ #: inc/cleantalk-admin.php:496 inc/cleantalk-admin.php:863
186
  msgid "Registration forms"
187
  msgstr ""
188
 
189
+ #: inc/cleantalk-admin.php:497
190
  msgid "Comments form"
191
  msgstr ""
192
 
193
+ #: inc/cleantalk-admin.php:498 inc/cleantalk-admin.php:865
194
  msgid "Contact forms"
195
  msgstr ""
196
 
197
+ #: inc/cleantalk-admin.php:499 inc/cleantalk-admin.php:866
198
  msgid "Custom contact forms"
199
  msgstr ""
200
 
201
+ #: inc/cleantalk-admin.php:500 inc/cleantalk-admin.php:870
202
  msgid "WooCommerce checkout form"
203
  msgstr ""
204
 
205
+ #: inc/cleantalk-admin.php:501
206
  msgid "Protect external forms"
207
  msgstr ""
208
 
209
+ #: inc/cleantalk-admin.php:502
210
  msgid "Protect internal forms"
211
  msgstr ""
212
 
213
+ #: inc/cleantalk-admin.php:506
214
  msgid "buddyPress private messages"
215
  msgstr ""
216
 
217
+ #: inc/cleantalk-admin.php:507
218
  msgid "Don't check trusted user's comments"
219
  msgstr ""
220
 
221
+ #: inc/cleantalk-admin.php:508
222
  msgid "Automatically delete spam comments"
223
  msgstr ""
224
 
225
+ #: inc/cleantalk-admin.php:509
226
  msgid "Remove links from approved comments"
227
  msgstr ""
228
 
229
+ #: inc/cleantalk-admin.php:513
 
 
 
 
230
  msgid "Protect logged in Users"
231
  msgstr ""
232
 
233
+ #: inc/cleantalk-admin.php:514
234
  msgid "Use AJAX for JavaScript check"
235
  msgstr ""
236
 
237
+ #: inc/cleantalk-admin.php:515
238
  msgid "Check all post data"
239
  msgstr ""
240
 
241
+ #: inc/cleantalk-admin.php:516
242
  msgid "Set cookies"
243
  msgstr ""
244
 
245
+ #: inc/cleantalk-admin.php:517
246
  msgid "Use SSL"
247
  msgstr ""
248
 
249
+ #: inc/cleantalk-admin.php:521
250
  msgid "Show statistics in admin bar"
251
  msgstr ""
252
 
253
+ #: inc/cleantalk-admin.php:522
254
  msgid "Show All-time counter"
255
  msgstr ""
256
 
257
+ #: inc/cleantalk-admin.php:523
258
  msgid "Show 24 hours counter"
259
  msgstr ""
260
 
261
+ #: inc/cleantalk-admin.php:524
262
  msgid "SpamFireWall counter"
263
  msgstr ""
264
 
265
+ #: inc/cleantalk-admin.php:527 inc/cleantalk-admin.php:1247
266
  msgid "Collect details about browsers"
267
  msgstr ""
268
 
269
+ #: inc/cleantalk-admin.php:528 inc/cleantalk-admin.php:1411
270
  msgid "Tell others about CleanTalk"
271
  msgstr ""
272
 
273
+ #: inc/cleantalk-admin.php:529 inc/cleantalk-admin.php:867
274
+ #: inc/cleantalk-admin.php:1437
275
  msgid "SpamFireWall"
276
  msgstr ""
277
 
278
+ #: inc/cleantalk-admin.php:606 inc/cleantalk-admin.php:621
279
+ #: inc/cleantalk-admin.php:636 inc/cleantalk-admin.php:993
280
+ #: inc/cleantalk-admin.php:1026 inc/cleantalk-admin.php:1042
281
+ #: inc/cleantalk-admin.php:1058 inc/cleantalk-admin.php:1074
282
+ #: inc/cleantalk-admin.php:1090 inc/cleantalk-admin.php:1106
283
+ #: inc/cleantalk-admin.php:1125 inc/cleantalk-admin.php:1150
284
+ #: inc/cleantalk-admin.php:1175 inc/cleantalk-admin.php:1195
285
+ #: inc/cleantalk-admin.php:1225 inc/cleantalk-admin.php:1282
286
+ #: inc/cleantalk-admin.php:1302 inc/cleantalk-admin.php:1322
287
+ #: inc/cleantalk-admin.php:1342 inc/cleantalk-admin.php:1362
288
+ #: inc/cleantalk-admin.php:1383
289
  msgid "Yes"
290
  msgstr ""
291
 
292
+ #: inc/cleantalk-admin.php:608 inc/cleantalk-admin.php:623
293
+ #: inc/cleantalk-admin.php:638 inc/cleantalk-admin.php:995
294
+ #: inc/cleantalk-admin.php:1028 inc/cleantalk-admin.php:1044
295
+ #: inc/cleantalk-admin.php:1060 inc/cleantalk-admin.php:1076
296
+ #: inc/cleantalk-admin.php:1092 inc/cleantalk-admin.php:1108
297
+ #: inc/cleantalk-admin.php:1127 inc/cleantalk-admin.php:1152
298
+ #: inc/cleantalk-admin.php:1177 inc/cleantalk-admin.php:1197
299
+ #: inc/cleantalk-admin.php:1227 inc/cleantalk-admin.php:1284
300
+ #: inc/cleantalk-admin.php:1304 inc/cleantalk-admin.php:1324
301
+ #: inc/cleantalk-admin.php:1344 inc/cleantalk-admin.php:1364
302
+ #: inc/cleantalk-admin.php:1385
303
  msgid "No"
304
  msgstr ""
305
 
306
+ #: inc/cleantalk-admin.php:609 inc/cleantalk-admin.php:639
307
  msgid ""
308
  "Display all-time requests counter in the admin bar. Counter displays number "
309
  "of requests since plugin installation."
310
  msgstr ""
311
 
312
+ #: inc/cleantalk-admin.php:624
313
  msgid ""
314
  "Display daily requests counter in the admin bar. Counter displays number of "
315
  "requests of the past 24 hours."
316
  msgstr ""
317
 
318
+ #: inc/cleantalk-admin.php:690
319
  msgid "Since"
320
  msgstr ""
321
 
322
+ #: inc/cleantalk-admin.php:696
323
  msgid ""
324
  "All / Allowed / Blocked submissions. The number of submissions is being "
325
  "counted since CleanTalk plugin installation."
326
  msgstr ""
327
 
328
+ #: inc/cleantalk-admin.php:696
329
  msgid "All"
330
  msgstr ""
331
 
332
+ #: inc/cleantalk-admin.php:704
333
  msgid ""
334
  "Allowed / Blocked submissions. The number of submissions for past 24 hours. "
335
  msgstr ""
336
 
337
+ #: inc/cleantalk-admin.php:704
338
  msgid "Day"
339
  msgstr ""
340
 
341
+ #: inc/cleantalk-admin.php:710
342
  msgid ""
343
  "All / Blocked events. Access attempts regitred by SpamFireWall counted since "
344
  "the last plugin activation."
345
  msgstr ""
346
 
347
+ #: inc/cleantalk-admin.php:715
348
  msgid ""
349
  "Allowed / Blocked submissions. The number of submissions is being counted "
350
  "since "
351
  msgstr ""
352
 
353
+ #: inc/cleantalk-admin.php:722
354
  msgid "dashboard"
355
  msgstr ""
356
 
357
+ #: inc/cleantalk-admin.php:731 inc/cleantalk-admin.php:737
358
+ #: inc/cleantalk-admin.php:1834 inc/cleantalk-admin.php:1835
359
  msgid "Settings"
360
  msgstr ""
361
 
362
+ #: inc/cleantalk-admin.php:746 inc/cleantalk-admin.php:924
363
+ #: inc/cleantalk-admin.php:1863
364
  msgid "Support"
365
  msgstr ""
366
 
367
+ #: inc/cleantalk-admin.php:755
368
  msgid "Bulk spam comments removal tool."
369
  msgstr ""
370
 
371
+ #: inc/cleantalk-admin.php:755 inc/cleantalk-admin.php:962
372
  msgid "Check comments for spam"
373
  msgstr ""
374
 
375
+ #: inc/cleantalk-admin.php:765 inc/cleantalk-admin.php:963
376
  msgid "Check users for spam"
377
  msgstr ""
378
 
379
+ #: inc/cleantalk-admin.php:774
380
  msgid "Reset counter"
381
  msgstr ""
382
 
383
+ #: inc/cleantalk-admin.php:864
384
  msgid "Comments forms"
385
  msgstr ""
386
 
387
+ #: inc/cleantalk-admin.php:913
388
  #, php-format
389
  msgid "has blocked <b>%s</b> spam."
390
  msgstr ""
391
 
392
+ #: inc/cleantalk-admin.php:922
393
  msgid "Click here to get anti-spam statistics"
394
  msgstr ""
395
 
396
+ #: inc/cleantalk-admin.php:932
397
  msgid "Enter the key"
398
  msgstr ""
399
 
400
+ #: inc/cleantalk-admin.php:946
401
  msgid "Get access key manually"
402
  msgstr ""
403
 
404
+ #: inc/cleantalk-admin.php:947
405
  msgid "or"
406
  msgstr ""
407
 
408
+ #: inc/cleantalk-admin.php:948
409
  msgid "Get access key automatically"
410
  msgstr ""
411
 
412
+ #: inc/cleantalk-admin.php:953
413
  #, php-format
414
  msgid "Admin e-mail (%s) will be used for registration"
415
  msgstr ""
416
 
417
+ #: inc/cleantalk-admin.php:954
418
  msgid "License agreement"
419
  msgstr ""
420
 
421
+ #: inc/cleantalk-admin.php:959
422
  msgid "Show the access key"
423
  msgstr ""
424
 
425
+ #: inc/cleantalk-admin.php:976
426
  #, php-format
427
  msgid ""
428
  "Testing is failed, please, check the settings! Tech support "
429
  "%ssupport@cleantalk.org%s"
430
  msgstr ""
431
 
432
+ #: inc/cleantalk-admin.php:996
433
  msgid "WordPress, JetPack, WooCommerce."
434
  msgstr ""
435
 
436
+ #: inc/cleantalk-admin.php:1001
437
  msgid "Forms to protect"
438
  msgstr ""
439
 
440
+ #: inc/cleantalk-admin.php:1005
441
  msgid "Comments and messages"
442
  msgstr ""
443
 
444
+ #: inc/cleantalk-admin.php:1009
445
  msgid "Data processing"
446
  msgstr ""
447
 
448
+ #: inc/cleantalk-admin.php:1013
449
  msgid "Admin bar"
450
  msgstr ""
451
 
452
+ #: inc/cleantalk-admin.php:1029
453
  msgid "Remove links from approved comments. Replace it with \"[Link deleted]\""
454
  msgstr ""
455
 
456
+ #: inc/cleantalk-admin.php:1045
 
 
 
 
 
 
 
457
  msgid "WordPress, BuddyPress, bbPress, S2Member, WooCommerce."
458
  msgstr ""
459
 
460
+ #: inc/cleantalk-admin.php:1061
461
  msgid ""
462
  "Contact Form 7, Formidable forms, JetPack, Fast Secure Contact Form, "
463
  "WordPress Landing Pages, Gravity Forms."
464
  msgstr ""
465
 
466
+ #: inc/cleantalk-admin.php:1077
467
  msgid "Anti spam test for any WordPress themes or contacts forms."
468
  msgstr ""
469
 
470
+ #: inc/cleantalk-admin.php:1093
471
  msgid "Anti spam test for WooCommerce checkout form."
472
  msgstr ""
473
 
474
+ #: inc/cleantalk-admin.php:1109
475
  msgid "Check buddyPress private messages."
476
  msgstr ""
477
 
478
+ #: inc/cleantalk-admin.php:1128
479
  #, php-format
480
  msgid "Delete spam comments older than %d days."
481
  msgstr ""
482
 
483
+ #: inc/cleantalk-admin.php:1153
484
  msgid ""
485
  "Show/hide CleanTalk icon in top level menu in WordPress backend. The number "
486
  "of submissions is being counted for past 24 hours."
487
  msgstr ""
488
 
489
+ #: inc/cleantalk-admin.php:1178
490
  msgid ""
491
  "Check all POST submissions from website visitors. Enable this option if you "
492
  "have spam misses on website or you don`t have records about missed spam here:"
493
  msgstr ""
494
 
495
+ #: inc/cleantalk-admin.php:1178
496
  msgid "CleanTalk dashboard"
497
  msgstr ""
498
 
499
+ #: inc/cleantalk-admin.php:1178
500
  msgid "СAUTION! Option can catch POST requests in WordPress backend"
501
  msgstr ""
502
 
503
+ #: inc/cleantalk-admin.php:1198
504
  msgid ""
505
  "Options helps protect WordPress against spam with any caching plugins. Turn "
506
  "this option on to avoid issues with caching plugins."
507
  msgstr ""
508
 
509
+ #: inc/cleantalk-admin.php:1198
510
  msgid "Attention! Incompatible with AMP plugins!"
511
  msgstr ""
512
 
513
+ #: inc/cleantalk-admin.php:1228
514
  msgid "Dont't check comments for users with above"
515
  msgstr ""
516
 
517
+ #: inc/cleantalk-admin.php:1228
518
  msgid "comments."
519
  msgstr ""
520
 
521
+ #: inc/cleantalk-admin.php:1248
522
  msgid ""
523
  "Checking this box you allow plugin store information about screen size and "
524
  "browser plugins of website visitors. The option in a beta state."
525
  msgstr ""
526
 
527
+ #: inc/cleantalk-admin.php:1305
528
  msgid ""
529
  "Turn this option on to protect forms on your WordPress that send data to "
530
  "third-part servers (like MailChimp)."
531
  msgstr ""
532
 
533
+ #: inc/cleantalk-admin.php:1325
534
  msgid ""
535
  "This option will enable protection for custom (hand-made) AJAX forms with "
536
  "PHP scripts handlers on your WordPress."
537
  msgstr ""
538
 
539
+ #: inc/cleantalk-admin.php:1345
540
  msgid ""
541
  "Turn this option off to deny plugin generates any cookies on website front-"
542
  "end. This option is helpful if you use Varnish. But most of contact forms "
543
  "will not be protected by CleanTalk if the option is turned off!"
544
  msgstr ""
545
 
546
+ #: inc/cleantalk-admin.php:1365
547
  msgid ""
548
  "Turn this option on to use encrypted (SSL) connection with CleanTalk servers."
549
  msgstr ""
550
 
551
+ #: inc/cleantalk-admin.php:1386
552
  msgid ""
553
  "Turn this option on to check for spam any submissions (comments, contact "
554
  "forms and etc.) from registered Users."
555
  msgstr ""
556
 
557
+ #: inc/cleantalk-admin.php:1412
558
  msgid ""
559
  "Checking this box places a small link under the comment form that lets "
560
  "others know what anti-spam tool protects your site."
561
  msgstr ""
562
 
563
+ #: inc/cleantalk-admin.php:1438
564
  msgid ""
565
  "This option allows to filter spam bots before they access website. Also "
566
  "reduces CPU usage on hosting server and accelerates pages load time."
567
  msgstr ""
568
 
569
+ #: inc/cleantalk-admin.php:1440
570
  msgid "Learn more"
571
  msgstr ""
572
 
573
+ #: inc/cleantalk-admin.php:1556
574
  msgid "Save Changes"
575
  msgstr ""
576
 
577
+ #: inc/cleantalk-admin.php:1596
578
  msgid "CleanTalk's tech support:"
579
  msgstr ""
580
 
581
+ #: inc/cleantalk-admin.php:1602
582
  msgid "Plugin Homepage at"
583
  msgstr ""
584
 
585
+ #: inc/cleantalk-admin.php:1603
586
  msgid "Use s@cleantalk.org to test plugin in any WordPress form."
587
  msgstr ""
588
 
589
+ #: inc/cleantalk-admin.php:1604
590
  msgid "CleanTalk is registered Trademark. All rights reserved."
591
  msgstr ""
592
 
593
+ #: inc/cleantalk-admin.php:1658
594
  #, php-format
595
  msgid "Unable to get Access key automatically: %s"
596
  msgstr ""
597
 
598
+ #: inc/cleantalk-admin.php:1659
599
  msgid "Get the Access key"
600
  msgstr ""
601
 
602
+ #: inc/cleantalk-admin.php:1669
603
  #, php-format
604
  msgid "Please enter Access Key in %s settings to enable anti spam protection!"
605
  msgstr ""
606
 
607
+ #: inc/cleantalk-admin.php:1679
608
  #, php-format
609
  msgid "%s trial period ends, please upgrade to %s!"
610
  msgstr ""
611
 
612
+ #: inc/cleantalk-admin.php:1690
613
  msgid "RENEW ANTI-SPAM"
614
  msgstr ""
615
 
616
+ #: inc/cleantalk-admin.php:1691
617
  msgid "next year"
618
  msgstr ""
619
 
620
+ #: inc/cleantalk-admin.php:1695
621
  #, php-format
622
  msgid "Please renew your anti-spam license for %s."
623
  msgstr ""
624
 
625
+ #: inc/cleantalk-admin.php:1705
626
+ msgid ""
627
+ "Wrong <a href=\"options-general.php?page=cleantalk\"><b style=\"color: "
628
+ "#49C73B;\">Clean</b><b style=\"color: #349ebf;\">Talk</b> access key</"
629
+ "a>! Please check it or ask <a target=\"_blank\" href=\"https://cleantalk.org/"
630
+ "forum/\">support</a>."
631
+ msgstr ""
632
+
633
+ #: inc/cleantalk-admin.php:1859
634
  msgid "Translate"
635
  msgstr ""
636
 
637
+ #: inc/cleantalk-admin.php:1862
638
  msgid "FAQ"
639
  msgstr ""
640
 
641
+ #: inc/cleantalk-comments.php:9 inc/cleantalk-comments.php:240
642
+ #: inc/cleantalk-users.php:16 inc/cleantalk-users.php:209
643
  msgid "Check for spam"
644
  msgstr ""
645
 
646
+ #: inc/cleantalk-comments.php:66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
647
  msgid "Author"
648
  msgstr ""
649
 
650
+ #: inc/cleantalk-comments.php:67
651
  msgid "Comment"
652
  msgstr ""
653
 
654
+ #: inc/cleantalk-comments.php:68
655
  msgid "In Response To"
656
  msgstr ""
657
 
658
+ #: inc/cleantalk-comments.php:98
659
  #, php-format
660
  msgid "Submitted on <a href=\"%1$s\">%2$s at %3$s</a>"
661
  msgstr ""
662
 
663
+ #: inc/cleantalk-comments.php:100
664
  msgid "Y/m/d"
665
  msgstr ""
666
 
667
+ #: inc/cleantalk-comments.php:110 inc/cleantalk-users.php:145
668
  msgid "Approve"
669
  msgstr ""
670
 
671
+ #: inc/cleantalk-comments.php:112 inc/cleantalk-users.php:147
672
  msgid "Delete"
673
  msgstr ""
674
 
675
+ #: inc/cleantalk-comments.php:127
676
  msgid "View Post"
677
  msgstr ""
678
 
679
+ #: inc/cleantalk-comments.php:173
680
  msgid "Delete all comments from the list"
681
  msgstr ""
682
 
683
+ #: inc/cleantalk-comments.php:174 inc/cleantalk-users.php:197
684
  msgid "Delete selected"
685
  msgstr ""
686
 
687
+ #: inc/cleantalk-comments.php:217 inc/cleantalk-users.php:222
 
 
 
 
 
 
 
 
 
 
688
  msgid ""
689
  "There is some differencies between blacklists database and our API "
690
  "mechanisms. Blacklists shows all history of spam activity, but our API (that "
694
  "emails/IPs will be not found by this checking."
695
  msgstr ""
696
 
697
+ #: inc/cleantalk-comments.php:225
698
+ msgid ""
699
+ "Please wait! CleanTalk is checking all approved and pending comments via "
700
+ "blacklist database at cleantalk.org. You will have option to delete found "
701
+ "spam comments after plugin finish."
702
+ msgstr ""
703
+
704
+ #: inc/cleantalk-comments.php:228
705
+ msgid ""
706
+ "Please wait for a while. CleanTalk is deleting spam comments. Comments left: "
707
+ msgstr ""
708
+
709
+ #: inc/cleantalk-comments.php:243
710
  msgid ""
711
+ "The plugin will check all comments against blacklists database and show you "
712
+ "senders that have spam activity on other websites."
713
+ msgstr ""
714
+
715
+ #: inc/cleantalk-comments.php:248
716
+ msgid "Insert comments"
717
+ msgstr ""
718
+
719
+ #: inc/cleantalk-comments.php:410
720
+ #, php-format
721
+ msgid "Total comments %s, checked %s, found %s spam comments."
722
  msgstr ""
723
 
724
+ #: inc/cleantalk-comments.php:413
725
  msgid "Please do backup of WordPress database before delete any comments!"
726
  msgstr ""
727
 
728
+ #: inc/cleantalk-public.php:397 inc/cleantalk-public.php:489
729
+ #: inc/cleantalk-public.php:550 inc/cleantalk-public.php:2284
730
+ #: inc/cleantalk-public.php:2586
731
  msgid "Spam protection by CleanTalk"
732
  msgstr ""
733
 
734
+ #: inc/cleantalk-public.php:1126 inc/cleantalk-public.php:1166
735
+ #: inc/cleantalk-public.php:1184
736
  msgid "Spam protection"
737
  msgstr ""
738
 
739
+ #: inc/cleantalk-public.php:1388
740
  #, php-format
741
  msgid "Registration is approved by %s."
742
  msgstr ""
743
 
744
+ #: inc/cleantalk-public.php:2119
745
  msgid "Comment approved. Anti-spam by CleanTalk."
746
  msgstr ""
747
 
748
+ #: inc/cleantalk-public.php:2763
749
  msgid "Attention, please!"
750
  msgstr ""
751
 
752
+ #: inc/cleantalk-public.php:2764
753
  #, php-format
754
  msgid "\"%s\" plugin error on your site %s:"
755
  msgstr ""
756
 
757
+ #: inc/cleantalk-public.php:2766
758
  #, php-format
759
  msgid "[%s] %s error!"
760
  msgstr ""
761
 
762
+ #: inc/cleantalk-users.php:54
763
+ msgid ""
764
+ "Ajax error. Process will be automatically restarted in 3 seconds. Status: "
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
765
  msgstr ""
766
 
767
+ #: inc/cleantalk-users.php:59
768
  msgid "Please wait for a while. CleanTalk is deleting spam users. Users left: "
769
  msgstr ""
770
 
771
+ #: inc/cleantalk-users.php:70
772
  msgid ""
773
  "Please wait for a while. CleanTalk is checking all users via blacklist "
774
  "database at cleantalk.org. You will have option to delete found spam users "
775
  "after plugin finish."
776
  msgstr ""
777
 
778
+ #: inc/cleantalk-users.php:100
779
  msgid "Username"
780
  msgstr ""
781
 
782
+ #: inc/cleantalk-users.php:101
783
  msgid "Name"
784
  msgstr ""
785
 
786
+ #: inc/cleantalk-users.php:103
 
 
 
 
787
  msgid "Role"
788
  msgstr ""
789
 
790
+ #: inc/cleantalk-users.php:104
791
  msgid "Posts"
792
  msgstr ""
793
 
794
+ #: inc/cleantalk-users.php:196
795
  msgid "Delete all users from list"
796
  msgstr ""
797
 
798
+ #: inc/cleantalk-users.php:198
799
  msgid "Download results in CSV"
800
  msgstr ""
801
 
802
+ #: inc/cleantalk-users.php:202
803
  msgid "Insert accounts"
804
  msgstr ""
805
 
806
+ #: inc/cleantalk-users.php:212
807
  msgid ""
808
  "The plugin will check all users against blacklists database and show you "
809
  "senders that have spam activity on other websites. Just click 'Find spam "
810
  "users' to start."
811
  msgstr ""
812
 
813
+ #: inc/cleantalk-users.php:230
814
  msgid "Stop deletion"
815
  msgstr ""
816
 
817
+ #: inc/cleantalk-users.php:440
818
  #, php-format
819
  msgid ""
820
  "Total users %s, checked %s, found %s spam users and %s bad users (without IP "
821
  "or email)"
822
  msgstr ""
823
 
824
+ #: inc/cleantalk-users.php:443
825
  msgid "Please do backup of WordPress database before delete any accounts!"
826
  msgstr ""
827
 
inc/cleantalk-admin.php CHANGED
@@ -196,9 +196,14 @@ add_action( 'wp_ajax_ajax_get_timezone', 'ct_ajax_get_timezone' );
196
  * @param string $hook URL of hooked page
197
  */
198
  function ct_enqueue_scripts($hook) {
 
199
 
200
- global $cleantalk_plugin_version, $ct_data, $ct_options;
201
-
 
 
 
 
202
  // Scripts to all admin pages
203
  wp_enqueue_script('ct_admin_js_notices', plugins_url('/cleantalk-spam-protect/assets/js/cleantalk-admin.js'), array(), $cleantalk_plugin_version);
204
  wp_enqueue_style ('ct_admin_css', plugins_url('/cleantalk-spam-protect/assets/css/cleantalk-admin.css'), array(), $cleantalk_plugin_version, 'all');
@@ -226,30 +231,27 @@ function ct_enqueue_scripts($hook) {
226
  wp_enqueue_style('cleantalk_admin_css_settings_page', plugins_url().'/cleantalk-spam-protect/assets/css/cleantalk-spam-check.css', array(), $cleantalk_plugin_version, 'all');
227
 
228
  $ajax_nonce = wp_create_nonce( "ct_secret_nonce" );
229
- $user_token = !empty($ct_data['user_token']) ? $ct_data['user_token'] : '';
230
- $show_check_links = !empty($ct_options['show_check_links']) ? $ct_options['show_check_links'] : 0;
231
 
232
- wp_enqueue_script('ct_comments_checkspam', plugins_url('/cleantalk-spam-protect/assets/js/cleantalk-comments-checkspam.js'), array(), $cleantalk_plugin_version);
233
- wp_enqueue_script('ct_comments_editscreen', plugins_url('/cleantalk-spam-protect/assets/js/cleantalk-comments-editscreen.js'), array(), $cleantalk_plugin_version.time());
234
 
235
  wp_localize_script( 'jquery', 'ctCommentsCheck', array(
236
  'ct_ajax_nonce' => $ajax_nonce,
237
- 'ct_timeout_confirm' => __('Failed from timeout. Going to check comments again.', 'cleantalk'),
238
- 'ct_comments_added' => __('Added', 'cleantalk'),
239
- 'ct_comments_added_after' => __('comments', 'cleantalk'),
240
- 'ct_confirm_deletion_all' => __('Delete all spam comments?', 'cleantalk'),
241
  'ct_confirm_deletion_checked' => __('Delete checked comments?', 'cleantalk')
242
  ));
243
  wp_localize_script( 'jquery', 'ctCommentsScreen', array(
244
- 'ct_ajax_nonce' => $ajax_nonce,
245
- 'spambutton_text' => __("Find spam-comments", 'cleantalk'),
246
- 'spambutton_text_show' => __("Show spam-comments", 'cleantalk'),
247
- 'ct_feedback_msg_whitelisted' => __("The sender has been whitelisted.", 'cleantalk'),
248
- 'ct_feedback_msg_blacklisted' => __("The sender has been blacklisted.", 'cleantalk'),
249
- 'ct_feedback_msg' => sprintf(__("Feedback has been sent to %sCleanTalk Dashboard%s.", 'cleantalk'), $user_token ? "<a target='_blank' href=https://cleantalk.org/my?user_token={$user_token}&cp_mode=antispam>" : '', $user_token ? "</a>" : ''),
250
- 'ct_show_check_links' => $show_check_links,
251
- 'ct_img_src_new_tab' => plugin_dir_url(__FILE__)."images/new_window.gif",
252
-
253
  ));
254
  }
255
 
@@ -260,27 +262,24 @@ function ct_enqueue_scripts($hook) {
260
 
261
  $current_user = wp_get_current_user();
262
  $ajax_nonce = wp_create_nonce( "ct_secret_nonce" );
263
- $show_check_links = !empty($ct_options['show_check_links']) ? $ct_options['show_check_links'] : 0;
264
 
265
- wp_enqueue_script('ct_users_checkspam', plugins_url('/cleantalk-spam-protect/assets/js/cleantalk-users-checkspam.js'), array(), $cleantalk_plugin_version);
266
- wp_enqueue_script('ct_users_editscreen', plugins_url('/cleantalk-spam-protect/assets/js/cleantalk-users-editscreen.js'), array(), $cleantalk_plugin_version);
267
 
268
  wp_localize_script( 'jquery', 'ctUsersCheck', array(
269
- 'ct_ajax_nonce' => $ajax_nonce,
270
- 'ct_timeout' => __('Failed from timeout. Going to check users again.', 'cleantalk'),
271
- 'ct_timeout_delete' => __('Failed from timeout. Going to run a new attempt to delete spam users.', 'cleantalk'),
272
- 'ct_inserted' => __('Inserted', 'cleantalk'),
273
- 'ct_iusers' => __('users.', 'cleantalk'),
274
- 'ct_confirm_deletion_all' => __('Delete all spam users?', 'cleantalk'),
275
  'ct_confirm_deletion_checked' => __('Delete checked users?', 'cleantalk'),
276
- 'ct_csv_filename' => "user_check_by_".$current_user->user_login,
277
- 'ct_bad_csv' => __("File doesn't exist. File will be generated while checking. Please, press \"Check for spam\".")
278
  ));
279
  wp_localize_script( 'jquery', 'ctUsersScreen', array(
280
- 'spambutton_users_text' => __("Find spam-users", 'cleantalk'),
281
- 'spambutton_users_text_show' => __("Show spam-users", 'cleantalk'),
282
- 'ct_show_check_links' => $show_check_links,
283
- 'ct_img_src_new_tab' => plugin_dir_url(__FILE__)."images/new_window.gif"
284
  ));
285
  }
286
  }
@@ -543,7 +542,6 @@ function ct_admin_init(){
543
  add_settings_field('cleantalk_check_comments_number', __("Don't check trusted user's comments", 'cleantalk'), 'ct_input_check_comments_number', 'cleantalk', 'cleantalk_settings_anti_spam');
544
  add_settings_field('cleantalk_remove_old_spam', __('Automatically delete spam comments', 'cleantalk'), 'ct_input_remove_old_spam', 'cleantalk', 'cleantalk_settings_anti_spam');
545
  add_settings_field('cleantalk_remove_links_from_comments', __('Remove links from approved comments', 'cleantalk'), 'ct_input_remove_links_from_approved_comments', 'cleantalk', 'cleantalk_settings_anti_spam');
546
- add_settings_field('cleantalk_show_check_links', __('Show links to check Emails, IPs for spam.', 'cleantalk'), 'ct_input_show_check_links', 'cleantalk', 'cleantalk_settings_anti_spam');
547
 
548
  //Data processing
549
  add_settings_field('cleantalk_title_data_processing', "", 'ct_input_data_processing', 'cleantalk', 'cleantalk_settings_anti_spam');//Title settings
@@ -1066,22 +1064,6 @@ function ct_input_remove_links_from_approved_comments() {
1066
  admin_addDescriptionsFields(__('Remove links from approved comments. Replace it with "[Link deleted]"', 'cleantalk'));
1067
  }
1068
 
1069
- /**
1070
- * Admin callback function - Displays inputs of 'comments_test' plugin parameter
1071
- */
1072
- function ct_input_show_check_links() {
1073
- global $ct_options, $ct_data;
1074
-
1075
- $ct_options = ct_get_options();
1076
- $ct_data = ct_get_data();
1077
-
1078
- $value = $ct_options['show_check_links'];
1079
- echo "<input type='radio' id='cleantalk_show_check_links1' name='cleantalk_settings[show_check_links]' value='1' " . ($value == '1' ? 'checked' : '') . " /><label for='cleantalk_show_check_links1'> " . __('Yes') . "</label>";
1080
- echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
1081
- echo "<input type='radio' id='cleantalk_show_check_links1' name='cleantalk_settings[show_check_links]' value='0' " . ($value == '0' ? 'checked' : '') . " /><label for='cleantalk_show_check_links1'> " . __('No') . "</label>";
1082
- admin_addDescriptionsFields(__('Shows little icon near IP addresses and Emails allowing you to check it via CleanTalk\'s database. Also allowing you to manage comments from the public post\'s page.', 'cleantalk'));
1083
- }
1084
-
1085
  /**
1086
  * Admin callback function - Displays inputs of 'comments_test' plugin parameter
1087
  */
@@ -1789,17 +1771,14 @@ function ct_valid_key($apikey = null) {
1789
  }
1790
 
1791
  // Ajax action feedback form comments page.
1792
- function ct_comment_send_feedback($comment_id = null, $comment_status = null, $change_status = false, $direct_call = null){
1793
 
1794
- // For AJAX call
1795
- check_ajax_referer('ct_secret_nonce', 'security');
1796
- $comment_id = !empty($_POST['comment_id']) ? $_POST['comment_id'] : false;
1797
- $comment_status = !empty($_POST['comment_status']) ? $_POST['comment_status'] : false;
1798
- $change_status = !empty($_POST['change_status']) ? $_POST['change_status'] : false;
1799
-
1800
- // If enter params is empty exit
1801
- if(!$comment_id || !$comment_status)
1802
- die();
1803
 
1804
  // $comment = get_comment($comment_id, 'ARRAY_A');
1805
  $hash = get_comment_meta($comment_id, 'ct_hash', true);
@@ -1811,7 +1790,7 @@ function ct_comment_send_feedback($comment_id = null, $comment_status = null, $c
1811
  if($comment_status == '1' || $comment_status == 'approve'){
1812
  $result = ct_send_feedback($hash.":1");
1813
  // $comment['comment_content'] = ct_unmark_red($comment['comment_content']);
1814
- // wp_update_comment($comment);
1815
  $result === true ? 1 : 0;
1816
  }
1817
 
@@ -1824,10 +1803,6 @@ function ct_comment_send_feedback($comment_id = null, $comment_status = null, $c
1824
  $result = 'no_hash';
1825
  }
1826
 
1827
- // Changing comment status(folder) if flag is set. spam || approve
1828
- if($change_status !== false)
1829
- wp_set_comment_status($comment_id, $comment_status);
1830
-
1831
  if(!$direct_call){
1832
  echo !empty($result) ? $result : 0;
1833
  die();
196
  * @param string $hook URL of hooked page
197
  */
198
  function ct_enqueue_scripts($hook) {
199
+ global $cleantalk_plugin_version;
200
 
201
+ /*/ INACTIVE
202
+ if ($hook == 'edit-comments.php'){
203
+ //wp_enqueue_script('ct_reload_script', plugins_url('/cleantalk-rel.js', __FILE__), array(), $cleantalk_plugin_version);
204
+ }
205
+ //*/
206
+
207
  // Scripts to all admin pages
208
  wp_enqueue_script('ct_admin_js_notices', plugins_url('/cleantalk-spam-protect/assets/js/cleantalk-admin.js'), array(), $cleantalk_plugin_version);
209
  wp_enqueue_style ('ct_admin_css', plugins_url('/cleantalk-spam-protect/assets/css/cleantalk-admin.css'), array(), $cleantalk_plugin_version, 'all');
231
  wp_enqueue_style('cleantalk_admin_css_settings_page', plugins_url().'/cleantalk-spam-protect/assets/css/cleantalk-spam-check.css', array(), $cleantalk_plugin_version, 'all');
232
 
233
  $ajax_nonce = wp_create_nonce( "ct_secret_nonce" );
234
+ $ct_data = ct_get_data();
235
+ $user_token = !empty($ct_data['user_token']) ? $ct_data['user_token'] : null;
236
 
237
+ wp_enqueue_script('ct_comments_checkspam', plugins_url('/cleantalk-spam-protect/inc/cleantalk-comments-checkspam.js'), array(), $cleantalk_plugin_version);
238
+ wp_enqueue_script('ct_comments_editscreen', plugins_url('/cleantalk-spam-protect/inc/cleantalk-comments-editscreen.js'), array(), $cleantalk_plugin_version);
239
 
240
  wp_localize_script( 'jquery', 'ctCommentsCheck', array(
241
  'ct_ajax_nonce' => $ajax_nonce,
242
+ 'ct_timeout_confirm' => __('Failed from timeout. Going to check comments again.', 'cleantalk'),
243
+ 'ct_comments_added' => __('Added', 'cleantalk'),
244
+ 'ct_comments_added_after' => __('comments', 'cleantalk'),
245
+ 'ct_confirm_deletion_all' => __('Delete all spam comments?', 'cleantalk'),
246
  'ct_confirm_deletion_checked' => __('Delete checked comments?', 'cleantalk')
247
  ));
248
  wp_localize_script( 'jquery', 'ctCommentsScreen', array(
249
+ 'ct_ajax_nonce' => $ajax_nonce,
250
+ 'spambutton_text' => __("Find spam-comments", 'cleantalk'),
251
+ 'spambutton_text_show' => __("Show spam-comments", 'cleantalk'),
252
+ 'ct_feedback_msg_whitelisted' => __("The sender has been whitelisted."),
253
+ 'ct_feedback_msg_blacklisted' => __("The sender has been blacklisted."),
254
+ 'ct_feedback_msg' => sprintf(__("Feedback has been sent to %sCleanTalk Dashboard%s."), $user_token ? "<a target='_blank' href=https://cleantalk.org/my?user_token={$user_token}&cp_mode=antispam>" : '', $user_token ? "</a>" : '')
 
 
 
255
  ));
256
  }
257
 
262
 
263
  $current_user = wp_get_current_user();
264
  $ajax_nonce = wp_create_nonce( "ct_secret_nonce" );
 
265
 
266
+ wp_enqueue_script('ct_users_checkspam', plugins_url('/cleantalk-spam-protect/inc/cleantalk-users-checkspam.js'), array(), $cleantalk_plugin_version);
267
+ wp_enqueue_script('ct_users_editscreen', plugins_url('/cleantalk-spam-protect/inc/cleantalk-users-editscreen.js'), array(), $cleantalk_plugin_version);
268
 
269
  wp_localize_script( 'jquery', 'ctUsersCheck', array(
270
+ 'ct_ajax_nonce' => $ajax_nonce,
271
+ 'ct_timeout' => __('Failed from timeout. Going to check users again.', 'cleantalk'),
272
+ 'ct_timeout_delete' => __('Failed from timeout. Going to run a new attempt to delete spam users.', 'cleantalk'),
273
+ 'ct_inserted' => __('Inserted', 'cleantalk'),
274
+ 'ct_iusers' => __('users.', 'cleantalk'),
275
+ 'ct_confirm_deletion_all' => __('Delete all spam users?', 'cleantalk'),
276
  'ct_confirm_deletion_checked' => __('Delete checked users?', 'cleantalk'),
277
+ 'ct_csv_filename' => "user_check_by_".$current_user->user_login,
278
+ 'ct_bad_csv' => __("File doesn't exist. File will be generated while checking. Please, press \"Check for spam\".")
279
  ));
280
  wp_localize_script( 'jquery', 'ctUsersScreen', array(
281
+ 'spambutton_users_text' => __("Find spam-users", 'cleantalk'),
282
+ 'spambutton_users_text_show' => __("Show spam-users", 'cleantalk')
 
 
283
  ));
284
  }
285
  }
542
  add_settings_field('cleantalk_check_comments_number', __("Don't check trusted user's comments", 'cleantalk'), 'ct_input_check_comments_number', 'cleantalk', 'cleantalk_settings_anti_spam');
543
  add_settings_field('cleantalk_remove_old_spam', __('Automatically delete spam comments', 'cleantalk'), 'ct_input_remove_old_spam', 'cleantalk', 'cleantalk_settings_anti_spam');
544
  add_settings_field('cleantalk_remove_links_from_comments', __('Remove links from approved comments', 'cleantalk'), 'ct_input_remove_links_from_approved_comments', 'cleantalk', 'cleantalk_settings_anti_spam');
 
545
 
546
  //Data processing
547
  add_settings_field('cleantalk_title_data_processing', "", 'ct_input_data_processing', 'cleantalk', 'cleantalk_settings_anti_spam');//Title settings
1064
  admin_addDescriptionsFields(__('Remove links from approved comments. Replace it with "[Link deleted]"', 'cleantalk'));
1065
  }
1066
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1067
  /**
1068
  * Admin callback function - Displays inputs of 'comments_test' plugin parameter
1069
  */
1771
  }
1772
 
1773
  // Ajax action feedback form comments page.
1774
+ function ct_comment_send_feedback($comment_id = null, $comment_status = null, $direct_call = null){
1775
 
1776
+ if(current_action() != 'wp_set_comment_status'){
1777
+ check_ajax_referer('ct_secret_nonce', 'security');
1778
+ $comment_id = $_POST['comment_id'];
1779
+ $comment_status = $_POST['comment_status'];
1780
+ }else
1781
+ $direct_call = true;
 
 
 
1782
 
1783
  // $comment = get_comment($comment_id, 'ARRAY_A');
1784
  $hash = get_comment_meta($comment_id, 'ct_hash', true);
1790
  if($comment_status == '1' || $comment_status == 'approve'){
1791
  $result = ct_send_feedback($hash.":1");
1792
  // $comment['comment_content'] = ct_unmark_red($comment['comment_content']);
1793
+ // wp_update_comment($comment);
1794
  $result === true ? 1 : 0;
1795
  }
1796
 
1803
  $result = 'no_hash';
1804
  }
1805
 
 
 
 
 
1806
  if(!$direct_call){
1807
  echo !empty($result) ? $result : 0;
1808
  die();
inc/cleantalk-ajax.php CHANGED
@@ -181,8 +181,7 @@ function ct_validate_email_ajaxlogin($email=null, $is_ajax=true)
181
  $ct_request = new CleantalkRequest();
182
  $ct_request->auth_key = $ct_options['apikey'];
183
  $ct_request->sender_email = $email;
184
- // $ct_request->sender_ip = $ct->ct_session_ip($_SERVER['REMOTE_ADDR']);
185
- $ct_request->sender_ip = cleantalk_get_real_ip();
186
  $ct_request->sender_nickname = '';
187
  $ct_request->agent = $ct_agent_version;
188
  $ct_request->sender_info = $sender_info;
@@ -267,8 +266,7 @@ function ct_user_register_ajaxlogin($user_id)
267
  $ct_request = new CleantalkRequest();
268
  $ct_request->auth_key = $ct_options['apikey'];
269
  $ct_request->sender_email = sanitize_email($_POST['email']);
270
- // $ct_request->sender_ip = $ct->ct_session_ip($_SERVER['REMOTE_ADDR']);
271
- $ct_request->sender_ip = cleantalk_get_real_ip();
272
  $ct_request->sender_nickname = sanitize_email($_POST['login']); ;
273
  $ct_request->agent = $ct_agent_version;
274
  $ct_request->sender_info = $sender_info;
@@ -618,19 +616,6 @@ function ct_ajax_hook($message_obj = false, $additional = false)
618
  elseif ( !empty($message_obj) && isset($message_obj['post_type'], $message_obj['author'], $message_obj['post_content']) ){
619
  return new WP_Error('Spam comment', $ct_result->comment);
620
  }
621
- //Convertplug. Strpos because action value dynamically changes and depends on mailing service
622
- elseif (isset($_POST['action']) && strpos($_POST['action'], '_add_subscriber') !== false){
623
- $result = Array(
624
- 'action' => "message",
625
- 'detailed_msg' => "",
626
- 'email_status' => false,
627
- 'message' => "<h1 style='font-size: 25px; color: red;'>".$ct_result->comment."</h1>",
628
- 'status' => "error",
629
- 'url' => "none"
630
- );
631
- print json_encode($result);
632
- die();
633
- }
634
  else
635
  {
636
  print $ct_result->comment;
181
  $ct_request = new CleantalkRequest();
182
  $ct_request->auth_key = $ct_options['apikey'];
183
  $ct_request->sender_email = $email;
184
+ $ct_request->sender_ip = $ct->ct_session_ip($_SERVER['REMOTE_ADDR']);
 
185
  $ct_request->sender_nickname = '';
186
  $ct_request->agent = $ct_agent_version;
187
  $ct_request->sender_info = $sender_info;
266
  $ct_request = new CleantalkRequest();
267
  $ct_request->auth_key = $ct_options['apikey'];
268
  $ct_request->sender_email = sanitize_email($_POST['email']);
269
+ $ct_request->sender_ip = $ct->ct_session_ip($_SERVER['REMOTE_ADDR']);
 
270
  $ct_request->sender_nickname = sanitize_email($_POST['login']); ;
271
  $ct_request->agent = $ct_agent_version;
272
  $ct_request->sender_info = $sender_info;
616
  elseif ( !empty($message_obj) && isset($message_obj['post_type'], $message_obj['author'], $message_obj['post_content']) ){
617
  return new WP_Error('Spam comment', $ct_result->comment);
618
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
619
  else
620
  {
621
  print $ct_result->comment;
{assets/js → inc}/cleantalk-comments-checkspam.js RENAMED
File without changes
{assets/js → inc}/cleantalk-comments-editscreen.js RENAMED
@@ -1,35 +1,17 @@
1
- function ct_is_email(str){
2
- return str.search(/.*@.*\..*/);
3
- }
4
- function ct_is_ip(str){
5
- return str.search(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/);
6
- }
7
-
8
  jQuery(document).ready(function(){
9
-
10
- /* Shows "Find spam users" Buttons */
11
  jQuery('#post-query-submit').after('<a href="edit-comments.php?page=ct_check_spam" class="button" style="margin:1px 0 0 0; display: inline-block;">'+ctCommentsScreen.spambutton_text+'</a>' +
12
  ' <a href="edit-comments.php?page=ct_check_spam&ct_worked=1" class="button" style="margin:1px 0 0 0; display: inline-block;">'+ctCommentsScreen.spambutton_text_show+'</a>&nbsp;');
13
 
14
- /* Shows link to blacklists near every email and IP address */
15
- if(parseInt(ctCommentsScreen.ct_show_check_links))
16
- jQuery('.column-author a, .comment-author a').each(function(){
17
- var ct_curr_str = jQuery(this).html();
18
- if(ct_is_email(ct_curr_str) != -1 || ct_is_ip(ct_curr_str) != -1){
19
- jQuery(this).after('&nbsp;<a href="https://cleantalk.org/blacklists/'+ct_curr_str+'" target="_blank" title="https://cleantalk.org/blacklists/'+ct_curr_str+'" class="ct_link_new_tab"><img src="'+ctCommentsScreen.ct_img_src_new_tab+'"></a>');
20
- }
21
- });
22
-
23
- console.log(parseInt(ctCommentsScreen.ct_show_check_links));
24
-
25
  /* Feedback for comments */
26
-
27
  var ct_comment_id;
28
 
29
  // For approved
30
  jQuery('span.approve').on('click', function(){
31
  var result = jQuery(this).children('a').attr('href');
32
- result = result.match(/^comment\.php\?.*c=(\d).*/);
33
  ct_comment_id = result[1];
34
  undo_comment_id = ct_comment_id;
35
  ct_send_feedback_request(ct_comment_id, 'approve', 0);
@@ -38,7 +20,7 @@ jQuery(document).ready(function(){
38
  // For unapprove
39
  jQuery('span.unapprove').on('click', function(){
40
  var result = jQuery(this).children('a').attr('href');
41
- result = result.match(/^comment\.php\?.*c=(\d).*/);
42
  ct_comment_id = result[1];
43
  undo_comment_id = ct_comment_id;
44
  ct_send_feedback_request(ct_comment_id, 'spam', 0);
@@ -47,7 +29,7 @@ jQuery(document).ready(function(){
47
  // For spammed
48
  jQuery('span.spam').on('click', function(){
49
  var result = jQuery(this).children('a').attr('href');
50
- result = result.match(/^comment\.php\?.*c=(\d).*/);
51
  ct_comment_id = result[1];
52
  undo_comment_id = ct_comment_id;
53
  ct_send_feedback_request(ct_comment_id, 'spam', 0);
@@ -55,7 +37,7 @@ jQuery(document).ready(function(){
55
  setTimeout(function(){
56
  jQuery('tr#undo-'+ct_comment_id+' span.unspam a').click(function(){
57
  var result = jQuery(this).attr('href');
58
- result = result.match(/^comment\.php\?.*&c=(\d).*/);
59
  ct_comment_id = result[1];
60
  ct_send_feedback_request(ct_comment_id, 'approve', 1);
61
  });
@@ -66,7 +48,7 @@ jQuery(document).ready(function(){
66
  // For unspammed
67
  jQuery('span.unspam').on('click', function(){
68
  var result = jQuery(this).children('a').attr('href');
69
- result = result.match(/^comment\.php\?.*c=(\d).*/);
70
  ct_comment_id = result[1];
71
  ct_send_feedback_request(ct_comment_id, 'approve', 0);
72
  });
@@ -74,7 +56,7 @@ jQuery(document).ready(function(){
74
  // For untrashed
75
  jQuery('span.untrash a').on('click', function(){
76
  var result = jQuery(this).attr('href');
77
- result = result.match(/^comment\.php\?.*c=(\d).*/);
78
  ct_comment_id = result[1];
79
  feedback_result = ct_send_feedback_request(ct_comment_id, 'approve', 0);
80
  });
 
 
 
 
 
 
 
1
  jQuery(document).ready(function(){
2
+
3
+ // Shows "Find spam users" Buttons
4
  jQuery('#post-query-submit').after('<a href="edit-comments.php?page=ct_check_spam" class="button" style="margin:1px 0 0 0; display: inline-block;">'+ctCommentsScreen.spambutton_text+'</a>' +
5
  ' <a href="edit-comments.php?page=ct_check_spam&ct_worked=1" class="button" style="margin:1px 0 0 0; display: inline-block;">'+ctCommentsScreen.spambutton_text_show+'</a>&nbsp;');
6
 
 
 
 
 
 
 
 
 
 
 
 
7
  /* Feedback for comments */
8
+
9
  var ct_comment_id;
10
 
11
  // For approved
12
  jQuery('span.approve').on('click', function(){
13
  var result = jQuery(this).children('a').attr('href');
14
+ result = result.match(/^comment\.php\?.*c=(\d*).*/);
15
  ct_comment_id = result[1];
16
  undo_comment_id = ct_comment_id;
17
  ct_send_feedback_request(ct_comment_id, 'approve', 0);
20
  // For unapprove
21
  jQuery('span.unapprove').on('click', function(){
22
  var result = jQuery(this).children('a').attr('href');
23
+ result = result.match(/^comment\.php\?.*c=(\d*).*/);
24
  ct_comment_id = result[1];
25
  undo_comment_id = ct_comment_id;
26
  ct_send_feedback_request(ct_comment_id, 'spam', 0);
29
  // For spammed
30
  jQuery('span.spam').on('click', function(){
31
  var result = jQuery(this).children('a').attr('href');
32
+ result = result.match(/^comment\.php\?.*c=(\d*).*/);
33
  ct_comment_id = result[1];
34
  undo_comment_id = ct_comment_id;
35
  ct_send_feedback_request(ct_comment_id, 'spam', 0);
37
  setTimeout(function(){
38
  jQuery('tr#undo-'+ct_comment_id+' span.unspam a').click(function(){
39
  var result = jQuery(this).attr('href');
40
+ result = result.match(/^comment\.php\?.*&c=(\d*).*/);
41
  ct_comment_id = result[1];
42
  ct_send_feedback_request(ct_comment_id, 'approve', 1);
43
  });
48
  // For unspammed
49
  jQuery('span.unspam').on('click', function(){
50
  var result = jQuery(this).children('a').attr('href');
51
+ result = result.match(/^comment\.php\?.*c=(\d*).*/);
52
  ct_comment_id = result[1];
53
  ct_send_feedback_request(ct_comment_id, 'approve', 0);
54
  });
56
  // For untrashed
57
  jQuery('span.untrash a').on('click', function(){
58
  var result = jQuery(this).attr('href');
59
+ result = result.match(/^comment\.php\?.*c=(\d*).*/);
60
  ct_comment_id = result[1];
61
  feedback_result = ct_send_feedback_request(ct_comment_id, 'approve', 0);
62
  });
inc/cleantalk-common.php CHANGED
@@ -185,8 +185,7 @@ function ct_base_call($params = array()) {
185
  $ct_request->example = $params['example'];
186
  $ct_request->sender_email = $params['sender_email'];
187
  $ct_request->sender_nickname = $params['sender_nickname'];
188
- // $ct_request->sender_ip = $ct->ct_session_ip($_SERVER['REMOTE_ADDR']);
189
- $ct_request->sender_ip = cleantalk_get_real_ip();
190
  $ct_request->agent = $ct_agent_version;
191
  $ct_request->sender_info = $sender_info;
192
  $ct_request->js_on = $params['checkjs'];
@@ -485,7 +484,6 @@ function ct_def_options() {
485
  'check_comments_number' => '1',
486
  'remove_old_spam' => '0',
487
  'remove_comments_links' => '0', //Removes links from approved comments
488
- 'show_check_links' => '1', //Shows check link to Cleantalk's DB. And allowing to control comments form public page.
489
  //Data processing
490
  'protect_logged_in' => '1', // Do anit-spam tests to for logged in users.
491
  'use_ajax' => '1',
185
  $ct_request->example = $params['example'];
186
  $ct_request->sender_email = $params['sender_email'];
187
  $ct_request->sender_nickname = $params['sender_nickname'];
188
+ $ct_request->sender_ip = $ct->ct_session_ip($_SERVER['REMOTE_ADDR']);
 
189
  $ct_request->agent = $ct_agent_version;
190
  $ct_request->sender_info = $sender_info;
191
  $ct_request->js_on = $params['checkjs'];
484
  'check_comments_number' => '1',
485
  'remove_old_spam' => '0',
486
  'remove_comments_links' => '0', //Removes links from approved comments
 
487
  //Data processing
488
  'protect_logged_in' => '1', // Do anit-spam tests to for logged in users.
489
  'use_ajax' => '1',
inc/cleantalk-public.php CHANGED
@@ -1662,8 +1662,7 @@ function ct_registration_errors($errors, $sanitized_user_login = null, $user_ema
1662
  $ct_request = new CleantalkRequest();
1663
  $ct_request->auth_key = $ct_options['apikey'];
1664
  $ct_request->sender_email = $user_email;
1665
- // $ct_request->sender_ip = $ct->ct_session_ip($_SERVER['REMOTE_ADDR']);
1666
- $ct_request->sender_ip = cleantalk_get_real_ip();
1667
  $ct_request->sender_nickname = $sanitized_user_login;
1668
  $ct_request->agent = $ct_agent_version;
1669
  $ct_request->sender_info = $sender_info;
@@ -2363,8 +2362,7 @@ function ct_s2member_registration_test() {
2363
 
2364
  $ct_request->auth_key = $ct_options['apikey'];
2365
  $ct_request->sender_email = $sender_email;
2366
- // $ct_request->sender_ip = $ct->ct_session_ip($_SERVER['REMOTE_ADDR']);
2367
- $ct_request->sender_ip = cleantalk_get_real_ip();
2368
  $ct_request->sender_nickname = $sender_nickname;
2369
  $ct_request->agent = $ct_agent_version;
2370
  $ct_request->sender_info = $sender_info;
@@ -2627,8 +2625,7 @@ function ct_contact_form_validate() {
2627
  die;
2628
  // Enfold Theme Contact Form. Using $contact_form
2629
  }elseif(!empty($contact_form) && $contact_form == 'enfold_theme_contact_form'){
2630
- echo "<div id='ajaxresponse_1' class='ajaxresponse ajaxresponse_1' style='display: block;'><div id='ajaxresponse_1' class='ajaxresponse ajaxresponse_1'><h3 class='avia-form-success'>Antispam by CleanTalk: ".$ct_result->comment."</h3><a href='.'><-Back</a></div></div>";
2631
- die();
2632
  }else{
2633
  ct_die(null, null);
2634
  }
@@ -2827,99 +2824,4 @@ function ct_print_form($arr,$k)
2827
  }
2828
  }
2829
 
2830
- /**
2831
- * Attaches public scripts and styles.
2832
- */
2833
- function ct_enqueue_scripts_public($hook){
2834
-
2835
- global $cleantalk_plugin_version, $current_user, $ct_data, $ct_options;
2836
-
2837
- if(in_array("administrator", $current_user->roles)){
2838
-
2839
- if(!empty($ct_options['show_check_links'])){
2840
-
2841
- $ajax_nonce = wp_create_nonce( "ct_secret_nonce" );
2842
- $user_token = !empty($ct_data['user_token']) ? $ct_data['user_token'] : null;
2843
-
2844
- wp_localize_script( 'jquery', 'ctPublic', array(
2845
- 'ct_ajax_nonce' => $ajax_nonce,
2846
- 'ct_ajaxurl' => admin_url('admin-ajax.php'),
2847
- 'ct_feedback_msg' => sprintf(__("Feedback has been sent to %sCleanTalk Dashboard%s.", 'cleantalk'), $user_token ? "<a target='_blank' href=https://cleantalk.org/my/show_requests?user_token={$user_token}&cp_mode=antispam>" : '', $user_token ? "</a>" : ''),
2848
- 'ct_feedback_error' => __('Error occured while sending feedback.', 'cleantalk'),
2849
- 'ct_feedback_no_hash' => __('Feedback wasn\'t sent. There is no associated request.', 'cleantalk'),
2850
- 'ct_debug_ajax' => '0'
2851
- ));
2852
-
2853
- wp_enqueue_style ('ct_public_css', plugins_url('/cleantalk-spam-protect/assets/css/cleantalk-public.css'), array(), $cleantalk_plugin_version, 'all');
2854
- wp_enqueue_script('ct_public_js', plugins_url('/cleantalk-spam-protect/assets/js/cleantalk-public.js'), array(), $cleantalk_plugin_version, true);
2855
-
2856
- }
2857
- }
2858
- }
2859
-
2860
- /**
2861
- * Reassign callbackback function for the bootom of comment output.
2862
- */
2863
- function ct_wp_list_comments_args($options){
2864
-
2865
- global $current_user, $ct_options;
2866
-
2867
- if(in_array("administrator", $current_user->roles))
2868
- if(!empty($ct_options['show_check_links']))
2869
- $options['end-callback'] = 'ct_comments_output';
2870
-
2871
- return $options;
2872
- }
2873
-
2874
- /**
2875
- * Callback function for the bootom comment output.
2876
- */
2877
- function ct_comments_output($curr_comment, $param2, $wp_list_comments_args){
2878
-
2879
- $email = $curr_comment->comment_author_email;
2880
- $ip = $curr_comment->comment_author_IP;
2881
- $id = $curr_comment->comment_ID;
2882
-
2883
- $settings_link = '/wp-admin/'.(is_network_admin() ? "settings.php?page=cleantalk" : "options-general.php?page=cleantalk");
2884
-
2885
- echo "<div class='ct_comment_info'>";
2886
-
2887
- echo "<p class='ct_comment_info_title'>".__('Sender info', 'cleantalk')."</p>";
2888
-
2889
- echo "<p class='ct_comment_logo_title'>
2890
- ".__('by', 'cleantalk')." <a href='{$settings_link}' target='_blank'><img class='ct_comment_logo_img' src='".plugins_url()."/cleantalk-spam-protect/inc/images/logo_color.png'> CleanTalk</a>
2891
- </p>";
2892
-
2893
- // Outputs email if exists
2894
- if($email)
2895
- echo "$email"
2896
- ."<a href='https://cleantalk.org/blacklists/$email' target='_blank' title='https://cleantalk.org/blacklists/$email'>"
2897
- ."&nbsp;<img src='".plugins_url()."/cleantalk-spam-protect/inc/images/new_window.gif' border='0' style='float:none'/>"
2898
- ."</a> | ";
2899
- else
2900
- echo __('No email', 'cleantalk').' | ';
2901
-
2902
- // Outputs IP if exists
2903
- if($ip)
2904
- echo "$ip"
2905
- ."<a href='https://cleantalk.org/blacklists/$ip' target='_blank' title='https://cleantalk.org/blacklists/$ip'>"
2906
- ."&nbsp;<img src='".plugins_url()."/cleantalk-spam-protect/inc/images/new_window.gif' border='0' style='float:none'/>"
2907
- ."</a> | ";
2908
- else
2909
- echo __('No IP', 'cleantalk').' | ';
2910
-
2911
- echo "<span commentid='$id' class='ct_this_is ct_this_is_spam' href='#'>".__('Mark as spam', 'cleantalk')."</span>";
2912
- echo "<span commentid='$id' class='ct_this_is ct_this_is_not_spam ct_hidden' href='#'>".__('Unspam', 'cleantalk')."</span>";
2913
- echo "<p class='ct_feedback_wrap'>";
2914
- echo "<span class='ct_feedback_result ct_feedback_result_spam'>".__('Marked as spam.', 'cleantalk')."</span>";
2915
- echo "<span class='ct_feedback_result ct_feedback_result_not_spam'>".__('Marked as not spam.', 'cleantalk')."</span>";
2916
- echo "&nbsp;<span class='ct_feedback_msg'><span>";
2917
- echo "</p>";
2918
-
2919
- echo "</div>";
2920
-
2921
- // Ending comment output
2922
- echo "</{$wp_list_comments_args['style']}>";
2923
- }
2924
-
2925
  ?>
1662
  $ct_request = new CleantalkRequest();
1663
  $ct_request->auth_key = $ct_options['apikey'];
1664
  $ct_request->sender_email = $user_email;
1665
+ $ct_request->sender_ip = $ct->ct_session_ip($_SERVER['REMOTE_ADDR']);
 
1666
  $ct_request->sender_nickname = $sanitized_user_login;
1667
  $ct_request->agent = $ct_agent_version;
1668
  $ct_request->sender_info = $sender_info;
2362
 
2363
  $ct_request->auth_key = $ct_options['apikey'];
2364
  $ct_request->sender_email = $sender_email;
2365
+ $ct_request->sender_ip = $ct->ct_session_ip($_SERVER['REMOTE_ADDR']);
 
2366
  $ct_request->sender_nickname = $sender_nickname;
2367
  $ct_request->agent = $ct_agent_version;
2368
  $ct_request->sender_info = $sender_info;
2625
  die;
2626
  // Enfold Theme Contact Form. Using $contact_form
2627
  }elseif(!empty($contact_form) && $contact_form == 'enfold_theme_contact_form'){
2628
+
 
2629
  }else{
2630
  ct_die(null, null);
2631
  }
2824
  }
2825
  }
2826
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2827
  ?>
inc/cleantalk-rel.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ //< target : http://wp2.host/wp-admin/comment.php?c=26&action=approvecomment&_wpnonce=338ed90533
2
+ //> target : http://wp2.host/wp-admin/comment.php?c=26&action=unapprovecomment&_wpnonce=338ed90533
3
+
4
+ //< data : action=dim-comment&id=26&dimClass=unapproved&_ajax_nonce=338ed90533&new=approved
5
+ //> data : action=dim-comment&id=26&dimClass=unapproved&_ajax_nonce=338ed90533&new=unapproved
6
+
7
+ jQuery(document).ajaxSuccess(function(e, xhr, settings) {
8
+ if(settings['target'].toString().indexOf('action=approvecomment') > -1){
9
+ window.location.reload();
10
+ }
11
+ });
{assets/js → inc}/cleantalk-users-checkspam.js RENAMED
File without changes
inc/cleantalk-users-editscreen.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+ jQuery('#changeit').after(' <a href="users.php?page=ct_check_users" class="button" style="margin:1px 0 0 0; display: inline-block;">'+ctUsersScreen.spambutton_users_text+'</a>' +
3
+ ' <a href="users.php?page=ct_check_users&ct_worked=1" class="button" style="margin:1px 0 0 0; display: inline-block;">'+ctUsersScreen.spambutton_users_text_show+'</a>');
4
+ });
inc/cleantalk.class.php CHANGED
@@ -575,8 +575,9 @@ class Cleantalk {
575
  // Removing non UTF8 characters from request, because non UTF8 or malformed characters break json_encode().
576
  //
577
  foreach ($request as $param => $value) {
578
- if (!preg_match('//u', $value))
579
  $request->{$param} = 'Nulled. Not UTF8 encoded or malformed.';
 
580
  }
581
 
582
  return $request;
@@ -591,9 +592,6 @@ class Cleantalk {
591
  // Convert to array
592
  $data = (array)json_decode(json_encode($data), true);
593
 
594
- $original_url = $url;
595
- $original_data = $data;
596
-
597
  //Cleaning from 'null' values
598
  $tmp_data = array();
599
  foreach($data as $key => $value){
@@ -638,18 +636,13 @@ class Cleantalk {
638
  }
639
  else if ($this->ssl_on && $this->ssl_path!='') {
640
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
641
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
642
  curl_setopt($ch, CURLOPT_CAINFO, $this->ssl_path);
643
  }
644
 
645
  $result = curl_exec($ch);
646
  if (!$result) {
647
  $curl_error = curl_error($ch);
648
- // Use SSL next time, if error occurs.
649
- if(!$this->ssl_on){
650
- $this->ssl_on = true;
651
- return $this->sendRequest($original_data, $original_url, $server_timeout);
652
- }
653
  }
654
 
655
  curl_close($ch);
@@ -731,11 +724,13 @@ class Cleantalk {
731
  $msg->all_headers=json_encode($ct_tmp);
732
  }
733
 
 
 
734
  $si=(array)json_decode($msg->sender_info,true);
735
 
736
- $si['remote_addr'] = $_SERVER['REMOTE_ADDR'];
737
- $msg->x_forwarded_for = @$_SERVER['X_FORWARDED_FOR'];
738
- $msg->x_real_ip = @$_SERVER['X_REAL_IP'];
739
 
740
  $msg->sender_info=json_encode($si);
741
  if (((isset($this->work_url) && $this->work_url !== '') && ($this->server_changed + $this->server_ttl > time()))
@@ -924,11 +919,44 @@ class Cleantalk {
924
  * Get user IP behind proxy server
925
  */
926
  public function ct_session_ip( $data_ip ) {
927
- // Return FALSE if FALSE !?
928
- // if (!preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/", $data_ip)) {
929
- // error_log(__FUNCTION__ . " " . "condition");
930
- // return $data_ip;
931
- // }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
932
  return cleantalk_get_real_ip();
933
  }
934
 
@@ -1204,34 +1232,30 @@ if(!function_exists('apache_request_headers')){
1204
  }
1205
  }
1206
 
1207
- function cleantalk_get_real_ip(){
1208
-
1209
- // Getting headers
1210
- $headers = function_exists('apache_request_headers') ? apache_request_headers() : $_SERVER;
1211
-
1212
- // Getting IP for validating
1213
- if (array_key_exists( 'X-Forwarded-For', $headers )){
1214
- $ip = explode(",", trim($headers['X-Forwarded-For']));
1215
- $ip = trim($the_ip[0]);
1216
- }elseif(array_key_exists( 'HTTP_X_FORWARDED_FOR', $headers)){
1217
- $ip = explode(",", trim($headers['HTTP_X_FORWARDED_FOR']));
1218
- $ip = trim($the_ip[0]);
1219
- }else{
1220
- $ip = $_SERVER['REMOTE_ADDR'];
1221
  }
1222
-
1223
- // Validating IP
1224
- // IPv4
1225
- if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)){
1226
- $the_ip = $ip;
1227
- // IPv6
1228
- }elseif(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)){
1229
- $the_ip = $ip;
1230
- // Unknown
1231
- }else{
1232
- $the_ip = null;
 
 
 
 
 
 
1233
  }
1234
-
1235
  return $the_ip;
1236
  }
1237
 
575
  // Removing non UTF8 characters from request, because non UTF8 or malformed characters break json_encode().
576
  //
577
  foreach ($request as $param => $value) {
578
+ if (!preg_match('//u', $value)) {
579
  $request->{$param} = 'Nulled. Not UTF8 encoded or malformed.';
580
+ }
581
  }
582
 
583
  return $request;
592
  // Convert to array
593
  $data = (array)json_decode(json_encode($data), true);
594
 
 
 
 
595
  //Cleaning from 'null' values
596
  $tmp_data = array();
597
  foreach($data as $key => $value){
636
  }
637
  else if ($this->ssl_on && $this->ssl_path!='') {
638
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
639
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, true);
640
  curl_setopt($ch, CURLOPT_CAINFO, $this->ssl_path);
641
  }
642
 
643
  $result = curl_exec($ch);
644
  if (!$result) {
645
  $curl_error = curl_error($ch);
 
 
 
 
 
646
  }
647
 
648
  curl_close($ch);
724
  $msg->all_headers=json_encode($ct_tmp);
725
  }
726
 
727
+ //$msg->remote_addr=$_SERVER['REMOTE_ADDR'];
728
+ //$msg->sender_info['remote_addr']=$_SERVER['REMOTE_ADDR'];
729
  $si=(array)json_decode($msg->sender_info,true);
730
 
731
+ $si['remote_addr']=$_SERVER['REMOTE_ADDR'];
732
+ $msg->x_forwarded_for=@$_SERVER['X_FORWARDED_FOR'];
733
+ $msg->x_real_ip=@$_SERVER['X_REAL_IP'];
734
 
735
  $msg->sender_info=json_encode($si);
736
  if (((isset($this->work_url) && $this->work_url !== '') && ($this->server_changed + $this->server_ttl > time()))
919
  * Get user IP behind proxy server
920
  */
921
  public function ct_session_ip( $data_ip ) {
922
+ if (!$data_ip || !preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/", $data_ip)) {
923
+ return $data_ip;
924
+ }
925
+ /*if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
926
+
927
+ $forwarded_ip = explode(",", $_SERVER['HTTP_X_FORWARDED_FOR']);
928
+
929
+ // Looking for first value in the list, it should be sender real IP address
930
+ if (!preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/", $forwarded_ip[0])) {
931
+ return $data_ip;
932
+ }
933
+
934
+ $private_src_ip = false;
935
+ $private_nets = array(
936
+ '10.0.0.0/8',
937
+ '127.0.0.0/8',
938
+ '176.16.0.0/12',
939
+ '192.168.0.0/16',
940
+ );
941
+
942
+ foreach ($private_nets as $v) {
943
+
944
+ // Private IP found
945
+ if ($private_src_ip) {
946
+ continue;
947
+ }
948
+
949
+ if ($this->net_match($v, $data_ip)) {
950
+ $private_src_ip = true;
951
+ }
952
+ }
953
+ if ($private_src_ip) {
954
+ // Taking first IP from the list HTTP_X_FORWARDED_FOR
955
+ $data_ip = $forwarded_ip[0];
956
+ }
957
+ }
958
+
959
+ return $data_ip;*/
960
  return cleantalk_get_real_ip();
961
  }
962
 
1232
  }
1233
  }
1234
 
1235
+ function cleantalk_get_real_ip()
1236
+ {
1237
+ if ( function_exists( 'apache_request_headers' ) )
1238
+ {
1239
+ $headers = apache_request_headers();
 
 
 
 
 
 
 
 
 
1240
  }
1241
+ else
1242
+ {
1243
+ $headers = $_SERVER;
1244
+ }
1245
+ if ( array_key_exists( 'X-Forwarded-For', $headers ) )
1246
+ {
1247
+ $the_ip=explode(",", trim($headers['X-Forwarded-For']));
1248
+ $the_ip = trim($the_ip[0]);
1249
+ }
1250
+ elseif ( array_key_exists( 'HTTP_X_FORWARDED_FOR', $headers ))
1251
+ {
1252
+ $the_ip=explode(",", trim($headers['HTTP_X_FORWARDED_FOR']));
1253
+ $the_ip = trim($the_ip[0]);
1254
+ }
1255
+ else
1256
+ {
1257
+ $the_ip = filter_var( $_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 );
1258
  }
 
1259
  return $the_ip;
1260
  }
1261
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: znaeff, shagimuratov, serge00, sartemd174, amagsumov
3
  Tags: antispam, protection, contact form, comments, spam
4
  Requires at least: 3.0
5
  Tested up to: 4.8
6
- Stable tag: 5.67
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce spam. Forget spam.
@@ -501,14 +501,6 @@ We develop plugin to do it as optimized as possible, CleanTalk doesn't downgrade
501
  1. The Dashboard with a map of most spam active countries per your account.
502
 
503
  == Changelog ==
504
- = 5.67 June 1 2017 =
505
- * Integrations: Enfold theme, Convertplug.
506
- * Links to check for Emails/IP for spam.
507
- * Control comments and feedback about them from public post's page.
508
- * Improved connection stability with cloud service.
509
- * Spam protection improved.
510
- * Other small fixes.
511
-
512
  = 5.66 May 23 2017 =
513
  * Spam protection improved.
514
  * Major fixes for users and comments spam check.
@@ -1349,14 +1341,6 @@ We develop plugin to do it as optimized as possible, CleanTalk doesn't downgrade
1349
  * First version
1350
 
1351
  == Upgrade Notice ==
1352
- = 5.67 June 1 2017 =
1353
- * Integrations: Enfold theme, Convertplug.
1354
- * Links to check for Emails/IP for spam.
1355
- * Control comments and feedback about them from public post's page.
1356
- * Improved connection stability with cloud service.
1357
- * Spam protection improved.
1358
- * Other small fixes.
1359
-
1360
  = 5.66 May 23 2017 =
1361
  * Spam protection improved.
1362
  * Major fixes for users and comments spam check.
3
  Tags: antispam, protection, contact form, comments, spam
4
  Requires at least: 3.0
5
  Tested up to: 4.8
6
+ Stable tag: 5.66
7
  License: GPLv2
8
 
9
  Spam protection, antispam, all-in-one, premium plugin. No spam comments & users, no spam contact form & WooCommerce spam. Forget spam.
501
  1. The Dashboard with a map of most spam active countries per your account.
502
 
503
  == Changelog ==
 
 
 
 
 
 
 
 
504
  = 5.66 May 23 2017 =
505
  * Spam protection improved.
506
  * Major fixes for users and comments spam check.
1341
  * First version
1342
 
1343
  == Upgrade Notice ==
 
 
 
 
 
 
 
 
1344
  = 5.66 May 23 2017 =
1345
  * Spam protection improved.
1346
  * Major fixes for users and comments spam check.