Form Maker by WD – user-friendly drag & drop Form Builder plugin - Version 1.7.59

Version Description

Fixed: Bug in csv/xml export

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Form Maker by WD – user-friendly drag & drop Form Builder plugin
Version 1.7.59
Comparing to
See all releases

Code changes from version 1.7.58 to 1.7.59

admin/models/FMModelGenerete_csv.php CHANGED
@@ -70,7 +70,7 @@ class FMModelGenerete_csv {
70
  array_push($label_type, $label_oder_each[1]);
71
  }
72
  foreach ($label_id as $key => $label) {
73
- if (in_array($label, $labels)) {
74
  array_push($sorted_labels, $label_order[$key]);
75
  array_push($sorted_labels_id, $label);
76
  array_push($label_titles, stripslashes($label_order_original[$key]));
@@ -91,171 +91,173 @@ class FMModelGenerete_csv {
91
  $data = array();
92
  for ($www = 0; $www < count($group_id_s); $www++) {
93
  $i = $group_id_s[$www];
94
- $data_temp = array();
95
- $tt = $wpdb->get_results($wpdb->prepare("SELECT `element_label`, `id`, `form_id`, `element_value`, `group_id`, `date`, `ip`, `user_id_wd` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d",$i), OBJECT_K);
96
- for ($h = 0; $h < $m; $h++) {
97
- if(isset($data_temp[$label_titles[$h]]))
98
- $label_titles[$h] .= '(1)';
99
- $t = $tt[$sorted_labels_id[$h]];
100
- if ($t) {
101
- $f=$t;
102
- $date=$t->date;
103
- $ip = $t->ip;
104
- $user_id = get_userdata($t->user_id_wd);
105
- $username = $user_id ? $user_id->display_name : "";
106
- $useremail= $user_id ? $user_id->user_email : "";
107
- $data_temp['Submit date']=$date;
108
- $data_temp['Ip']=$ip;
109
- $data_temp['Submitter\'s Username']=$username;
110
- $data_temp['Submitter\'s Email Address']=$useremail;
111
- if (strpos($t->element_value, "*@@url@@*")) {
112
- $file_names = '';
113
- $new_files = explode("*@@url@@*", $t->element_value);
114
- foreach ($new_files as $new_file) {
115
- if ($new_file) {
116
- $file_names .= $new_file . ", ";
117
- }
118
- }
119
- $data_temp[stripslashes($label_titles[$h])] = $file_names;
120
- }
121
- elseif (strpos($t->element_value, "***br***")) {
122
- $element_value = str_replace("***br***", ', ', $t->element_value);
123
- if (strpos($element_value, "***quantity***")) {
124
- $element_value = str_replace("***quantity***", '', $element_value);
125
- }
126
- if (strpos($element_value, "***property***")) {
127
- $element_value = str_replace("***property***", '', $element_value);
128
- }
129
- if(substr($element_value, -2) == ', ') {
130
- $data_temp[stripslashes($label_titles[$h])]= substr($element_value, 0, -2);
131
- }
132
- else {
133
- $data_temp[stripslashes($label_titles[$h])]= $element_value;
134
- }
135
- }
136
- elseif (strpos($t->element_value, "***map***")) {
137
- $data_temp[stripslashes($label_titles[$h])] = 'Longitude:' . str_replace("***map***", ', Latitude:', $t->element_value);
138
- }
139
- elseif (strpos($t->element_value, "***star_rating***")) {
140
- $element = str_replace("***star_rating***", '', $t->element_value);
141
- $element = explode("***", $element);
142
- $data_temp[stripslashes($label_titles[$h])] = ' ' . $element[1] . '/' . $element[0];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  }
144
- elseif (strpos($t->element_value, "@@@") || $t->element_value == "@@@" || $t->element_value == "@@@@@@@@@") {
145
- $data_temp[stripslashes($label_titles[$h])] = str_replace("@@@", ' ', $t->element_value);
 
 
 
 
 
 
146
  }
147
- elseif (strpos($t->element_value, "***grading***")) {
148
- $element = str_replace("***grading***", '', $t->element_value);
149
- $grading = explode(":", $element);
150
- $items_count = sizeof($grading) - 1;
151
- $items = "";
152
- $total = "";
153
- for ($k = 0; $k < $items_count / 2; $k++) {
154
- $items .= $grading[$items_count / 2 + $k] . ": " . $grading[$k] . ", ";
155
- $total += $grading[$k];
156
- }
157
- $items .= "Total: " . $total;
158
- $data_temp[stripslashes($label_titles[$h])] = $items;
159
  }
160
- elseif (strpos($t->element_value, "***matrix***")) {
161
- $element = str_replace("***matrix***", '', $t->element_value);
162
- $matrix_value = explode('***', $element);
163
- $matrix_value = array_slice($matrix_value, 0, count($matrix_value) - 1);
164
- $mat_rows = $matrix_value[0];
165
- $mat_columns = $matrix_value[$mat_rows + 1];
166
- $matrix = "";
167
- $aaa = Array();
168
- $var_checkbox = 1;
169
- $selected_value = "";
170
- $selected_value_yes = "";
171
- $selected_value_no = "";
172
- for ($k = 1; $k <= $mat_rows; $k++) {
173
- if ($matrix_value[$mat_rows + $mat_columns + 2] == "radio") {
174
- if ($matrix_value[$mat_rows + $mat_columns + 2 + $k] == 0) {
175
- $checked = "0";
176
- $aaa[1] = "";
177
  }
178
- else {
179
- $aaa = explode("_", $matrix_value[$mat_rows + $mat_columns + 2 + $k]);
180
- }
181
- for ($l = 1; $l <= $mat_columns; $l++) {
182
- if ($aaa[1] == $l) {
183
- $checked = '1';
184
- }
185
- else {
186
- $checked = '0';
187
- }
188
- $matrix .= '['.$matrix_value[$k].','.$matrix_value[$mat_rows+1+$l].']='.$checked."; ";
189
- }
190
- }
191
- else {
192
- if ($matrix_value[$mat_rows+$mat_columns + 2] == "checkbox") {
193
- for ($l = 1; $l <= $mat_columns; $l++) {
194
- if ($matrix_value[$mat_rows+$mat_columns + 2 + $var_checkbox] == 1) {
195
- $checked = '1';
196
- }
197
- else {
198
- $checked = '0';
199
- }
200
- $matrix .= '['.$matrix_value[$k].','.$matrix_value[$mat_rows+1+$l].']='.$checked."; ";
201
- $var_checkbox++;
202
- }
203
- }
204
- else {
205
- if ($matrix_value[$mat_rows+$mat_columns + 2] == "text") {
206
- for ($l = 1; $l <= $mat_columns; $l++) {
207
- $text_value = $matrix_value[$mat_rows+$mat_columns+2+$var_checkbox];
208
- $matrix .='['.$matrix_value[$k].','.$matrix_value[$mat_rows+1+$l].']='.$text_value."; ";
209
- $var_checkbox++;
210
- }
211
- }
212
- else {
213
- for ($l = 1; $l <= $mat_columns; $l++) {
214
- $selected_text = $matrix_value[$mat_rows+$mat_columns + 2 + $var_checkbox];
215
- $matrix .= '['.$matrix_value[$k].','.$matrix_value[$mat_rows + 1 + $l].']='.$selected_text."; ";
216
- $var_checkbox++;
217
- }
218
- }
219
- }
220
  }
 
221
  }
222
- $data_temp[stripslashes($label_titles[$h])] = $matrix;
223
- }
224
- else {
225
- $val = htmlspecialchars_decode($t->element_value);
226
- $val = stripslashes(str_replace('&#039;', "'", $val));
227
- $data_temp[stripslashes($label_titles[$h])] = ($t->element_value ? $val : '');
228
- }
229
- }
230
- else {
231
- $data_temp[$label_titles[$h]]= '';
232
- }
233
- }
234
-
235
- if($is_paypal) {
236
- $item_total = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'item_total'));
237
- $total = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'total'));
238
- $payment_status = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'0'));
239
- $data_temp['Item Total'] = $item_total;
240
- $data_temp['Total'] = $total;
241
- $data_temp['Payment Status'] = $payment_status;
242
- }
243
- $query = $wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "formmaker_sessions where group_id= %d",$i);
244
- $paypal_info = $wpdb->get_results($query);
245
- if ($paypal_info) {
246
- $is_paypal_info = TRUE;
247
- }
248
- if ($is_paypal) {
249
- foreach ($paypal_info_fields as $key=>$paypal_info_field) {
250
- if ($paypal_info) {
251
- $data_temp['PAYPAL_'.$paypal_info_labels[$key]]=$paypal_info[0]->$paypal_info_field;
252
- }
253
- else {
254
- $data_temp['PAYPAL_'.$paypal_info_labels[$key]]='';
255
- }
256
- }
257
- }
258
- $data[] = $data_temp;
259
  }
