Version Description
- Feedback panel update
Download this release
Release Info
Developer | codepeople |
Plugin | Contact Form Email |
Version | 1.3.32 |
Comparing to | |
See all releases |
Code changes from version 1.3.31 to 1.3.32
- README.txt +5 -2
- cp-feedback.php +45 -39
- form-to-email.php +1 -1
README.txt
CHANGED
@@ -456,6 +456,9 @@ When you click a field already added into the contact form builder area, you can
|
|
456 |
|
457 |
== Changelog ==
|
458 |
|
|
|
|
|
|
|
459 |
= 1.3.31 =
|
460 |
* Validation fix
|
461 |
|
@@ -1148,5 +1151,5 @@ When you click a field already added into the contact form builder area, you can
|
|
1148 |
|
1149 |
== Upgrade Notice ==
|
1150 |
|
1151 |
-
= 1.3.
|
1152 |
-
*
|
456 |
|
457 |
== Changelog ==
|
458 |
|
459 |
+
= 1.3.32 =
|
460 |
+
* Feedback panel update
|
461 |
+
|
462 |
= 1.3.31 =
|
463 |
* Validation fix
|
464 |
|
1151 |
|
1152 |
== Upgrade Notice ==
|
1153 |
|
1154 |
+
= 1.3.32 =
|
1155 |
+
* Feedback panel update
|
cp-feedback.php
CHANGED
@@ -19,46 +19,51 @@ function cfte_feedback_insert_adminScripts($hook) {
|
|
19 |
|
20 |
// This function is used only if explicitly accepted (opt-in) by the user
|
21 |
function cpcfte_feedback() {
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
-
|
51 |
-
//extract data from the post
|
52 |
-
//set POST variables
|
53 |
-
$url = 'https://wordpress.dwbooster.com/licensesystem/debug-data.php';
|
54 |
-
$fields = $data;
|
55 |
-
|
56 |
-
wp_remote_post(
|
57 |
-
$url,
|
58 |
-
array ( 'body' => $fields )
|
59 |
-
);
|
60 |
-
|
61 |
-
wp_die(); // this is required to terminate immediately and return a proper response
|
62 |
}
|
63 |
|
64 |
|
@@ -122,6 +127,7 @@ $(window).on('load',function() {
|
|
122 |
var isAnonymous = $("input[name='cpabcanonymous']:checked").length > 0;
|
123 |
var data = {
|
124 |
'action': 'cpcfte_feedback',
|
|
|
125 |
'answer': $("input[name='abcm_reason']:checked").val(),
|
126 |
'opinfo': $("input[name='abcm_otherpinfo']").val(),
|
127 |
'oinfo': $("input[name='abcm_otherinfo']").val(),
|
19 |
|
20 |
// This function is used only if explicitly accepted (opt-in) by the user
|
21 |
function cpcfte_feedback() {
|
22 |
+
if (
|
23 |
+
isset( $_POST['_wpnonce'] ) &&
|
24 |
+
wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), 'cfte-feedback' )
|
25 |
+
) {
|
26 |
+
$plugin_data = get_plugin_data( dirname(__FILE__).'/form-to-email.php' );
|
27 |
+
$plugin_version = $plugin_data['Version'];
|
28 |
+
$time = time() - get_option('installed_contact-form-to-email', '');
|
29 |
+
$data = array(
|
30 |
+
'answer' => sanitize_textarea_field(@$_POST["answer"]),
|
31 |
+
'otherplugin' => sanitize_textarea_field(@$_POST["opinfo"]),
|
32 |
+
'otherinfo' => sanitize_textarea_field(@$_POST["oinfo"]),
|
33 |
+
'plugin' => ($plugin_data['Name']),
|
34 |
+
'pluginv' => ($plugin_version),
|
35 |
+
'wordpress' => (get_bloginfo( 'version' )),
|
36 |
+
'itime' => ($time),
|
37 |
+
'phpversion' => (phpversion ())
|
38 |
+
);
|
39 |
+
if (@$_POST["onymous"] == 'false') // send this data only if explicitly accepted
|
40 |
+
{
|
41 |
+
$current_user = wp_get_current_user();
|
42 |
+
$data['email'] = ($current_user->user_email);
|
43 |
+
$data['website'] = ($_SERVER['HTTP_HOST']);
|
44 |
+
$data['url'] = (get_site_url());
|
45 |
+
// for detecting theme and plugin conflicts:
|
46 |
+
$data['theme'] = (wp_get_theme()->get('Name') . " " .wp_get_theme()->get('Version'));
|
47 |
+
$plist = "";
|
48 |
+
$activeplugins = get_option('active_plugins');
|
49 |
+
$plugins = get_plugins();
|
50 |
+
foreach ($activeplugins as $plugin)
|
51 |
+
$plist .= $plugins[$plugin]["Title"]." ".$plugins[$plugin]["Version"]."\n";
|
52 |
+
$data['plugins'] = ($plist);
|
53 |
+
}
|
54 |
+
|
55 |
+
//extract data from the post
|
56 |
+
//set POST variables
|
57 |
+
$url = 'https://wordpress.dwbooster.com/licensesystem/debug-data.php';
|
58 |
+
$fields = $data;
|
59 |
+
|
60 |
+
wp_remote_post(
|
61 |
+
$url,
|
62 |
+
array ( 'body' => $fields )
|
63 |
+
);
|
64 |
+
|
65 |
+
wp_die(); // this is required to terminate immediately and return a proper response
|
66 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
}
|
68 |
|
69 |
|
127 |
var isAnonymous = $("input[name='cpabcanonymous']:checked").length > 0;
|
128 |
var data = {
|
129 |
'action': 'cpcfte_feedback',
|
130 |
+
'_wpnonce' : '<?php echo esc_js(wp_create_nonce( 'cfte-feedback' )); ?>',
|
131 |
'answer': $("input[name='abcm_reason']:checked").val(),
|
132 |
'opinfo': $("input[name='abcm_otherpinfo']").val(),
|
133 |
'oinfo': $("input[name='abcm_otherinfo']").val(),
|
form-to-email.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Contact Form Email
|
4 |
Plugin URI: https://form2email.dwbooster.com/download
|
5 |
Description: Contact form that sends the data to email and also to a database list and CSV file.
|
6 |
-
Version: 1.3.
|
7 |
Author: CodePeople
|
8 |
Author URI: https://form2email.dwbooster.com
|
9 |
Text Domain: contact-form-to-email
|
3 |
Plugin Name: Contact Form Email
|
4 |
Plugin URI: https://form2email.dwbooster.com/download
|
5 |
Description: Contact form that sends the data to email and also to a database list and CSV file.
|
6 |
+
Version: 1.3.32
|
7 |
Author: CodePeople
|
8 |
Author URI: https://form2email.dwbooster.com
|
9 |
Text Domain: contact-form-to-email
|