Spam protection, AntiSpam, FireWall by CleanTalk - Version 5.3

Version Description

2015-04-13 = * Added anti-spam protection for Divi theme contact forms * Added anti-spam protection for MyMail contact forms * Added anti-spam protection for MailPoet Newsletters * Some interface and functionality changes in backend

Download this release

Release Info

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

Code changes from version 5.3-dev to 5.3

Files changed (4) hide show
  1. cleantalk-ajax.php +0 -63
  2. cleantalk-public.php +1 -1
  3. cleantalk.php +1 -1
  4. readme.txt +2 -2
cleantalk-ajax.php CHANGED
@@ -41,10 +41,6 @@ add_action( 'wp_ajax_request_appointment', 'ct_sm_ra',1 );
41
  add_action( 'wp_ajax_nopriv_zn_do_login', 'ct_zn_do_login',1 );
42
  add_action( 'wp_ajax_zn_do_login', 'ct_zn_do_login',1 );
43
 
44
- /*hooks for clean and simple form */
45
- add_action( 'wp_ajax_nopriv_cscf-submitform', 'ct_cscf_submitform',1 );
46
- add_action( 'wp_ajax_cscf-submitform', 'ct_cscf_submitform',1 );
47
-
48
 
49
  function ct_validate_email_ajaxlogin($email=null, $is_ajax=true)
50
  {
@@ -536,65 +532,6 @@ function ct_zn_do_login()
536
  }
537
  }
538
 
539
- function ct_cscf_submitform()
540
- {
541
- require_once(CLEANTALK_PLUGIN_DIR . 'cleantalk-public.php');
542
- global $ct_agent_version, $ct_checkjs_register_form, $ct_session_request_id_label, $ct_session_register_ok_label, $bp, $ct_signup_done, $ct_formtime_label, $ct_negative_comment, $ct_options, $ct_data;
543
-
544
- $ct_data=ct_get_data();
545
-
546
- $ct_options=ct_get_options();
547
-
548
- $sender_email = null;
549
- $message = '';
550
-
551
- if(isset($_POST['cscf']['confirm-email']))
552
- {
553
- $tmp=$_POST['cscf']['confirm-email'];
554
- $_POST['cscf']['confirm-email']=1;
555
- }
556
-
557
- ct_get_fields($sender_email,$message,$_POST);
558
-
559
- if(isset($_POST['cscf']['confirm-email']))
560
- {
561
- $_POST['cscf']['confirm-email']=$tmp;
562
- }
563
-
564
-
565
- if($sender_email!=null)
566
- {
567
- $checkjs = js_test('ct_checkjs', $_COOKIE, true);
568
- $submit_time = submit_time_test();
569
- $sender_info = get_sender_info();
570
- $sender_info['post_checkjs_passed']=$checkjs;
571
-
572
- $sender_info = json_encode($sender_info);
573
- if ($sender_info === false)
574
- {
575
- $sender_info= '';
576
- }
577
-
578
- $ct_base_call_result = ct_base_call(array(
579
- 'message' => $message,
580
- 'example' => null,
581
- 'sender_email' => $sender_email,
582
- 'sender_nickname' => null,
583
- 'sender_info' => $sender_info,
584
- 'post_info'=>null,
585
- 'checkjs' => $checkjs));
586
-
587
- $ct = $ct_base_call_result['ct'];
588
- $ct_result = $ct_base_call_result['ct_result'];
589
- if ($ct_result->allow == 0)
590
- {
591
- $result=Array('sent'=>true,'valid'=>false,'errorlist'=>Array('name'=>$ct_result->comment));
592
- print json_encode($result);
593
- die();
594
- }
595
- }
596
- }
597
-
598
 
599
  function ct_get_fields(&$email,&$message,$arr)
600
  {
41
  add_action( 'wp_ajax_nopriv_zn_do_login', 'ct_zn_do_login',1 );
42
  add_action( 'wp_ajax_zn_do_login', 'ct_zn_do_login',1 );
43
 
 
 
 
 
44
 
45
  function ct_validate_email_ajaxlogin($email=null, $is_ajax=true)
46
  {
532
  }
533
  }
534
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
535
 
536
  function ct_get_fields(&$email,&$message,$arr)
537
  {
cleantalk-public.php CHANGED
@@ -4,7 +4,7 @@
4
  * Init functions
5
  * @return mixed[] Array of options
6
  */
7
- function cleantalk_init() {
8
  global $ct_wplp_result_label, $ct_jp_comments, $ct_post_data_label, $ct_post_data_authnet_label, $ct_formtime_label, $ct_direct_post, $ct_options, $ct_data;
9
 
10
  $ct_options = ct_get_options();
4
  * Init functions
5
  * @return mixed[] Array of options
6
  */
7
+ function ct_init() {
8
  global $ct_wplp_result_label, $ct_jp_comments, $ct_post_data_label, $ct_post_data_authnet_label, $ct_formtime_label, $ct_direct_post, $ct_options, $ct_data;
9
 
10
  $ct_options = ct_get_options();
cleantalk.php CHANGED
@@ -55,7 +55,7 @@ if(!defined('CLEANTALK_PLUGIN_DIR')){
55
  require_once(CLEANTALK_PLUGIN_DIR . 'cleantalk-public.php');
56
 
57
  // Init action.
58
- add_action('init', 'cleantalk_init', 1);
59
 
60
  // Hourly run hook
61
  add_action('ct_hourly_event_hook', 'ct_do_this_hourly');
55
  require_once(CLEANTALK_PLUGIN_DIR . 'cleantalk-public.php');
56
 
57
  // Init action.
58
+ add_action('init', 'ct_init', 1);
59
 
60
  // Hourly run hook
61
  add_action('ct_hourly_event_hook', 'ct_do_this_hourly');
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === Anti-spam by CleanTalk - No Captcha, no comments & registrations spam ===
2
  Contributors: znaeff, shagimuratov, vlad-cleantalk
3
- Tags: akismet, anti-spam, antispam, bbpress spam, buddypress spam, captcha antispam, cf7 spam, comments spam, contact form spam, fast secure contact form spam, form, Formidable spam, jetpack spam, landing pages, math, registration spam, s2member spam, signup spam, spam, spammers, spammy, WooCommerce spam, wordpress spam, booking spam, order spam, subscriptions spam, comments, gravity spam, gravity forms spam, widget, widget antispam
4
  Requires at least: 3.0
5
- Tested up to: 4.1.1
6
  Stable tag: 5.3
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
1
  === Anti-spam by CleanTalk - No Captcha, no comments & registrations spam ===
2
  Contributors: znaeff, shagimuratov, vlad-cleantalk
3
+ Tags: akismet, anti-spam, antispam, bbpress spam, buddypress spam, captcha antispam, cf7 spam, comments spam, contact form spam, form, Formidable spam, jetpack spam, math, registration spam, s2member spam, signup spam, spam, spammers, spammy, WooCommerce spam, wordpress spam, booking spam, order spam, subscriptions spam, comments, gravity spam, gravity forms spam, widget, widget antispam, registration
4
  Requires at least: 3.0
5
+ Tested up to: 4.2
6
  Stable tag: 5.3
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html