260
  array_push($params, $data);
261
  array_push($params, $title);
70
  array_push($label_type, $label_oder_each[1]);
71
  }
72
  foreach ($label_id as $key => $label) {
73
+ if (in_array($label, $labels) && $label_type[$key] !='type_arithmetic_captcha') {
74
  array_push($sorted_labels, $label_order[$key]);
75
  array_push($sorted_labels_id, $label);
76
  array_push($label_titles, stripslashes($label_order_original[$key]));
91
  $data = array();
92
  for ($www = 0; $www < count($group_id_s); $www++) {
93
  $i = $group_id_s[$www];
94
+ $field_key = array_search($i, $label_id);
95
+ if($label_type[$field_key] != 'type_arithmetic_captcha') {
96
+ $data_temp = array();
97
+ $tt = $wpdb->get_results($wpdb->prepare("SELECT `element_label`, `id`, `form_id`, `element_value`, `group_id`, `date`, `ip`, `user_id_wd` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d",$i), OBJECT_K);
98
+ for ($h = 0; $h < $m; $h++) {
99
+ if(isset($data_temp[$label_titles[$h]]))
100
+ $label_titles[$h] .= '(1)';
101
+ if(isset($tt[$sorted_labels_id[$h]])) {
102
+ $t = $tt[$sorted_labels_id[$h]];
103
+ if ($t) {
104
+ $f=$t;
105
+ $date=$t->date;
106
+ $ip = $t->ip;
107
+ $user_id = get_userdata($t->user_id_wd);
108
+ $username = $user_id ? $user_id->display_name : "";
109
+ $useremail= $user_id ? $user_id->user_email : "";
110
+ $data_temp['Submit date']=$date;
111
+ $data_temp['Ip']=$ip;
112
+ $data_temp['Submitter\'s Username']=$username;
113
+ $data_temp['Submitter\'s Email Address']=$useremail;
114
+ if (strpos($t->element_value, "*@@url@@*")) {
115
+ $file_names = '';
116
+ $new_files = explode("*@@url@@*", $t->element_value);
117
+ foreach ($new_files as $new_file) {
118
+ if ($new_file) {
119
+ $file_names .= $new_file . ", ";
120
+ }
121
+ }
122
+ $data_temp[stripslashes($label_titles[$h])] = $file_names;
123
+ }
124
+ elseif (strpos($t->element_value, "***br***")) {
125
+ $element_value = str_replace("***br***", ', ', $t->element_value);
126
+ if (strpos($element_value, "***quantity***")) {
127
+ $element_value = str_replace("***quantity***", '', $element_value);
128
+ }
129
+ if (strpos($element_value, "***property***")) {
130
+ $element_value = str_replace("***property***", '', $element_value);
131
+ }
132
+ if(substr($element_value, -2) == ', ') {
133
+ $data_temp[stripslashes($label_titles[$h])]= substr($element_value, 0, -2);
134
+ }
135
+ else {
136
+ $data_temp[stripslashes($label_titles[$h])]= $element_value;
137
+ }
138
+ }
139
+ elseif (strpos($t->element_value, "***map***")) {
140
+ $data_temp[stripslashes($label_titles[$h])] = 'Longitude:' . str_replace("***map***", ', Latitude:', $t->element_value);
141
+ }
142
+ elseif (strpos($t->element_value, "***star_rating***")) {
143
+ $element = str_replace("***star_rating***", '', $t->element_value);
144
+ $element = explode("***", $element);
145
+ $data_temp[stripslashes($label_titles[$h])] = ' ' . $element[1] . '/' . $element[0];
146
+ }
147
+ elseif (strpos($t->element_value, "@@@") || $t->element_value == "@@@" || $t->element_value == "@@@@@@@@@") {
148
+ $data_temp[stripslashes($label_titles[$h])] = str_replace("@@@", ' ', $t->element_value);
149
+ }
150
+ elseif (strpos($t->element_value, "***grading***")) {
151
+ $element = str_replace("***grading***", '', $t->element_value);
152
+ $grading = explode(":", $element);
153
+ $items_count = sizeof($grading) - 1;
154
+ $items = "";
155
+ $total = "";
156
+ for ($k = 0; $k < $items_count / 2; $k++) {
157
+ $items .= $grading[$items_count / 2 + $k] . ": " . $grading[$k] . ", ";
158
+ $total += $grading[$k];
159
+ }
160
+ $items .= "Total: " . $total;
161
+ $data_temp[stripslashes($label_titles[$h])] = $items;
162
+ }
163
+ elseif (strpos($t->element_value, "***matrix***")) {
164
+ $element = str_replace("***matrix***", '', $t->element_value);
165
+ $matrix_value = explode('***', $element);
166
+ $matrix_value = array_slice($matrix_value, 0, count($matrix_value) - 1);
167
+ $mat_rows = $matrix_value[0];
168
+ $mat_columns = $matrix_value[$mat_rows + 1];
169
+ $matrix = "";
170
+ $aaa = Array();
171
+ $var_checkbox = 1;
172
+ $selected_value = "";
173
+ $selected_value_yes = "";
174
+ $selected_value_no = "";
175
+ for ($k = 1; $k <= $mat_rows; $k++) {
176
+ if ($matrix_value[$mat_rows + $mat_columns + 2] == "radio") {
177
+ if ($matrix_value[$mat_rows + $mat_columns + 2 + $k] == 0) {
178
+ $checked = "0";
179
+ $aaa[1] = "";
180
+ }
181
+ else {
182
+ $aaa = explode("_", $matrix_value[$mat_rows + $mat_columns + 2 + $k]);
183
+ }
184
+ for ($l = 1; $l <= $mat_columns; $l++) {
185
+ if ($aaa[1] == $l) {
186
+ $checked = '1';
187
+ }
188
+ else {
189
+ $checked = '0';
190
+ }
191
+ $matrix .= '['.$matrix_value[$k].','.$matrix_value[$mat_rows+1+$l].']='.$checked."; ";
192
+ }
193
+ }
194
+ else {
195
+ if ($matrix_value[$mat_rows+$mat_columns + 2] == "checkbox") {
196
+ for ($l = 1; $l <= $mat_columns; $l++) {
197
+ if ($matrix_value[$mat_rows+$mat_columns + 2 + $var_checkbox] == 1) {
198
+ $checked = '1';
199
+ }
200
+ else {
201
+ $checked = '0';
202
+ }
203
+ $matrix .= '['.$matrix_value[$k].','.$matrix_value[$mat_rows+1+$l].']='.$checked."; ";
204
+ $var_checkbox++;
205
  }
206
+ }
207
+ else {
208
+ if ($matrix_value[$mat_rows+$mat_columns + 2] == "text") {
209
+ for ($l = 1; $l <= $mat_columns; $l++) {
210
+ $text_value = $matrix_value[$mat_rows+$mat_columns+2+$var_checkbox];
211
+ $matrix .='['.$matrix_value[$k].','.$matrix_value[$mat_rows+1+$l].']='.$text_value."; ";
212
+ $var_checkbox++;
213
+ }
214
  }
215
+ else {
216
+ for ($l = 1; $l <= $mat_columns; $l++) {
217
+ $selected_text = $matrix_value[$mat_rows+$mat_columns + 2 + $var_checkbox];
218
+ $matrix .= '['.$matrix_value[$k].','.$matrix_value[$mat_rows + 1 + $l].']='.$selected_text."; ";
219
+ $var_checkbox++;
220
+ }
 
 
 
 
 
 
221
  }
222
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224
  }
225
+ $data_temp[stripslashes($label_titles[$h])] = $matrix;
226
  }
227
+ else {
228
+ $val = htmlspecialchars_decode($t->element_value);
229
+ $val = stripslashes(str_replace('&#039;', "'", $val));
230
+ $data_temp[stripslashes($label_titles[$h])] = ($t->element_value ? $val : '');
231
+ }
232
+ }
233
+ }
234
+ }
235
+
236
+ if($is_paypal) {
237
+ $item_total = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'item_total'));
238
+ $total = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'total'));
239
+ $payment_status = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'0'));
240
+ $data_temp['Item Total'] = $item_total;
241
+ $data_temp['Total'] = $total;
242
+ $data_temp['Payment Status'] = $payment_status;
243
+ }
244
+ $query = $wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "formmaker_sessions where group_id= %d",$i);
245
+ $paypal_info = $wpdb->get_results($query);
246
+ if ($paypal_info) {
247
+ $is_paypal_info = TRUE;
248
+ }
249
+ if ($is_paypal) {
250
+ foreach ($paypal_info_fields as $key=>$paypal_info_field) {
251
+ if ($paypal_info) {
252
+ $data_temp['PAYPAL_'.$paypal_info_labels[$key]]=$paypal_info[0]->$paypal_info_field;
253
+ }
254
+ else {
255
+ $data_temp['PAYPAL_'.$paypal_info_labels[$key]]='';
256
+ }
257
+ }
258
+ }
259
+ $data[] = $data_temp;
260
+ }
 
 
 
