Payment Form for PayPal Pro - Version 1.1.39

Version Description

  • Database creating encoding fix

=

Download this release

Release Info

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

Code changes from version 1.1.38 to 1.1.39

Files changed (3) hide show
  1. README.txt +5 -2
  2. cp-feedback.php +6 -1
  3. cp_ppp.php +6 -4
README.txt CHANGED
@@ -245,7 +245,10 @@ A: In all plugin versions you can turn off IP tracking to avoid saving that user
245
  = 1.1.38 =
246
  * Fixed bug in activation process
247
 
 
 
 
248
  == Upgrade Notice ==
249
 
250
- = 1.1.38 =
251
- * Fixed bug in activation process
245
  = 1.1.38 =
246
  * Fixed bug in activation process
247
 
248
+ = 1.1.39 =
249
+ * Database creating encoding fix
250
+
251
  == Upgrade Notice ==
252
 
253
+ = 1.1.39 =
254
+ * Database creating encoding fix
cp-feedback.php CHANGED
@@ -6,6 +6,9 @@ $cppffppp_plugslug = 'payment-form-for-paypal-pro';
6
  $cppffppp_supportlink = 'https://wordpress.dwbooster.com/support';
7
  $cppffppp_supportlink_full = $cppffppp_supportlink . '?priority-support=yes';
8
 
 
 
 
9
  function cppffppp_feedback_insert_adminScripts($hook) {
10
  if( 'plugins.php' == $hook )
11
  {
@@ -20,9 +23,10 @@ function cppffppp_feedback_insert_adminScripts($hook) {
20
 
21
  // This function is used only if explicitly accepted (opt-in) by the user
22
  function cppffppp_feedback() {
23
- global $cppffppp_plugfile;
24
  $cppffppp_plugin_data = get_plugin_data( dirname(__FILE__).'/'.$cppffppp_plugfile );
25
  $cppffppp_plugin_version = $cppffppp_plugin_data['Version'];
 
26
  $data = array(
27
  'answer' => urlencode(@$_POST["answer"]),
28
  'otherplugin' => urlencode(@$_POST["opinfo"]),
@@ -30,6 +34,7 @@ function cppffppp_feedback() {
30
  'plugin' => urlencode($cppffppp_plugin_data['Name']),
31
  'pluginv' => urlencode($cppffppp_plugin_version),
32
  'wordpress' => urlencode(get_bloginfo( 'version' )),
 
33
  'phpversion' => urlencode(phpversion ())
34
  );
35
  if (@$_POST["onymous"] == 'false') // send this data only if explicitly accepted
6
  $cppffppp_supportlink = 'https://wordpress.dwbooster.com/support';
7
  $cppffppp_supportlink_full = $cppffppp_supportlink . '?priority-support=yes';
8
 
9
+ if (!get_option('installed_'.$cppffppp_plugslug, ''))
10
+ update_option('installed_'.$cppffppp_plugslug, time() );
11
+
12
  function cppffppp_feedback_insert_adminScripts($hook) {
13
  if( 'plugins.php' == $hook )
14
  {
23
 
24
  // This function is used only if explicitly accepted (opt-in) by the user
25
  function cppffppp_feedback() {
26
+ global $cppffppp_plugfile, $cppffppp_plugslug;
27
  $cppffppp_plugin_data = get_plugin_data( dirname(__FILE__).'/'.$cppffppp_plugfile );
28
  $cppffppp_plugin_version = $cppffppp_plugin_data['Version'];
29
+ $time = time() - get_option('installed_'.$cppffppp_plugslug, '');
30
  $data = array(
31
  'answer' => urlencode(@$_POST["answer"]),
32
  'otherplugin' => urlencode(@$_POST["opinfo"]),
34
  'plugin' => urlencode($cppffppp_plugin_data['Name']),
35
  'pluginv' => urlencode($cppffppp_plugin_version),
36
  'wordpress' => urlencode(get_bloginfo( 'version' )),
37
+ 'itime' => urlencode($time),
38
  'phpversion' => urlencode(phpversion ())
39
  );
40
  if (@$_POST["onymous"] == 'false') // send this data only if explicitly accepted
cp_ppp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Payment Form for PayPal Pro
4
  Plugin URI: https://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.38
7
  Author: CodePeople
8
  Author URI: https://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
9
  License: GPL
@@ -170,6 +170,8 @@ function cp_ppp_install($networkwide) {
170
  function _cp_ppp_install() {
171
  global $wpdb;
172
 
 
 
173
  define('CP_PPP_DEFAULT_fp_from_email', get_the_author_meta('user_email', get_current_user_id()) );
174
  define('CP_PPP_DEFAULT_fp_destination_emails', CP_PPP_DEFAULT_fp_from_email);
175
 
@@ -186,7 +188,7 @@ function _cp_ppp_install() {
186
  posted_data mediumtext,
187
  paid INT DEFAULT 0 NOT NULL,
188
  UNIQUE KEY id (id)
189
- );";
190
  $wpdb->query( $sql );
191
 
192
  $sql = "CREATE TABLE ".$wpdb->prefix.CP_PPP_DISCOUNT_CODES_TABLE_NAME_NO_PREFIX." (
@@ -199,7 +201,7 @@ function _cp_ppp_install() {
199
  availability int(10) unsigned NOT NULL DEFAULT 0,
200
  used int(10) unsigned NOT NULL DEFAULT 0,
201
  UNIQUE KEY id (id)
202
- );";
203
  $wpdb->query( $sql );
204
 
205
 
@@ -277,7 +279,7 @@ function _cp_ppp_install() {
277
  cv_text_enter_valid_captcha VARCHAR(200) DEFAULT '' NOT NULL,
278
 
279
  UNIQUE KEY id (id)
280
- );";
281
  $wpdb->query( $sql );
282
 
283
  $count = $wpdb->get_var( "SELECT COUNT(id) FROM ".$table_name );
3
  Plugin Name: Payment Form for PayPal Pro
4
  Plugin URI: https://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.39
7
  Author: CodePeople
8
  Author URI: https://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
9
  License: GPL
170
  function _cp_ppp_install() {
171
  global $wpdb;
172
 
173
+ $charset_collate = $wpdb->get_charset_collate();
174
+
175
  define('CP_PPP_DEFAULT_fp_from_email', get_the_author_meta('user_email', get_current_user_id()) );
176
  define('CP_PPP_DEFAULT_fp_destination_emails', CP_PPP_DEFAULT_fp_from_email);
177
 
188
  posted_data mediumtext,
189
  paid INT DEFAULT 0 NOT NULL,
190
  UNIQUE KEY id (id)
191
+ ) ".$charset_collate.";";
192
  $wpdb->query( $sql );
193
 
194
  $sql = "CREATE TABLE ".$wpdb->prefix.CP_PPP_DISCOUNT_CODES_TABLE_NAME_NO_PREFIX." (
201
  availability int(10) unsigned NOT NULL DEFAULT 0,
202
  used int(10) unsigned NOT NULL DEFAULT 0,
203
  UNIQUE KEY id (id)
204
+ ) ".$charset_collate.";";
205
  $wpdb->query( $sql );
206
 
207
 
279
  cv_text_enter_valid_captcha VARCHAR(200) DEFAULT '' NOT NULL,
280
 
281
  UNIQUE KEY id (id)
282
+ ) ".$charset_collate.";";
283
  $wpdb->query( $sql );
284
 
285
  $count = $wpdb->get_var( "SELECT COUNT(id) FROM ".$table_name );