Version Description
Download this release
Release Info
Developer | webdorado |
Plugin | Contact Form by WD – responsive drag & drop contact form builder tool |
Version | 1.5.3 |
Comparing to | |
See all releases |
Code changes from version 1.5.2 to 1.5.3
- contact_form.php +3 -2
- contact_form_functions.html.php +1 -0
- contact_form_functions.php +0 -1
- readme.txt +1 -1
- update_sql.php +106 -106
contact_form.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Contact Form FREE
|
4 |
Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
|
5 |
-
Version: 1.5.
|
6 |
Author: http://web-dorado.com/
|
7 |
License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
*/
|
@@ -1322,9 +1322,10 @@ function contact_form_activate() {
|
|
1322 |
}
|
1323 |
include 'setup_sql.php';
|
1324 |
set_contact_form_sql();
|
|
|
1325 |
}
|
1326 |
include 'update_sql.php';
|
1327 |
-
|
1328 |
|
1329 |
function contact_form_redirect() {
|
1330 |
if (get_option('contact_form_do_activation_redirect') == TRUE) {
|
2 |
/*
|
3 |
Plugin Name: Contact Form FREE
|
4 |
Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
|
5 |
+
Version: 1.5.3
|
6 |
Author: http://web-dorado.com/
|
7 |
License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
*/
|
1322 |
}
|
1323 |
include 'setup_sql.php';
|
1324 |
set_contact_form_sql();
|
1325 |
+
contact_form_check_update();
|
1326 |
}
|
1327 |
include 'update_sql.php';
|
1328 |
+
|
1329 |
|
1330 |
function contact_form_redirect() {
|
1331 |
if (get_option('contact_form_do_activation_redirect') == TRUE) {
|
contact_form_functions.html.php
CHANGED
@@ -1534,6 +1534,7 @@ jQuery(document).ready(function ($) {
|
|
1534 |
<td>
|
1535 |
<input type="button" onclick="submitbutton('form_options')" value="Form options" class="button-primary" />
|
1536 |
</td>
|
|
|
1537 |
<td align="right"><input type="button" onclick="submitbutton('Save')" value="Save" class="button-secondary action"/>
|
1538 |
</td>
|
1539 |
<td align="right"><input type="button" onclick="submitbutton('Apply')" value="Apply"
|
1534 |
<td>
|
1535 |
<input type="button" onclick="submitbutton('form_options')" value="Form options" class="button-primary" />
|
1536 |
</td>
|
1537 |
+
<td style="width:300px"><input type="button" onclick="submitbutton('save_as_copy')" value="Save As Copy" class="button-secondary action" /> </td>
|
1538 |
<td align="right"><input type="button" onclick="submitbutton('Save')" value="Save" class="button-secondary action"/>
|
1539 |
</td>
|
1540 |
<td align="right"><input type="button" onclick="submitbutton('Apply')" value="Apply"
|
contact_form_functions.php
CHANGED
@@ -278,7 +278,6 @@ function save_as_copy() {
|
|
278 |
'%s',
|
279 |
'%s',
|
280 |
'%s',
|
281 |
-
'%s',
|
282 |
'%d',
|
283 |
'%s',
|
284 |
'%s',
|
278 |
'%s',
|
279 |
'%s',
|
280 |
'%s',
|
|
|
281 |
'%d',
|
282 |
'%s',
|
283 |
'%s',
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-contact-form-maker-plugin.
|
|
4 |
Tags: form, forms, contact form, contact forms, contact form plugin,contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contac forms, custom form,Contact Form Maker with recaptcha, contact form with google map, feedback form, feedback forms,contact us
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.5
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
Tags: form, forms, contact form, contact forms, contact form plugin,contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contac forms, custom form,Contact Form Maker with recaptcha, contact form with google map, feedback form, feedback forms,contact us
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 1.5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
update_sql.php
CHANGED
@@ -1,107 +1,107 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function contact_form_check_update() {
|
4 |
-
global $wpdb;
|
5 |
-
if (
|
6 |
-
if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "formmaker'") == $wpdb->prefix . "formmaker") {
|
7 |
-
$form_properties = $wpdb->get_results("DESCRIBE " . $wpdb->prefix . "formmaker", ARRAY_A);
|
8 |
-
foreach ($form_properties as $prop) {
|
9 |
-
$exists_paypal_mode = (($prop['Field'] == 'paypal_mode') ? 1 : 0);
|
10 |
-
$exists_checkout_mode = (($prop['Field'] == 'checkout_mode') ? 1 : 0);
|
11 |
-
$exists_paypal_email = (($prop['Field'] == 'paypal_email') ? 1 : 0);
|
12 |
-
$exists_payment_currency = (($prop['Field'] == 'payment_currency') ? 1 : 0);
|
13 |
-
$exists_tax = (($prop['Field'] == 'tax') ? 1 : 0);
|
14 |
-
$exists_script_mail = (($prop['Field'] == 'script_mail') ? 1 : 0);
|
15 |
-
$exists_script_mail_user = (($prop['Field'] == 'script_mail_user') ? 1 : 0);
|
16 |
-
$exists_label_order_current = (($prop['Field'] == 'label_order_current') ? 1 : 0);
|
17 |
-
}
|
18 |
-
if (!$exists_paypal_mode) {
|
19 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `paypal_mode` int(11) NOT NULL AFTER `recaptcha_theme`");
|
20 |
-
}
|
21 |
-
if (!$exists_checkout_mode) {
|
22 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `checkout_mode` varchar(20) NOT NULL AFTER `recaptcha_theme`");
|
23 |
-
}
|
24 |
-
if (!$exists_paypal_email) {
|
25 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `paypal_email` varchar(128) NOT NULL AFTER `recaptcha_theme`");
|
26 |
-
}
|
27 |
-
if (!$exists_payment_currency) {
|
28 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `payment_currency` varchar(20) NOT NULL AFTER `recaptcha_theme`");
|
29 |
-
}
|
30 |
-
if (!$exists_tax) {
|
31 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `tax` int(11) NOT NULL AFTER `recaptcha_theme`");
|
32 |
-
}
|
33 |
-
if (!$exists_script_mail) {
|
34 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `script_mail` text NOT NULL AFTER `recaptcha_theme`");
|
35 |
-
}
|
36 |
-
if (!$exists_script_mail_user) {
|
37 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `script_mail_user` text NOT NULL AFTER `recaptcha_theme`");
|
38 |
-
}
|
39 |
-
if (!$exists_label_order_current) {
|
40 |
-
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `label_order_current` text NOT NULL AFTER `recaptcha_theme`");
|
41 |
-
}
|
42 |
-
}
|
43 |
-
$form_maker_sessions_table = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_sessions` (
|
44 |
-
`id` int(11) NOT NULL AUTO_INCREMENT,
|
45 |
-
`form_id` int(11) NOT NULL,
|
46 |
-
`group_id` int(11) NOT NULL,
|
47 |
-
`ip` varchar(20) NOT NULL,
|
48 |
-
`ord_date` varchar(20) NOT NULL,
|
49 |
-
`ord_last_modified` varchar(20) NOT NULL,
|
50 |
-
`status` varchar(50) NOT NULL,
|
51 |
-
`full_name` varchar(256) NOT NULL,
|
52 |
-
`email` varchar(256) NOT NULL,
|
53 |
-
`phone` varchar(50) NOT NULL,
|
54 |
-
`mobile_phone` varchar(255) NOT NULL,
|
55 |
-
`fax` varchar(255) NOT NULL,
|
56 |
-
`address` varchar(300) NOT NULL,
|
57 |
-
`paypal_info` text NOT NULL,
|
58 |
-
`without_paypal_info` text NOT NULL,
|
59 |
-
`ipn` varchar(20) NOT NULL,
|
60 |
-
`checkout_method` varchar(20) NOT NULL,
|
61 |
-
`tax` varchar(50) NOT NULL,
|
62 |
-
`shipping` varchar(50) NOT NULL,
|
63 |
-
`shipping_type` varchar(200) NOT NULL,
|
64 |
-
`read` int(11) NOT NULL,
|
65 |
-
`total` varchar(200) NOT NULL,
|
66 |
-
`currency` varchar(24) NOT NULL,
|
67 |
-
PRIMARY KEY (`id`)
|
68 |
-
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=17";
|
69 |
-
$wpdb->query($form_maker_sessions_table);
|
70 |
-
$form_rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "formmaker");
|
71 |
-
foreach ($form_rows as $form_row) {
|
72 |
-
$wpdb->update($wpdb->prefix . "formmaker", array(
|
73 |
-
'paypal_mode' => 0,
|
74 |
-
'checkout_mode' => 'testmode',
|
75 |
-
'paypal_email' => '',
|
76 |
-
'payment_currency' => '',
|
77 |
-
'tax' => 0,
|
78 |
-
'script_mail' => $form_row->script1 . '%all%' . $form_row->script2,
|
79 |
-
'script_mail_user' => $form_row->script_user1 . '%all%' . $form_row->script_user2,
|
80 |
-
'label_order_current' => $form_row->label_order,
|
81 |
-
), array(
|
82 |
-
'id' => $form_row->id,
|
83 |
-
), array(
|
84 |
-
'%d',
|
85 |
-
'%s',
|
86 |
-
'%s',
|
87 |
-
'%s',
|
88 |
-
'%d',
|
89 |
-
'%s',
|
90 |
-
'%s',
|
91 |
-
'%s',
|
92 |
-
), array(
|
93 |
-
'%d',
|
94 |
-
));
|
95 |
-
}
|
96 |
-
if (!get_site_option('contact_formmaker_cureent_version')) {
|
97 |
-
// if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "formmaker_themes'") == $wpdb->prefix . "formmaker_themes")
|
98 |
-
add_option('contact_formmaker_cureent_version', '2.4.4');
|
99 |
-
}
|
100 |
-
else {
|
101 |
-
// if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "formmaker_themes'") == $wpdb->prefix . "formmaker_themes")
|
102 |
-
update_option('contact_formmaker_cureent_version', '2.4.4');
|
103 |
-
}
|
104 |
-
}
|
105 |
-
}
|
106 |
-
|
107 |
?>
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function contact_form_check_update() {
|
4 |
+
global $wpdb;
|
5 |
+
if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "formmaker_sessions'") != $wpdb->prefix . "formmaker_sessions") {
|
6 |
+
if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "formmaker'") == $wpdb->prefix . "formmaker") {
|
7 |
+
$form_properties = $wpdb->get_results("DESCRIBE " . $wpdb->prefix . "formmaker", ARRAY_A);
|
8 |
+
foreach ($form_properties as $prop) {
|
9 |
+
$exists_paypal_mode = (($prop['Field'] == 'paypal_mode') ? 1 : 0);
|
10 |
+
$exists_checkout_mode = (($prop['Field'] == 'checkout_mode') ? 1 : 0);
|
11 |
+
$exists_paypal_email = (($prop['Field'] == 'paypal_email') ? 1 : 0);
|
12 |
+
$exists_payment_currency = (($prop['Field'] == 'payment_currency') ? 1 : 0);
|
13 |
+
$exists_tax = (($prop['Field'] == 'tax') ? 1 : 0);
|
14 |
+
$exists_script_mail = (($prop['Field'] == 'script_mail') ? 1 : 0);
|
15 |
+
$exists_script_mail_user = (($prop['Field'] == 'script_mail_user') ? 1 : 0);
|
16 |
+
$exists_label_order_current = (($prop['Field'] == 'label_order_current') ? 1 : 0);
|
17 |
+
}
|
18 |
+
if (!$exists_paypal_mode) {
|
19 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `paypal_mode` int(11) NOT NULL AFTER `recaptcha_theme`");
|
20 |
+
}
|
21 |
+
if (!$exists_checkout_mode) {
|
22 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `checkout_mode` varchar(20) NOT NULL AFTER `recaptcha_theme`");
|
23 |
+
}
|
24 |
+
if (!$exists_paypal_email) {
|
25 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `paypal_email` varchar(128) NOT NULL AFTER `recaptcha_theme`");
|
26 |
+
}
|
27 |
+
if (!$exists_payment_currency) {
|
28 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `payment_currency` varchar(20) NOT NULL AFTER `recaptcha_theme`");
|
29 |
+
}
|
30 |
+
if (!$exists_tax) {
|
31 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `tax` int(11) NOT NULL AFTER `recaptcha_theme`");
|
32 |
+
}
|
33 |
+
if (!$exists_script_mail) {
|
34 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `script_mail` text NOT NULL AFTER `recaptcha_theme`");
|
35 |
+
}
|
36 |
+
if (!$exists_script_mail_user) {
|
37 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `script_mail_user` text NOT NULL AFTER `recaptcha_theme`");
|
38 |
+
}
|
39 |
+
if (!$exists_label_order_current) {
|
40 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "formmaker ADD `label_order_current` text NOT NULL AFTER `recaptcha_theme`");
|
41 |
+
}
|
42 |
+
}
|
43 |
+
$form_maker_sessions_table = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_sessions` (
|
44 |
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
45 |
+
`form_id` int(11) NOT NULL,
|
46 |
+
`group_id` int(11) NOT NULL,
|
47 |
+
`ip` varchar(20) NOT NULL,
|
48 |
+
`ord_date` varchar(20) NOT NULL,
|
49 |
+
`ord_last_modified` varchar(20) NOT NULL,
|
50 |
+
`status` varchar(50) NOT NULL,
|
51 |
+
`full_name` varchar(256) NOT NULL,
|
52 |
+
`email` varchar(256) NOT NULL,
|
53 |
+
`phone` varchar(50) NOT NULL,
|
54 |
+
`mobile_phone` varchar(255) NOT NULL,
|
55 |
+
`fax` varchar(255) NOT NULL,
|
56 |
+
`address` varchar(300) NOT NULL,
|
57 |
+
`paypal_info` text NOT NULL,
|
58 |
+
`without_paypal_info` text NOT NULL,
|
59 |
+
`ipn` varchar(20) NOT NULL,
|
60 |
+
`checkout_method` varchar(20) NOT NULL,
|
61 |
+
`tax` varchar(50) NOT NULL,
|
62 |
+
`shipping` varchar(50) NOT NULL,
|
63 |
+
`shipping_type` varchar(200) NOT NULL,
|
64 |
+
`read` int(11) NOT NULL,
|
65 |
+
`total` varchar(200) NOT NULL,
|
66 |
+
`currency` varchar(24) NOT NULL,
|
67 |
+
PRIMARY KEY (`id`)
|
68 |
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=17";
|
69 |
+
$wpdb->query($form_maker_sessions_table);
|
70 |
+
$form_rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "formmaker");
|
71 |
+
foreach ($form_rows as $form_row) {
|
72 |
+
$wpdb->update($wpdb->prefix . "formmaker", array(
|
73 |
+
'paypal_mode' => 0,
|
74 |
+
'checkout_mode' => 'testmode',
|
75 |
+
'paypal_email' => '',
|
76 |
+
'payment_currency' => '',
|
77 |
+
'tax' => 0,
|
78 |
+
'script_mail' => $form_row->script1 . '%all%' . $form_row->script2,
|
79 |
+
'script_mail_user' => $form_row->script_user1 . '%all%' . $form_row->script_user2,
|
80 |
+
'label_order_current' => $form_row->label_order,
|
81 |
+
), array(
|
82 |
+
'id' => $form_row->id,
|
83 |
+
), array(
|
84 |
+
'%d',
|
85 |
+
'%s',
|
86 |
+
'%s',
|
87 |
+
'%s',
|
88 |
+
'%d',
|
89 |
+
'%s',
|
90 |
+
'%s',
|
91 |
+
'%s',
|
92 |
+
), array(
|
93 |
+
'%d',
|
94 |
+
));
|
95 |
+
}
|
96 |
+
if (!get_site_option('contact_formmaker_cureent_version')) {
|
97 |
+
// if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "formmaker_themes'") == $wpdb->prefix . "formmaker_themes")
|
98 |
+
add_option('contact_formmaker_cureent_version', '2.4.4');
|
99 |
+
}
|
100 |
+
else {
|
101 |
+
// if ($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "formmaker_themes'") == $wpdb->prefix . "formmaker_themes")
|
102 |
+
update_option('contact_formmaker_cureent_version', '2.4.4');
|
103 |
+
}
|
104 |
+
}
|
105 |
+
}
|
106 |
+
|
107 |
?>
|