261
  }
262
  array_push($params, $data);
263
  array_push($params, $title);
admin/models/FMModelGenerete_xml.php CHANGED
@@ -65,7 +65,7 @@ class FMModelGenerete_xml {
65
  array_push($label_type, $label_oder_each[1]);
66
  }
67
  foreach ($label_id as $key => $label) {
68
- if (in_array($label, $labels)) {
69
  array_push($sorted_labels, $label_order[$key]);
70
  array_push($sorted_labels_id, $label);
71
  array_push($label_titles, stripslashes($label_order_original[$key]));
@@ -93,191 +93,195 @@ class FMModelGenerete_xml {
93
  }
94
  array_push($temp_all[$key], $row);
95
  }
 
96
  for ($www = 0; $www < count($group_id_s); $www++) {
97
  $i = $group_id_s[$www];
98
- $temp = array();
99
- $temp = $temp_all[$i];
100
- $f = $temp[0];
101
- $date = $f->date;
102
- $ip = $f->ip;
103
- $user_id = get_userdata($f->user_id_wd);
104
- $username = $user_id ? $user_id->display_name : "";
105
- $useremail= $user_id ? $user_id->user_email : "";
106
- $data_temp['Submit date'] = $date;
107
- $data_temp['Ip'] = $ip;
108
- $data_temp['Submitter\'s Username']=$username;
109
- $data_temp['Submitter\'s Email Address']=$useremail;
110
- $ttt = count($temp);
111
- for ($h = 0; $h < $m; $h++) {
112
- if(isset($data_temp[$label_titles[$h]]))
 
113
  $label_titles[$h] .= '(1)';
114
- for ($g = 0; $g < $ttt; $g++) {
115
- $t = $temp[$g];
116
- if ($t->element_label == $sorted_labels_id[$h]) {
117
- if (strpos($t->element_value, "*@@url@@*")) {
118
- $file_names = '';
119
- $new_files = explode("*@@url@@*", $t->element_value);
120
- foreach ($new_files as $new_file) {
121
- if ($new_file) {
122
- $file_names .= $new_file . ", ";
123
- }
124
- }
125
- $data_temp[stripslashes($label_titles[$h])] = $file_names;
126
- }
127
- elseif (strpos($t->element_value, "***br***")) {
128
- $element_value = str_replace("***br***", ', ', $t->element_value);
129
- if (strpos($element_value, "***quantity***")) {
130
- $element_value = str_replace("***quantity***", '', $element_value);
131
- }
132
- if (strpos($element_value, "***property***")) {
133
- $element_value = str_replace("***property***", '', $element_value);
134
- }
135
- if(substr($element_value, -2) == ', ') {
136
- $data_temp[stripslashes($label_titles[$h])]= substr($element_value, 0, -2);
137
- }
138
- else {
139
- $data_temp[stripslashes($label_titles[$h])]= $element_value;
140
- }
141
- }
142
- elseif (strpos($t->element_value, "***map***")) {
143
- $data_temp[stripslashes($label_titles[$h])] = 'Longitude:' . str_replace("***map***", ', Latitude:', $t->element_value);
144
- }
145
- elseif (strpos($t->element_value,"***star_rating***")) {
146
- $element = str_replace("***star_rating***", '', $t->element_value);
147
- $element = explode("***", $element);
148
- $data_temp[stripslashes($label_titles[$h])] = ' ' . $element[1] . '/' . $element[0];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  }
150
- elseif (strpos($t->element_value, "@@@")>-1 || $t->element_value == "@@@" || $t->element_value == "@@@@@@@@@" || $t->element_value=="::" || $t->element_value==":" || $t->element_value=="--") {
151
- $data_temp[stripslashes($label_titles[$h])] = str_replace(array("@@@",":","-"),' ', $t->element_value);
 
 
 
 
 
 
152
  }
153
- elseif (strpos($t->element_value, "***grading***")) {
154
- $element = str_replace("***grading***", '', $t->element_value);
155
- $grading = explode(":", $element);
156
- $items_count = sizeof($grading) - 1;
157
- $items = "";
158
- $total = "";
159
- for ($k = 0; $k < $items_count / 2; $k++) {
160
- $items .= $grading[$items_count / 2 + $k] . ": " . $grading[$k] . ", ";
161
- $total += $grading[$k];
162
- }
163
- $items .= "Total: " . $total;
164
- $data_temp[stripslashes($label_titles[$h])] = $items;
165
  }
166
- elseif (strpos($t->element_value, "***matrix***")) {
167
- $element = str_replace("***matrix***", '', $t->element_value);
168
- $matrix_value = explode('***', $element);
169
- $matrix_value = array_slice($matrix_value, 0, count($matrix_value) - 1);
170
- $mat_rows = $matrix_value[0];
171
- $mat_columns = $matrix_value[$mat_rows + 1];
172
- $matrix = "";
173
- $aaa = Array();
174
- $var_checkbox = 1;
175
- $selected_value = "";
176
- $selected_value_yes = "";
177
- $selected_value_no = "";
178
- for ($k = 1; $k <= $mat_rows; $k++) {
179
- if ($matrix_value[$mat_rows + $mat_columns + 2] == "radio") {
180
- if ($matrix_value[$mat_rows + $mat_columns + 2 + $k] == 0) {
181
- $checked = "0";
182
- $aaa[1] = "";
183
  }
184
- else {
185
- $aaa = explode("_", $matrix_value[$mat_rows + $mat_columns + 2 + $k]);
186
- }
187
- for ($l = 1; $l <= $mat_columns; $l++) {
188
- if ($aaa[1] == $l) {
189
- $checked = '1';
190
- }
191
- else {
192
- $checked = '0';
193
- }
194
- $matrix .= '['.$matrix_value[$k].','.$matrix_value[$mat_rows+1+$l].']='.$checked."; ";
195
- }
196
- }
197
- else {
198
- if ($matrix_value[$mat_rows+$mat_columns + 2] == "checkbox") {
199
- for ($l = 1; $l <= $mat_columns; $l++) {
200
- if ($matrix_value[$mat_rows+$mat_columns + 2 + $var_checkbox] == 1) {
201
- $checked = '1';
202
- }
203
- else {
204
- $checked = '0';
205
- }
206
- $matrix .= '['.$matrix_value[$k].','.$matrix_value[$mat_rows+1+$l].']='.$checked."; ";
207
- $var_checkbox++;
208
- }
209
- }
210
- else {
211
- if ($matrix_value[$mat_rows+$mat_columns + 2] == "text") {
212
- for ($l = 1; $l <= $mat_columns; $l++) {
213
- $text_value = $matrix_value[$mat_rows+$mat_columns+2+$var_checkbox];
214
- $matrix .='['.$matrix_value[$k].','.$matrix_value[$mat_rows+1+$l].']='.$text_value."; ";
215
- $var_checkbox++;
216
- }
217
- }
218
- else {
219
- for ($l = 1; $l <= $mat_columns; $l++) {
220
- $selected_text = $matrix_value[$mat_rows+$mat_columns + 2 + $var_checkbox];
221
- $matrix .= '['.$matrix_value[$k].','.$matrix_value[$mat_rows + 1 + $l].']='.$selected_text."; ";
222
- $var_checkbox++;
223
- }
224
- }
225
- }
226
  }
 
227
  }
228
- $data_temp[stripslashes($label_titles[$h])] = $matrix;
229
- }
230
- else {
231
- $val = str_replace('&amp;', "&", $t->element_value);
232
- $val = stripslashes(str_replace('&#039;', "'", $t->element_value));
233
- $data_temp[stripslashes($label_titles[$h])] = ($t->element_value ? $val : '');
234
- }
235
- }
236
- }
237
- }
238
-
239
-
240
-
241
- $item_total = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'item_total'));
242
-
243
 
