Easy Forms for MailChimp - Version 5.0.7

Version Description

  • September 19, 2014 =

Fixes * Security Vulnerability patched - props @g0blinResearch for privately disclosing the issue

Download this release

Release Info

Developer eherman24
Plugin Icon 128x128 Easy Forms for MailChimp
Version 5.0.7
Comparing to
See all releases

Code changes from version 5.0.6 to 5.0.7

lib/lib.ajax.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php
2
  add_action('wp_ajax_yks_mailchimp_form', 'ykseme_ajaxActions');
3
- add_action('wp_ajax_nopriv_yks_mailchimp_form', 'ykseme_ajaxActions');
 
4
 
5
  function ykseme_ajaxActions()
6
  {
@@ -8,5 +9,13 @@ function ykseme_ajaxActions()
8
  require_once YKSEME_PATH.'process/ajax.php';
9
  exit;
10
  }
 
 
 
 
 
 
 
 
11
 
12
  ?>
1
  <?php
2
  add_action('wp_ajax_yks_mailchimp_form', 'ykseme_ajaxActions');
3
+
4
+ add_action('wp_ajax_nopriv_yks_mailchimp_form', 'ykseme_publicAjaxActions');
5
 
6
  function ykseme_ajaxActions()
7
  {
9
  require_once YKSEME_PATH.'process/ajax.php';
10
  exit;
11
  }
12
+
13
+
14
+ function ykseme_publicAjaxActions()
15
+ {
16
+ global $yksemeBase;
17
+ require_once YKSEME_PATH.'process/public.ajax.php';
18
+ exit;
19
+ }
20
 
21
  ?>
process/ajax.php CHANGED
@@ -78,7 +78,6 @@ case 'list_delete':
78
  }
79
  else echo '-1';
80
  break;
81
-
82
  case 'list_import':
83
  $list = $yksemeBase->importList($_POST['id']);
84
  if($list)
@@ -87,15 +86,13 @@ case 'list_import':
87
  }
88
  else echo '-1';
89
  break;
90
-
91
- case 'frontend_submit_form':
92
- $action = $yksemeBase->addUserToMailchimp($_POST);
93
- if($action == "done")
94
  {
95
- echo '1';
96
- } else {
97
- echo $action;
98
  }
 
99
  break;
100
 
101
  case 'notice_hide':
@@ -182,6 +179,20 @@ case 'yks_get_bounced_email_data':
182
  case 'yks_get_unsubscribed_email_data':
183
  $get_geo_opens = $yksemeBase->getCampaignUnsubscribeData($_POST);
184
  echo '1';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  break;
186
 
187
  }
78
  }
79
  else echo '-1';
80
  break;
 
81
  case 'list_import':
82
  $list = $yksemeBase->importList($_POST['id']);
83
  if($list)
86
  }
87
  else echo '-1';
88
  break;
89
+ case 'merge_variables_reImport':
90
+ $mv = $yksemeBase->reImportMergeVariables($_POST['id']);
91
+ if($mv)
 
92
  {
93
+ echo json_encode($mv);
 
 
94
  }
95
+ else echo '-1';
96
  break;
97
 
98
  case 'notice_hide':
179
  case 'yks_get_unsubscribed_email_data':
180
  $get_geo_opens = $yksemeBase->getCampaignUnsubscribeData($_POST);
181
  echo '1';
182
+ break;
183
+
184
+ case 'yks_mc_get_form_preview':
185
+ $get_form_preview = $yksemeBase->getFormPreview($_POST['shortcode'],$_POST['form_title'],$_POST['form_bg_color'],$_POST['form_text_color'],$_POST['form_submit_button_color'],$_POST['form_submit_button_text_color'],$_POST['form_padding'],$_POST['form_width'],$_POST['form_alignment']);
186
+ echo $get_form_preview;
187
+ break;
188
+
189
+ case 'yks_mc_get_custom_template_preview':
190
+ $get_template_screenshot_preview = $yksemeBase->getTemplateScreenshot($_POST['template_name'] , $_POST['selected_form_screenshot'] , $_POST['template_path'] );
191
+ echo $get_template_screenshot_preview;
192
+ break;
193
+
194
+ case 'copy_user_templates_to_theme':
195
+ $create_user_mailchimp_boilerplate = $yksemeBase->copyUserTemplatesToUserTheme();
196
  break;
