Payment Form for PayPal Pro - Version 1.1.21

Version Description

  • Fixed IP address DB structure

=

Download this release

Release Info

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

Code changes from version 1.1.20 to 1.1.21

Files changed (2) hide show
  1. README.txt +5 -2
  2. cp_ppp.php +3 -2
README.txt CHANGED
@@ -187,7 +187,10 @@ If that doesn't work please check if your hosting service requires some specific
187
  = 1.1.20 =
188
  * Fixed magic quotes issue
189
 
 
 
 
190
  == Upgrade Notice ==
191
 
192
- = 1.1.20 =
193
- * Fixed magic quotes issue
187
  = 1.1.20 =
188
  * Fixed magic quotes issue
189
 
190
+ = 1.1.21 =
191
+ * Fixed IP address DB structure
192
+
193
  == Upgrade Notice ==
194
 
195
+ = 1.1.21 =
196
+ * Fixed IP address DB structure
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.20
7
  Author: CodePeople.net
8
  Author URI: http://codepeople.net
9
  License: GPL
@@ -161,7 +161,7 @@ function _cp_ppp_install() {
161
  id mediumint(9) NOT NULL AUTO_INCREMENT,
162
  formid INT NOT NULL,
163
  time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
164
- ipaddr VARCHAR(32) DEFAULT '' NOT NULL,
165
  notifyto VARCHAR(250) DEFAULT '' NOT NULL,
166
  data mediumtext,
167
  paypal_post mediumtext,
@@ -903,6 +903,7 @@ function cp_ppp_check_posted_data() {
903
 
904
  // insert into database
905
  //---------------------------
 
906
  $to = cp_ppp_get_option('cu_user_email_field', CP_PPP_DEFAULT_cu_user_email_field).$sequence;
907
  $rows_affected = $wpdb->insert( CP_PPP_POSTS_TABLE_NAME, array( 'formid' => CP_PPP_ID,
908
  'time' => current_time('mysql'),
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.21
7
  Author: CodePeople.net
8
  Author URI: http://codepeople.net
9
  License: GPL
161
  id mediumint(9) NOT NULL AUTO_INCREMENT,
162
  formid INT NOT NULL,
163
  time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
164
+ ipaddr VARCHAR(250) DEFAULT '' NOT NULL,
165
  notifyto VARCHAR(250) DEFAULT '' NOT NULL,
166
  data mediumtext,
167
  paypal_post mediumtext,
903
 
904
  // insert into database
905
  //---------------------------
906
+ $wpdb->query("ALTER TABLE ".CP_PPP_POSTS_TABLE_NAME." CHANGE `ipaddr` `ipaddr` VARCHAR(250)");
907
  $to = cp_ppp_get_option('cu_user_email_field', CP_PPP_DEFAULT_cu_user_email_field).$sequence;
908
  $rows_affected = $wpdb->insert( CP_PPP_POSTS_TABLE_NAME, array( 'formid' => CP_PPP_ID,
909
  'time' => current_time('mysql'),