244
- $total = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'total'));
245
-
246
-
247
- $payment_status = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'0'));
248
-
249
-
250
- if($item_total)
251
- $data_temp['Item Total'] = $item_total;
252
 
253
- if($total)
254
- $data_temp['Total'] = $total;
255
 
256
- if($payment_status)
257
- $data_temp['Payment Status'] = $payment_status;
258
-
259
-
260
-
261
- $query = $wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "formmaker_sessions where group_id= %d", $i);
262
-
263
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
 
265
- $paypal_info = $wpdb->get_results($query);
266
- if ($paypal_info) {
267
- $is_paypal_info = TRUE;
268
- }
269
- if ($is_paypal_info) {
270
- foreach ($paypal_info_fields as $key=>$paypal_info_field) {
271
- if ($paypal_info) {
272
- $data_temp['PAYPAL_' . $paypal_info_labels[$key]] = $paypal_info[0]->$paypal_info_field;
273
- }
274
- else {
275
- $data_temp['PAYPAL_' . $paypal_info_labels[$key]] = '';
276
- }
277
- }
278
- }
279
- $data[] = $data_temp;
280
  }
 
281
  array_push($params, $data);
282
  array_push($params, $title);
283
  return $params;
65
  array_push($label_type, $label_oder_each[1]);