197
 
198
  }
process/public.ajax.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ This page gets included from lib.ajax and then processes
4
+ the post. This page should never get called by itself.
5
+ This page houses the ajax functions fired from the frontend
6
+ */
7
+ if(!empty($_POST)
8
+ && isset($_POST['form_action']))
9
+ {
10
+ switch($_POST['form_action'])
11
+ {
12
+
13
+ case 'frontend_submit_form':
14
+ $action = $yksemeBase->addUserToMailchimp($_POST);
15
+ if($action == "done")
16
+ {
17
+ echo '1';
18
+ } else {
19
+ echo $action;
20
+ }
21
+ break;
22
+
23
+ }
24
+ }
25
+ ?>
readme.md CHANGED
@@ -417,6 +417,9 @@ These functions should be used in conjunction with the `yikes_mc_get_form_data`
417
 
418
  Changes
419
  ===========
 
 
 
420
  ### 5.0.6 - August 22, 2014
421
  * fix bug with nonce security check when using table 'Preferred Form Layout' setting
422
 
417
 
418
  Changes
419
  ===========
420
+ ### 5.0.7 - September 19, 2014
421
+ * Security Vulnerability patched - props @g0blinResearch for privately disclosing the issue
422
+
423
  ### 5.0.6 - August 22, 2014
424
  * fix bug with nonce security check when using table 'Preferred Form Layout' setting
425
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yikesinc.com
4
  Tags: mailchimp, marketing, email, mailing lists, newsletter, sign up, forms, sign up form
5
  Requires at least: 3.0
6
  Tested up to: 4.0
7
- Stable tag: 5.0.6
8
  License: GPLv2 or later
9
 
10
  Easy MailChimp Forms allows you to painlessly add MailChimp sign up forms to your WordPress site and track user activity with interactive reports.
@@ -456,16 +456,19 @@ These functions should be used in conjunction with the `yikes_mc_get_form_data`
456
 
457
  == Changelog ==
458
 
459
- = 5.0.6 - August 22, 2014 =
460
 
461
  **Fixes**
 
 
 
462
 
 
463
  * fix bug with nonce security check when using table 'Preferred Form Layout' setting
464
 
465
  = 5.0.5 - August 21, 2014 =
466
 
467
  **Fixes**
468
-
469
  - added `stripslashes()` to the following settings fields :
470
  - Single Opt-in Confirmation Message
471
  - Double Opt-in Confirmation Message
@@ -635,16 +638,19 @@ These functions should be used in conjunction with the `yikes_mc_get_form_data`
635
 
636
  == Upgrade Notice ==
637
 
638
- = 5.0.6 - August 22, 2014 =
639
 
640
  **Fixes**
 
641
 
 
 
 
642
  * fix bug with nonce security check when using table 'Preferred Form Layout' setting
643
 
644
  = 5.0.5 - August 21, 2014 =
645
 
646
  **Fixes**
647
-
648
  - added `stripslashes()` to the following settings fields :
649
  - Single Opt-in Confirmation Message
650
  - Double Opt-in Confirmation Message
@@ -652,7 +658,6 @@ These functions should be used in conjunction with the `yikes_mc_get_form_data`
652
  - Opt-in Checkbox Text
653
 
654
  **Updates**
655
-
656
  - Updated readme FAQ section
657
 
658
  = 5.0.4 - August 6, 2014 =
4
  Tags: mailchimp, marketing, email, mailing lists, newsletter, sign up, forms, sign up form
5
  Requires at least: 3.0
6
  Tested up to: 4.0
