Version Description
Changed:Bug in CSV/XML export
Download this release
Release Info
Developer | webdorado |
Plugin | Form Maker by WD – user-friendly drag & drop Form Builder plugin |
Version | 1.7.87 |
Comparing to | |
See all releases |
Code changes from version 1.7.86 to 1.7.87
- admin/views/FMViewGenerete_csv.php +10 -10
- admin/views/FMViewGenerete_xml.php +10 -10
- form-maker.php +2 -2
- readme.txt +4 -1
admin/views/FMViewGenerete_csv.php
CHANGED
@@ -23,6 +23,7 @@ class FMViewGenerete_csv {
|
|
23 |
// Public Methods //
|
24 |
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
public function display() {
|
|
|
26 |
$params = $this->model->get_data();
|
27 |
$limitstart = (int)$_REQUEST['limitstart'];
|
28 |
$send_header = (int)$_REQUEST['send_header'];
|
@@ -44,17 +45,11 @@ class FMViewGenerete_csv {
|
|
44 |
$data[$key] = $row;
|
45 |
}
|
46 |
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
if(file_exists(WD_FM_DIR . '/export/export.txt') && $limitstart == 0){
|
51 |
-
unlink(WD_FM_DIR . '/export/export.txt');
|
52 |
-
}
|
53 |
-
|
54 |
-
$output = fopen(WD_FM_DIR . '/export/export.txt', "a");
|
55 |
if($limitstart == 0) {
|
56 |
fputcsv($output, str_replace('PAYPAL_', '', $keys_array));
|
57 |
-
}
|
58 |
|
59 |
foreach ($data as $record) {
|
60 |
fputcsv($output, $record);
|
@@ -62,12 +57,17 @@ class FMViewGenerete_csv {
|
|
62 |
fclose($output);
|
63 |
|
64 |
if($send_header == 1){
|
|
|
|
|
|
|
|
|
65 |
$filename = $title . "_" . date('Ymd') . ".csv";
|
66 |
header('Content-Encoding: Windows-1252');
|
67 |
header('Content-type: text/csv; charset=Windows-1252');
|
68 |
header("Content-Disposition: attachment; filename=\"$filename\"");
|
69 |
|
70 |
-
$
|
|
|
71 |
die();
|
72 |
}
|
73 |
|
23 |
// Public Methods //
|
24 |
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
public function display() {
|
26 |
+
$form_id = (int)$_REQUEST['form_id'];
|
27 |
$params = $this->model->get_data();
|
28 |
$limitstart = (int)$_REQUEST['limitstart'];
|
29 |
$send_header = (int)$_REQUEST['send_header'];
|
45 |
$data[$key] = $row;
|
46 |
}
|
47 |
|
48 |
+
$tempfile = WD_FM_DIR . '/export'.$form_id.'.txt';
|
49 |
+
$output = fopen($tempfile, "a");
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
if($limitstart == 0) {
|
51 |
fputcsv($output, str_replace('PAYPAL_', '', $keys_array));
|
52 |
+
}
|
53 |
|
54 |
foreach ($data as $record) {
|
55 |
fputcsv($output, $record);
|
57 |
fclose($output);
|
58 |
|
59 |
if($send_header == 1){
|
60 |
+
$txtfile = fopen($tempfile, "r");
|
61 |
+
$txtfilecontent = fread($txtfile, filesize($tempfile));
|
62 |
+
fclose($txtfile);
|
63 |
+
|
64 |
$filename = $title . "_" . date('Ymd') . ".csv";
|
65 |
header('Content-Encoding: Windows-1252');
|
66 |
header('Content-type: text/csv; charset=Windows-1252');
|
67 |
header("Content-Disposition: attachment; filename=\"$filename\"");
|
68 |
|
69 |
+
echo $txtfilecontent;
|
70 |
+
unlink($tempfile);
|
71 |
die();
|
72 |
}
|
73 |
|
admin/views/FMViewGenerete_xml.php
CHANGED
@@ -23,21 +23,16 @@ class FMViewGenerete_xml {
|
|
23 |
// Public Methods //
|
24 |
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
public function display() {
|
|
|
26 |
$params = $this->model->get_data();
|
27 |
$limitstart = (int)$_REQUEST['limitstart'];
|
28 |
$send_header = (int)$_REQUEST['send_header'];
|
29 |
$data = $params[0];
|
30 |
$title = $params[1];
|
31 |
-
|
32 |
-
if(!file_exists(WD_FM_DIR . '/export'))
|
33 |
-
mkdir(WD_FM_DIR . '/export' , 0777);
|
34 |
-
|
35 |
-
if(file_exists(WD_FM_DIR . '/export/export.txt') && $limitstart == 0){
|
36 |
-
unlink(WD_FM_DIR . '/export/export.txt');
|
37 |
-
}
|
38 |
-
|
39 |
define('PHP_TAB', "\t");
|
40 |
-
|
|
|
|
|
41 |
if($limitstart == 0) {
|
42 |
fwrite($output, '<?xml version="1.0" encoding="utf-8" ?>'.PHP_EOL);
|
43 |
fwrite($output, '<form title="'.$title.'">'.PHP_EOL);
|
@@ -56,12 +51,17 @@ class FMViewGenerete_xml {
|
|
56 |
if($send_header == 1){
|
57 |
fwrite($output, '</form>');
|
58 |
fclose($output);
|
|
|
|
|
|
|
|
|
59 |
$filename = $title . "_" . date('Ymd') . ".xml";
|
60 |
header('Content-Encoding: Windows-1252');
|
61 |
header('Content-type: text/xml; charset=utf-8');
|
62 |
header("Content-Disposition: attachment; filename=\"$filename\"");
|
63 |
|
64 |
-
$
|
|
|
65 |
die();
|
66 |
}
|
67 |
|
23 |
// Public Methods //
|
24 |
////////////////////////////////////////////////////////////////////////////////////////
|
25 |
public function display() {
|
26 |
+
$form_id = (int)$_REQUEST['form_id'];
|
27 |
$params = $this->model->get_data();
|
28 |
$limitstart = (int)$_REQUEST['limitstart'];
|
29 |
$send_header = (int)$_REQUEST['send_header'];
|
30 |
$data = $params[0];
|
31 |
$title = $params[1];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
define('PHP_TAB', "\t");
|
33 |
+
|
34 |
+
$tempfile = WD_FM_DIR . '/export'.$form_id.'.txt';
|
35 |
+
$output = fopen($tempfile, "a");
|
36 |
if($limitstart == 0) {
|
37 |
fwrite($output, '<?xml version="1.0" encoding="utf-8" ?>'.PHP_EOL);
|
38 |
fwrite($output, '<form title="'.$title.'">'.PHP_EOL);
|
51 |
if($send_header == 1){
|
52 |
fwrite($output, '</form>');
|
53 |
fclose($output);
|
54 |
+
|
55 |
+
$txtfile = fopen($tempfile, "r");
|
56 |
+
$txtfilecontent = fread($txtfile, filesize($tempfile));
|
57 |
+
fclose($txtfile);
|
58 |
$filename = $title . "_" . date('Ymd') . ".xml";
|
59 |
header('Content-Encoding: Windows-1252');
|
60 |
header('Content-type: text/xml; charset=utf-8');
|
61 |
header("Content-Disposition: attachment; filename=\"$filename\"");
|
62 |
|
63 |
+
echo $txtfilecontent;
|
64 |
+
unlink($tempfile);
|
65 |
die();
|
66 |
}
|
67 |
|
form-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Form Maker
|
4 |
* Plugin URI: https://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.
|
7 |
* Author: WebDorado
|
8 |
* Author URI: https://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -269,7 +269,7 @@ function register_fmemailverification_cpt(){
|
|
269 |
// Activate plugin.
|
270 |
function form_maker_activate() {
|
271 |
$version = get_option("wd_form_maker_version");
|
272 |
-
$new_version = '1.7.
|
273 |
global $wpdb;
|
274 |
if (!$version) {
|
275 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
3 |
* Plugin Name: Form Maker
|
4 |
* Plugin URI: https://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.87
|
7 |
* Author: WebDorado
|
8 |
* Author URI: https://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
269 |
// Activate plugin.
|
270 |
function form_maker_activate() {
|
271 |
$version = get_option("wd_form_maker_version");
|
272 |
+
$new_version = '1.7.87';
|
273 |
global $wpdb;
|
274 |
if (!$version) {
|
275 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://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 , pdf
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -297,6 +297,9 @@ The Form Maker (Pro version) has simple PayPal integration. This allows the user
|
|
297 |
|
298 |
== Changelog ==
|
299 |
|
|
|
|
|
|
|
300 |
= 1.7.86 =
|
301 |
Changed: CSV/XML export
|
302 |
|
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 , pdf
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 1.7.87
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
297 |
|
298 |
== Changelog ==
|
299 |
|
300 |
+
= 1.7.87 =
|
301 |
+
Changed:Bug in CSV/XML export
|
302 |
+
|
303 |
= 1.7.86 =
|
304 |
Changed: CSV/XML export
|
305 |
|