66
  }
67
  foreach ($label_id as $key => $label) {
68
+ if (in_array($label, $labels) && $label_type[$key] !='type_arithmetic_captcha') {
69
  array_push($sorted_labels, $label_order[$key]);
70
  array_push($sorted_labels_id, $label);
71
  array_push($label_titles, stripslashes($label_order_original[$key]));
93
  }
94
  array_push($temp_all[$key], $row);
95
  }
96
+
97
  for ($www = 0; $www < count($group_id_s); $www++) {
98
  $i = $group_id_s[$www];
99
+ $temp = array();
100
+ $data_temp = array();
101
+ $temp = $temp_all[$i];
102
+ $f = $temp[0];
103
+ $date = $f->date;
104
+ $ip = $f->ip;
105
+ $user_id = get_userdata($f->user_id_wd);
106
+ $username = $user_id ? $user_id->display_name : "";
107
+ $useremail= $user_id ? $user_id->user_email : "";
108
+ $data_temp['Submit date'] = $date;
109
+ $data_temp['Ip'] = $ip;
110
+ $data_temp['Submitter\'s Username']=$username;
111
+ $data_temp['Submitter\'s Email Address']=$useremail;
112
+ $ttt = count($temp);
113
+ for ($h = 0; $h < $m; $h++) {
114
+ if(isset($data_temp[$label_titles[$h]]))
115
  $label_titles[$h] .= '(1)';
116
+ for ($g = 0; $g < $ttt; $g++) {
117
+ $t = $temp[$g];
118
+ if ($t->element_label == $sorted_labels_id[$h]) {
119
+ if (strpos($t->element_value, "*@@url@@*")) {
120
+ $file_names = '';
121
+ $new_files = explode("*@@url@@*", $t->element_value);
122
+ foreach ($new_files as $new_file) {
123
+ if ($new_file) {
124
+ $file_names .= $new_file . ", ";
125
+ }
126
+ }
127
+ $data_temp[stripslashes($label_titles[$h])] = $file_names;
128
+ }
129
+ elseif (strpos($t->element_value, "***br***")) {
130
+ $element_value = str_replace("***br***", ', ', $t->element_value);
131
+ if (strpos($element_value, "***quantity***")) {
132
+ $element_value = str_replace("***quantity***", '', $element_value);
133
+ }
134
+ if (strpos($element_value, "***property***")) {
135
+ $element_value = str_replace("***property***", '', $element_value);
136
+ }
137
+ if(substr($element_value, -2) == ', ') {
138
+ $data_temp[stripslashes($label_titles[$h])]= substr($element_value, 0, -2);
139
+ }
140
+ else {
141
+ $data_temp[stripslashes($label_titles[$h])]= $element_value;
142
+ }
143
+ }
144
+ elseif (strpos($t->element_value, "***map***")) {
145
+ $data_temp[stripslashes($label_titles[$h])] = 'Longitude:' . str_replace("***map***", ', Latitude:', $t->element_value);
146
+ }
147
+ elseif (strpos($t->element_value,"***star_rating***")) {
148
+ $element = str_replace("***star_rating***", '', $t->element_value);
149
+ $element = explode("***", $element);
150
+ $data_temp[stripslashes($label_titles[$h])] = ' ' . $element[1] . '/' . $element[0];
151
+ }
152
+ elseif (strpos($t->element_value, "@@@")>-1 || $t->element_value == "@@@" || $t->element_value == "@@@@@@@@@" || $t->element_value=="::" || $t->element_value==":" || $t->element_value=="--") {
153
+ $data_temp[stripslashes($label_titles[$h])] = str_replace(array("@@@",":","-"),' ', $t->element_value);
154
+ }
155
+ elseif (strpos($t->element_value, "***grading***")) {
156
+ $element = str_replace("***grading***", '', $t->element_value);
157
+ $grading = explode(":", $element);
158
+ $items_count = sizeof($grading) - 1;
159
+ $items = "";
160
+ $total = "";
161
+ for ($k = 0; $k < $items_count / 2; $k++) {
162
+ $items .= $grading[$items_count / 2 + $k] . ": " . $grading[$k] . ", ";
163
+ $total += $grading[$k];
164
+ }
165
+ $items .= "Total: " . $total;
166
+ $data_temp[stripslashes($label_titles[$h])] = $items;
167
+ }
168
+ elseif (strpos($t->element_value, "***matrix***")) {
169
+ $element = str_replace("***matrix***", '', $t->element_value);
170
+ $matrix_value = explode('***', $element);
171
+ $matrix_value = array_slice($matrix_value, 0, count($matrix_value) - 1);
172
+ $mat_rows = $matrix_value[0];
173
+ $mat_columns = $matrix_value[$mat_rows + 1];
174
+ $matrix = "";
175
+ $aaa = Array();
176
+ $var_checkbox = 1;
177
+ $selected_value = "";
178
+ $selected_value_yes = "";
179
+ $selected_value_no = "";
180
+ for ($k = 1; $k <= $mat_rows; $k++) {
181
+ if ($matrix_value[$mat_rows + $mat_columns + 2] == "radio") {
182
+ if ($matrix_value[$mat_rows + $mat_columns + 2 + $k] == 0) {
183
+ $checked = "0";
184
+ $aaa[1] = "";
185
+ }
186
+ else {
187
+ $aaa = explode("_", $matrix_value[$mat_rows + $mat_columns + 2 + $k]);
188
+ }
189
+ for ($l = 1; $l <= $mat_columns; $l++) {
190
+ if ($aaa[1] == $l) {
191
+ $checked = '1';
192
+ }
193
+ else {
194
+ $checked = '0';
195
+ }
196
+ $matrix .= '['.$matrix_value[$k].','.$matrix_value[$mat_rows+1+$l].']='.$checked."; ";
197
+ }
198
+ }
199
+ else {
200
+ if ($matrix_value[$mat_rows+$mat_columns + 2] == "checkbox") {
201
+ for ($l = 1; $l <= $mat_columns; $l++) {
202
+ if ($matrix_value[$mat_rows+$mat_columns + 2 + $var_checkbox] == 1) {
203
+ $checked = '1';
204
+ }
205
+ else {
206
+ $checked = '0';
207
+ }
208
+ $matrix .= '['.$matrix_value[$k].','.$matrix_value[$mat_rows+1+$l].']='.$checked."; ";
209
+ $var_checkbox++;
210
  }
211
+ }
212
+ else {
213
+ if ($matrix_value[$mat_rows+$mat_columns + 2] == "text") {
214
+ for ($l = 1; $l <= $mat_columns; $l++) {
215
+ $text_value = $matrix_value[$mat_rows+$mat_columns+2+$var_checkbox];
216
+ $matrix .='['.$matrix_value[$k].','.$matrix_value[$mat_rows+1+$l].']='.$text_value."; ";
217
+ $var_checkbox++;
218
+ }
219
  }
220
+ else {
221
+ for ($l = 1; $l <= $mat_columns; $l++) {
222
+ $selected_text = $matrix_value[$mat_rows+$mat_columns + 2 + $var_checkbox];
223
+ $matrix .= '['.$matrix_value[$k].','.$matrix_value[$mat_rows + 1 + $l].']='.$selected_text."; ";
224
+ $var_checkbox++;
225
+ }
 
 
 
 
 
 
226
  }
227
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
229
  }
230
+ $data_temp[stripslashes($label_titles[$h])] = $matrix;
231
  }
232
+ else {
233
+ $val = str_replace('&amp;', "&", $t->element_value);
234
+ $val = stripslashes(str_replace('&#039;', "'", $t->element_value));
235
+ $data_temp[stripslashes($label_titles[$h])] = ($t->element_value ? $val : '');
236
+ }
237
+ }
238
+ }
239
+ }
240
+
241
+
242
+
243
+ $item_total = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'item_total'));
 
 
 
244
 
 
 
 
 
 
 
 
 
245
 
246
+ $total = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'total'));
 
