Payment Form for PayPal Pro - Version 1.1.27

Version Description

  • New visual color pickers for captcha preferences

=

Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Payment Form for PayPal Pro
Version 1.1.27
Comparing to
See all releases

Code changes from version 1.1.26 to 1.1.27

Files changed (3) hide show
  1. README.txt +5 -2
  2. cp_ppp.php +3 -3
  3. cp_ppp_admin_int.php +8 -4
README.txt CHANGED
@@ -205,7 +205,10 @@ If that doesn't work please check if your hosting service requires some specific
205
  = 1.1.26 =
206
  * Tested and compatible with WP 4.8
207
 
 
 
 
208
  == Upgrade Notice ==
209
 
210
- = 1.1.26 =
211
- * Tested and compatible with WP 4.8
205
  = 1.1.26 =
206
  * Tested and compatible with WP 4.8
207
 
208
+ = 1.1.27 =
209
+ * New visual color pickers for captcha preferences
210
+
211
  == Upgrade Notice ==
212
 
213
+ = 1.1.27 =
214
+ * New visual color pickers for captcha preferences
cp_ppp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Payment Form for PayPal Pro
4
  Plugin URI: http://wordpress.dwbooster.com/forms/paypal-payment-pro-form
5
  Description: Payment Form for PayPal Pro to accept credit cards directly into your website. Official PayPal Partner.
6
- Version: 1.1.26
7
  Author: CodePeople
8
  Author URI: http://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
9
  License: GPL
@@ -1361,8 +1361,8 @@ function cp_ppp_save_options()
1361
  'cv_max_font_size' => $_POST['cv_max_font_size'],
1362
  'cv_noise' => $_POST['cv_noise'],
1363
  'cv_noise_length' => $_POST['cv_noise_length'],
1364
- 'cv_background' => $_POST['cv_background'],
1365
- 'cv_border' => $_POST['cv_border'],
1366
  'cv_text_enter_valid_captcha' => $_POST['cv_text_enter_valid_captcha']
1367
  );
1368
  $wpdb->update ( $wpdb->prefix.CP_PPP_FORMS_TABLE, $data, array( 'id' => CP_PPP_ID ));
3
  Plugin Name: Payment Form for PayPal Pro
4
  Plugin URI: http://wordpress.dwbooster.com/forms/paypal-payment-pro-form
5
  Description: Payment Form for PayPal Pro to accept credit cards directly into your website. Official PayPal Partner.
6
+ Version: 1.1.27
7
  Author: CodePeople
8
  Author URI: http://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
9
  License: GPL
1361
  'cv_max_font_size' => $_POST['cv_max_font_size'],
1362
  'cv_noise' => $_POST['cv_noise'],
1363
  'cv_noise_length' => $_POST['cv_noise_length'],
1364
+ 'cv_background' => str_replace('#','',$_POST['cv_background']),
1365
+ 'cv_border' => str_replace('#','',$_POST['cv_border']),
1366
  'cv_text_enter_valid_captcha' => $_POST['cv_text_enter_valid_captcha']
1367
  );
1368
  $wpdb->update ( $wpdb->prefix.CP_PPP_FORMS_TABLE, $data, array( 'id' => CP_PPP_ID ));
cp_ppp_admin_int.php CHANGED
@@ -400,6 +400,10 @@ then use the <a href="http://wordpress.dwbooster.com/forms/cp-contact-form-with-
400
  {
401
  var d=new Date();
402
  var f = document.cpformconf;
 
 
 
 
403
  var qs = "&width="+f.cv_width.value;
404
  qs += "&height="+f.cv_height.value;
405
  qs += "&letter_count="+f.cv_chars.value;
@@ -407,8 +411,8 @@ then use the <a href="http://wordpress.dwbooster.com/forms/cp-contact-form-with-
407
  qs += "&max_size="+f.cv_max_font_size.value;
408
  qs += "&noise="+f.cv_noise.value;
409
  qs += "&noiselength="+f.cv_noise_length.value;
410
- qs += "&bcolor="+f.cv_background.value;
411
- qs += "&border="+f.cv_border.value;
412
  qs += "&font="+f.cv_font.options[f.cv_font.selectedIndex].value;
413
  qs += "&rand="+d;
414
 
@@ -642,9 +646,9 @@ then use the <a href="http://wordpress.dwbooster.com/forms/cp-contact-form-with-
642
 
643
  <tr valign="top">
644
  <th scope="row">Background:</th>
645
- <td><input type="text" name="cv_background" size="10" value="<?php echo esc_attr(cp_ppp_get_option('cv_background', CP_PPP_DEFAULT_cv_background)); ?>" onblur="generateCaptcha();" /></td>
646
  <th scope="row">Border:</th>
647
- <td><input type="text" name="cv_border" size="10" value="<?php echo esc_attr(cp_ppp_get_option('cv_border', CP_PPP_DEFAULT_cv_border)); ?>" onblur="generateCaptcha();" /></td>
648
  </tr>
649
 
650
  <tr valign="top">
400
  {
401
  var d=new Date();
402
  var f = document.cpformconf;
403
+ var cv_background = f.cv_background.value;
404
+ cv_background = cv_background.replace('#','');
405
+ var cv_border = f.cv_border.value;
406
+ cv_border = cv_border.replace('#','');
407
  var qs = "&width="+f.cv_width.value;
408
  qs += "&height="+f.cv_height.value;
409
  qs += "&letter_count="+f.cv_chars.value;
411
  qs += "&max_size="+f.cv_max_font_size.value;
412
  qs += "&noise="+f.cv_noise.value;
413
  qs += "&noiselength="+f.cv_noise_length.value;
414
+ qs += "&bcolor="+cv_background;
415
+ qs += "&border="+cv_border;
416
  qs += "&font="+f.cv_font.options[f.cv_font.selectedIndex].value;
417
  qs += "&rand="+d;
418
 
646
 
647
  <tr valign="top">
648
  <th scope="row">Background:</th>
649
+ <td><input type="color" name="cv_background" size="10" value="#<?php echo esc_attr(cp_ppp_get_option('cv_background', CP_PPP_DEFAULT_cv_background)); ?>" onchange="generateCaptcha();" /></td>
650
  <th scope="row">Border:</th>
651
+ <td><input type="color" name="cv_border" size="10" value="#<?php echo esc_attr(cp_ppp_get_option('cv_border', CP_PPP_DEFAULT_cv_border)); ?>" onchange="generateCaptcha();" /></td>
652
  </tr>
653
 
654
  <tr valign="top">