7
+ Stable tag: 5.0.7
8
  License: GPLv2 or later
9
 
10
  Easy MailChimp Forms allows you to painlessly add MailChimp sign up forms to your WordPress site and track user activity with interactive reports.
456
 
457
  == Changelog ==
458
 
459
+ = 5.0.7 - September 19, 2014 =
460
 
461
  **Fixes**
462
+ * Security Vulnerability patched - props @g0blinResearch for privately disclosing the issue
463
+
464
+ = 5.0.6 - August 22, 2014 =
465
 
466
+ **Fixes**
467
  * fix bug with nonce security check when using table 'Preferred Form Layout' setting
468
 
469
  = 5.0.5 - August 21, 2014 =
470
 
471
  **Fixes**
 
472
  - added `stripslashes()` to the following settings fields :
473
  - Single Opt-in Confirmation Message
474
  - Double Opt-in Confirmation Message
638
 
639
  == Upgrade Notice ==
640
 
641
+ = 5.0.7 - September 19, 2014 =
642
 
643
  **Fixes**
644
+ * Security Vulnerability patched - props @g0blinResearch for privately disclosing the issue
645
 
646
+ = 5.0.6 - August 22, 2014 =
647
+
648
+ **Fixes**
649
  * fix bug with nonce security check when using table 'Preferred Form Layout' setting
650
 
651
  = 5.0.5 - August 21, 2014 =
652
 
653
  **Fixes**
 
654
  - added `stripslashes()` to the following settings fields :
655
  - Single Opt-in Confirmation Message
656
  - Double Opt-in Confirmation Message
658
  - Opt-in Checkbox Text
659
 
660
  **Updates**
 
661
  - Updated readme FAQ section
662
 
663
  = 5.0.4 - August 6, 2014 =
yikes-inc-easy-mailchimp-extender.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Easy MailChimp Forms
5
  Plugin URI: http://www.yikesinc.com/services/yikes-inc-easy-mailchimp-extender/
6
  Description: Mailchimp integration in the form of a shortcode, php snippet or widget. Now track account status, campaign stats, view subscribers and so much more!
7
- Version: 5.0.6
8
  Author: YIKES Inc
9
  Author URI: http://yikesinc.com
10
  License: GPL2
@@ -30,7 +30,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
 
31
  /** Configuration **/
32
  if(!defined('YKSEME_DEBUG')) define('YKSEME_DEBUG', false);
33
- if(!defined('YKSEME_VERSION_CURRENT')) define('YKSEME_VERSION_CURRENT', '5.0.6');
34
  if(!defined('YKSEME_REQ_PHP')) define('YKSEME_REQ_PHP', '5.0');
35
  if(!defined('YKSEME_AUTHOR')) define('YKSEME_AUTHOR', 'YIKES Inc');
36
  if(!defined('YKSEME_SITE')) define('YKSEME_SITE', site_url().'/');
4
  Plugin Name: Easy MailChimp Forms
5
  Plugin URI: http://www.yikesinc.com/services/yikes-inc-easy-mailchimp-extender/
6
  Description: Mailchimp integration in the form of a shortcode, php snippet or widget. Now track account status, campaign stats, view subscribers and so much more!
7
+ Version: 5.0.7
8
  Author: YIKES Inc
9
  Author URI: http://yikesinc.com
10
  License: GPL2
30
 
31
  /** Configuration **/
32
  if(!defined('YKSEME_DEBUG')) define('YKSEME_DEBUG', false);
33
+ if(!defined('YKSEME_VERSION_CURRENT')) define('YKSEME_VERSION_CURRENT', '5.0.7');
34
  if(!defined('YKSEME_REQ_PHP')) define('YKSEME_REQ_PHP', '5.0');
35
  if(!defined('YKSEME_AUTHOR')) define('YKSEME_AUTHOR', 'YIKES Inc');
36
  if(!defined('YKSEME_SITE')) define('YKSEME_SITE', site_url().'/');