247
 
248
+
249
+ $payment_status = $wpdb->get_var($wpdb->prepare("SELECT `element_value` FROM " . $wpdb->prefix . "formmaker_submits where group_id=%d AND element_label=%s",$i,'0'));
250
+
251
+
252
+ if($item_total)
253
+ $data_temp['Item Total'] = $item_total;
254
+
255
+ if($total)
256
+ $data_temp['Total'] = $total;
257
+
258
+ if($payment_status)
259
+ $data_temp['Payment Status'] = $payment_status;
260
+
261
+
262
+
263
+ $query = $wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "formmaker_sessions where group_id= %d", $i);
264
+
265
+
266
+
267
+ $paypal_info = $wpdb->get_results($query);
268
+ if ($paypal_info) {
269
+ $is_paypal_info = TRUE;
270
+ }
271
+ if ($is_paypal_info) {
272
+ foreach ($paypal_info_fields as $key=>$paypal_info_field) {
273
+ if ($paypal_info) {
274
+ $data_temp['PAYPAL_' . $paypal_info_labels[$key]] = $paypal_info[0]->$paypal_info_field;
275
+ }
276
+ else {
277
+ $data_temp['PAYPAL_' . $paypal_info_labels[$key]] = '';
278
+ }
279
+ }
280
+ }
281
+ $data[] = $data_temp;
282
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
  }
284
+
285
  array_push($params, $data);
286
  array_push($params, $title);
287
  return $params;
admin/views/FMViewGenerete_csv.php CHANGED
@@ -34,6 +34,21 @@ class FMViewGenerete_csv {
34
  if (strstr($str, '"'))
35
  $str = '"' . str_replace('"', '""', $str) . '"';
36
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  // File name for download.
38
  $filename = $title . "_" . date('Ymd') . ".csv";
39
  header('Content-Encoding: Windows-1252');
@@ -44,7 +59,7 @@ class FMViewGenerete_csv {
44
  if (!$flag) {
45
  # display field/column names as first row
46
  // echo "sep=,\r\n";
47
- echo '"' . implode('","', str_replace('PAYPAL_', '', array_keys($row)));
48
 
49
  echo "\"\r\n";
50
  $flag = TRUE;
34
  if (strstr($str, '"'))
35
  $str = '"' . str_replace('"', '""', $str) . '"';
36
  }
37
+
38
+ $all_keys = array();
39
+ foreach ($data as $key =>$row) {
40
+ $all_keys = array_merge($all_keys, $row);
41
+ }
42
+
43
+ $keys_array = array_keys($all_keys);
44
+ foreach ($data as $key => $row) {
45
+ foreach ($keys_array as $key1 => $value) {
46
+ if(!array_key_exists ( $value , $row ))
47
+ array_splice($row, $key1, 0, '');
48
+ }
49
+ $data[$key] = $row;
50
+ }
51
+
52
  // File name for download.
53
  $filename = $title . "_" . date('Ymd') . ".csv";
54
  header('Content-Encoding: Windows-1252');
59
  if (!$flag) {
60
  # display field/column names as first row
61
  // echo "sep=,\r\n";
62
+ echo '"' . implode('","', str_replace('PAYPAL_', '', $keys_array));
63
 
64
  echo "\"\r\n";
65
  $flag = TRUE;
form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Form Maker
4
  * Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
- * Version: 1.7.58
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -261,7 +261,7 @@ function register_fmemailverification_cpt(){
261
  // Activate plugin.
262
  function form_maker_activate() {
263
  $version = get_option("wd_form_maker_version");
264
- $new_version = '1.7.58';
265
  global $wpdb;
266
  if (!$version) {
267
  add_option("wd_form_maker_version", $new_version, '', 'no');
3
  * Plugin Name: Form Maker
4
  * Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
+ * Version: 1.7.59
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
261
  // Activate plugin.
262
  function form_maker_activate() {
263
  $version = get_option("wd_form_maker_version");
264
+ $new_version = '1.7.59';
265
  global $wpdb;
266
  if (!$version) {
267
  add_option("wd_form_maker_version", $new_version, '', 'no');
frontend/models/FMModelForm_maker.php CHANGED
@@ -266,7 +266,7 @@ class FMModelForm_maker {
266
  if ($old == FALSE || ($old == TRUE && $form->form == '')) {
267
  foreach ($label_type as $key => $type) {
268
  $value = '';
269
- if ($type == "type_submit_reset" or $type == "type_map" or $type == "type_editor" or $type == "type_captcha" or $type == "type_recaptcha" or $type == "type_button" or $type == "type_paypal_total" or $type == "type_send_copy") {
270
  continue;
271
  }
272
  $i = $label_id[$key];
@@ -797,7 +797,7 @@ class FMModelForm_maker {
797
  else {
798
  foreach ($label_type as $key => $type) {
799
  $value = '';
800
- if ($type == "type_submit_reset" or $type == "type_map" or $type == "type_editor" or $type == "type_captcha" or $type == "type_recaptcha" or $type == "type_button" or $type=="type_paypal_total")
801
  continue;
802
  $i = $label_id[$key];
803
  if ($type != "type_address") {
@@ -1617,7 +1617,7 @@ class FMModelForm_maker {
1617
  $i = $label_order_id;
1618
  $type = $label_type[$i];
1619
 
1620
- if($type != "type_map" and $type != "type_submit_reset" and $type != "type_editor" and $type != "type_captcha" and $type != "type_recaptcha" and $type != "type_button") {
1621
  $element_label=$label_order_original[$i];
1622
  if(!in_array($i,$disabled_fields)) {
1623
  switch ($type) {
@@ -2380,7 +2380,7 @@ class FMModelForm_maker {
2380
  $i = $label_order_id;
2381
  $type = $_POST[$i . "_type" . $id];
2382
  if (isset($_POST[$i . "_type" . $id]))
2383
- if ($type != "type_map" and $type != "type_submit_reset" and $type != "type_editor" and $type != "type_captcha" and $type != "type_recaptcha" and $type != "type_button") {
2384
  $element_label = $label_order_original[$i];
2385
  switch ($type) {
2386
  case 'type_text':
@@ -2768,7 +2768,7 @@ class FMModelForm_maker {
2768
  foreach ($label_order_original as $key => $label_each) {
2769
  if (strpos($row->script_mail_user, "%" . $label_each . "%") !== FALSE) {
2770
  $type = $label_type[$key];
2771
- if ($type != "type_submit_reset" or $type != "type_map" or $type != "type_editor" or $type != "type_captcha" or $type != "type_recaptcha" or $type != "type_button") {
2772
  $new_value = "";
2773
  switch ($type) {
2774
  case 'type_text':
@@ -3211,7 +3211,7 @@ class FMModelForm_maker {
3211
  foreach($label_order_original as $key => $label_each) {
3212
  if (strpos($row->script_mail, "%" . $label_each . "%") !== FALSE) {
3213
  $type = $label_type[$key];
3214
- if ($type != "type_submit_reset" or $type!="type_map" or $type!="type_editor" or $type!="type_captcha" or $type!="type_recaptcha" or $type!="type_button") {
3215
  $new_value ="";
3216
  switch ($type) {
3217
  case 'type_text':
@@ -3625,7 +3625,7 @@ class FMModelForm_maker {
3625
  foreach($label_order_original as $key => $label_each) {
3626
  if (strpos($row->script_mail, "%" . $label_each . "%") !== FALSE) {
3627
  $type = $label_type[$key];
3628
- if ($type != "type_submit_reset" or $type != "type_map" or $type != "type_editor" or $type!="type_captcha" or $type!="type_recaptcha" or $type!="type_button") {
3629
  $new_value = "";
3630
  switch ($type) {
3631
  case 'type_text':
@@ -4130,7 +4130,7 @@ class FMModelForm_maker {
4130
  $disabled_fields = explode(',', isset($_REQUEST["disabled_fields".$id]) ? $_REQUEST["disabled_fields".$id] : "");
4131
  $disabled_fields = array_slice($disabled_fields,0, count($disabled_fields)-1);
4132
 
4133
- if($type!="type_submit_reset" or $type!="type_map" or $type!="type_editor" or $type!="type_captcha" or $type!="type_recaptcha" or $type!="type_button") {
4134
  switch ($type) {
4135
  case 'type_text':
4136
  case 'type_password':
266
  if ($old == FALSE || ($old == TRUE && $form->form == '')) {
267
  foreach ($label_type as $key => $type) {
268
  $value = '';
269
+ if ($type == "type_submit_reset" or $type == "type_map" or $type == "type_editor" or $type == "type_captcha" or $type == "type_arithmetic_captcha" or $type == "type_recaptcha" or $type == "type_button" or $type == "type_paypal_total" or $type == "type_send_copy") {
270
  continue;
271
  }
272
  $i = $label_id[$key];
797
  else {
798
  foreach ($label_type as $key => $type) {
799
  $value = '';
800
+ if ($type == "type_submit_reset" or $type == "type_map" or $type == "type_editor" or $type == "type_captcha" or $type == "type_arithmetic_captcha" or $type == "type_recaptcha" or $type == "type_button" or $type=="type_paypal_total")
801
  continue;
802
  $i = $label_id[$key];
803
  if ($type != "type_address") {
1617
  $i = $label_order_id;
1618
  $type = $label_type[$i];
1619
 
1620
+ if($type != "type_map" and $type != "type_submit_reset" and $type != "type_editor" and $type != "type_captcha" and $type != "type_arithmetic_captcha" and $type != "type_recaptcha" and $type != "type_button") {
1621
  $element_label=$label_order_original[$i];
1622
  if(!in_array($i,$disabled_fields)) {
1623
  switch ($type) {
2380
  $i = $label_order_id;
2381
  $type = $_POST[$i . "_type" . $id];
2382
  if (isset($_POST[$i . "_type" . $id]))
2383
+ if ($type != "type_map" and $type != "type_submit_reset" and $type != "type_editor" and $type != "type_captcha" and $type != "type_arithmetic_captcha" and $type != "type_recaptcha" and $type != "type_button") {
2384
  $element_label = $label_order_original[$i];
2385
  switch ($type) {
2386
  case 'type_text':
2768
  foreach ($label_order_original as $key => $label_each) {
2769
  if (strpos($row->script_mail_user, "%" . $label_each . "%") !== FALSE) {
2770
  $type = $label_type[$key];
2771
+ if ($type != "type_submit_reset" or $type != "type_map" or $type != "type_editor" or $type != "type_captcha" or $type != "type_arithmetic_captcha" or $type != "type_recaptcha" or $type != "type_button") {
2772
  $new_value = "";
2773
  switch ($type) {
2774
  case 'type_text':
3211
  foreach($label_order_original as $key => $label_each) {
3212
  if (strpos($row->script_mail, "%" . $label_each . "%") !== FALSE) {
3213
  $type = $label_type[$key];
3214
+ if ($type != "type_submit_reset" or $type!="type_map" or $type!="type_editor" or $type!="type_captcha" or $type != "type_arithmetic_captcha" or $type!="type_recaptcha" or $type!="type_button") {
3215
  $new_value ="";
3216
  switch ($type) {
3217
  case 'type_text':
3625
  foreach($label_order_original as $key => $label_each) {
3626
  if (strpos($row->script_mail, "%" . $label_each . "%") !== FALSE) {
3627
  $type = $label_type[$key];
3628
+ if ($type != "type_submit_reset" or $type != "type_map" or $type != "type_editor" or $type!="type_captcha" or $type != "type_arithmetic_captcha" or $type!="type_recaptcha" or $type!="type_button") {
3629
  $new_value = "";
3630
  switch ($type) {
3631
  case 'type_text':
4130
  $disabled_fields = explode(',', isset($_REQUEST["disabled_fields".$id]) ? $_REQUEST["disabled_fields".$id] : "");
4131
  $disabled_fields = array_slice($disabled_fields,0, count($disabled_fields)-1);
4132
 
4133
+ if($type!="type_submit_reset" or $type!="type_map" or $type!="type_editor" or $type!="type_captcha" or $type != "type_arithmetic_captcha" or $type!="type_recaptcha" or $type!="type_button") {
4134
  switch ($type) {
4135
  case 'type_text':
4136
  case 'type_password':
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-form.html
4
  Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, formular, formulario, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
- Stable tag: 1.7.58
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -279,6 +279,9 @@ The Form Maker (Pro version) has simple PayPal integration. This allows the user
279
 
280
  == Changelog ==
281
 
 
 
 
282
  = 1.7.58 =
283
  Fixed: Minor bugs
284
  Added: Email verification custom post
4
  Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, formular, formulario, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
+ Stable tag: 1.7.59
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
279
 
280
  == Changelog ==
281
 
282
+ = 1.7.59 =
283
+ Fixed: Bug in csv/xml export
284
+
285
  = 1.7.58 =
286
  Fixed: Minor bugs
287
  Added: Email verification custom post