PluginProbe
Contact Forms by Cimatti / 1.2
Contact Forms by Cimatti v1.2
2.3.6 2.3.5 2.3.0 2.2.32 2.2.4 2.2.0 2.1.2 2.1.1 trunk 1.0 1.1 1.2 1.2.1 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 All 62 releases
contact-forms / contact-forms.php

contact-forms.php in Contact Forms by Cimatti 1.2, at contact-forms.php

728 lines 19.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: WordPress Contact Forms by Cimatti
4 Description: Quickly create and publish forms in your WordPress powered website.
5 Version: 1.2
6 Plugin URI: http://www.cimatti.it/wordpress/contact-forms/
7 Author: Cimatti Consulting
8 Author URI: http://www.cimatti.it
9 */
10
11 /*
12 WordPress Contact Forms by Cimatti
13 Copyright (c) 2011-2013 Andrea Cimatti
14
15 This program is free software; you can redistribute it and/or
16 modify it under the terms of the GNU General Public License
17 as published by the Free Software Foundation; either version 2
18 of the License, or (at your option) any later version.
19
20 This program is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
24
25 You should have received a copy of the GNU General Public License
26 along with this program; if not, write to the Free Software
27 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28
29
30 The full copy of the GNU General Public License is available here: http://www.gnu.org/licenses/gpl.txt
31
32 */
33
34 require_once('accua-form-api.php');
35 require_once('accua-forms.php');
36 require_once('accua-shortcode-button.php');
37
38 function accua_dashboard_page_head(){
39 $screen = get_current_screen();
40 $screen->add_help_tab( array(
41 'id' => 'accua_help_tab',
42 'title' => __('WordPress Contact Forms by Cimatti'),
43 'content' => '<p>' . __( 'Marketing tools for WordPress', 'accua-form-api') . '</p>',
44 ) );
45
46 wp_enqueue_script('accua', plugins_url('/flot/jquery.flot.js', __FILE__ ), array( 'jquery' ));
47 //wp_enqueue_style('accua_flot', plugins_url('/flot/layout.css', __FILE__ ));
48 wp_enqueue_style('accua', plugins_url('accua.css', __FILE__ ));
49
50 }
51
52 function accua_dashboard_page()
53 {
54 global $wpdb;
55 $num_posts = $wpdb->get_results("SELECT count(DISTINCT afs_post_id ) as num_row
56 FROM {$wpdb->prefix}accua_forms_submissions WHERE afs_post_id <> 0 AND afs_status >= 0", ARRAY_A);
57 $num_forms = $wpdb->get_results("SELECT count(DISTINCT afs_form_id ) as num_row
58 FROM {$wpdb->prefix}accua_forms_submissions WHERE afs_status >= 0", ARRAY_A);
59 $num_submissions = $wpdb->get_results("SELECT count(*) as num_row
60 FROM {$wpdb->prefix}accua_forms_submissions WHERE afs_status >= 0", ARRAY_A);
61
62 //seleziono i campi email
63 $email_fields = array();
64 $avail_fields = get_option('accua_forms_avail_fields', array());
65 foreach($avail_fields as $key=>$single_field){
66 if($single_field['type'] == 'email' || $single_field['type'] == 'autoreply_email')
67 $email_fields[] = "'".$key."'";
68 }
69 $email_fields_string = implode(',',$email_fields);
70 $num_emails = $wpdb->get_results("SELECT COUNT(DISTINCT (`afsv_value`)) as num_row
71 FROM {$wpdb->prefix}accua_forms_submissions, {$wpdb->prefix}accua_forms_submissions_values
72 WHERE `afs_id` = `afsv_sub_id`
73 AND afsv_field_id IN ({$email_fields_string})
74 AND afs_status >= 0", ARRAY_A);
75
76
77 $forms_data = get_option('accua_forms_saved_forms', array());
78
79 $fid = '';
80 $fid_param = '';
81 if (isset($_GET['fid'])) {
82 $fid = stripslashes( (string) $_GET['fid'] );
83 if (isset($forms_data[$fid])) {
84 $fid_param = $wpdb->prepare('AND afs_form_id = %s', $fid);
85 } else {
86 $fid = '';
87 }
88 }
89
90
91 //costruisco il grafico
92
93 $query_grafico = $wpdb->get_results("SELECT YEAR( afs_submitted ) AS `year` , MONTH( afs_submitted ) AS `month` , COUNT( DISTINCT (`afs_id`) ) AS `submissions` , COUNT( DISTINCT (`afsv_value`)) AS `unique_submissions`
94 FROM `{$wpdb->prefix}accua_forms_submissions`
95 LEFT JOIN `{$wpdb->prefix}accua_forms_submissions_values` ON `afs_id` = `afsv_sub_id`
96 WHERE afsv_field_id IN ({$email_fields_string})
97 AND afs_status >= 0
98 $fid_param
99 GROUP BY `year` , `month`
100 ORDER BY `year` DESC , `month` DESC");
101 ?>
102
103 <div id="accua_dashboard_page" class="accua_forms_admin_page wrap">
104 <div id="icon-contact-forms-cimatti-logo" class="icon32"><br></div>
105 <h2>WordPress Contact Forms by Cimatti</h2>
106 <div class="metabox-holder accua-forms-metabox-holder">
107 <div class="postbox ">
108 <h3 class="hndle"><span><?php _e('Forms Stats', 'accua-form-api'); ?></span></h3>
109 <div class="inside" id="dashboard_right_now">
110 <table>
111 <tr class="first"><td class="first b"><?php echo $num_forms[0]['num_row']; ?></td><td class="t"><?php _e('Forms', 'accua-form-api'); ?></td></tr>
112 <tr class="first"><td class="first b"><?php echo $num_posts[0]['num_row']; ?></td><td class="t"><?php _e('Pages', 'accua-form-api'); ?></td></tr>
113 <tr class="first"><td class="first b"><?php echo $num_submissions[0]['num_row']; ?></td><td class="t"><?php _e('Submissions', 'accua-form-api'); ?></td></tr>
114 <tr class="first"><td class="first b"><?php echo $num_emails[0]['num_row']; ?></td><td class="t"><?php _e('Distinct Emails', 'accua-form-api'); ?></td></tr>
115 </table>
116 <form method="get">
117 <input type="hidden" name="page" value="accua_forms" />
118 <select name="fid">
119 <?php
120 $selected = ($fid === '') ? 'selected="selected"' : '';
121 echo "<option value='' $selected >", __('Submissions from all forms', 'accua-form-api'),'</option>';
122 foreach($forms_data as $ffid => $form) {
123 $selected = ($fid == $ffid) ? 'selected="selected"' : '';
124 $title = trim($form['title']);
125 if ($title === '') {
126 $title = $ffid;
127 }
128 $ffid = htmlspecialchars($ffid, ENT_QUOTES);
129 $title = htmlspecialchars($title, ENT_QUOTES);
130 echo "<option value='$ffid' $selected >$title</option>";
131 }
132 ?>
133 </select>
134 <input type="submit" value="<?php _e('filter', 'accua-form-api') ?>" />
135 </form>
136
137 <?php
138 if ($query_grafico) {
139 echo '<div id="accua-forms-graph-content" ><div id="accua-form-report-graph" style="width: 99%"></div></div>';
140
141 $data = array(
142 array( 'label' => __('Unique monthly Submissions', 'accua-form-api'), 'data' => array()),
143 array( 'label' => __('Total monthly Submissions', 'accua-form-api'), 'data' => array()),
144 );
145 for($i=date('Y'); $i>=$query_grafico[count($query_grafico)-1]->year; $i-- ) {
146 $start_month=12;
147 $end_month = 1;
148 if($i==date('Y')) $start_month= date('n');
149 if($i==$query_grafico[count($query_grafico)-1]->year) $end_month=$query_grafico[count($query_grafico)-1]->month;
150 for($j=$start_month;$j>=$end_month;$j--) {
151 $time = mktime(0, 0, 0, $j , 1, $i) * 1000;
152 $find=false;
153 foreach ($query_grafico as $result){
154 if(!$find && (int)$result->year == $i && (int)$result->month==$j) {
155 $data[0]['data'][] = array($time, (int)$result->unique_submissions,$j, $i);
156 $data[1]['data'][] = array($time, (int)$result->submissions,$j, $i);
157 $find=true;
158 }
159 }
160 if(!$find)
161 {
162 $data[0]['data'][] = array($time, 0,$j, $i);
163 $data[1]['data'][] = array($time, 0,$j, $i);
164 }
165 }
166 }
167 ?>
168 <script type="text/javascript">
169 var data = <?php echo json_encode($data); ?> ;
170 var options = {
171 xaxis: {
172 //autoscaleMargin: 0.005,
173 mode: "time",
174 timeformat: "%b %y",
175 minTickSize: [1, "month"]
176 },
177 legend: {
178 position: "nw"
179 },
180
181
182 };
183 jQuery(document).ready(function($) {
184 jQuery.plot($("#accua-form-report-graph"), data, options);
185 });
186
187 jQuery(window).resize(function() {
188 jQuery.plot(jQuery("#accua-form-report-graph"), data, options);
189 });
190 </script>
191 <?php
192 } else {
193 echo '<p style="height:100px;">', __('No forms submitted', 'accua-form-api'), '</p>';
194 } ?>
195 <?php
196 $plugin_data = get_plugin_data(__FILE__);
197 _e('Version', 'accua-form-api'); echo " ".$plugin_data['Version'];
198 ?>
199 </div>
200
201 </div>
202 <span id="accua-forms-version">by Cimatti - <a href="http://www.cimatti.it/wordpress/contact-forms/">www.cimatti.it/wordpress/contact-forms</a>
203 <br /><?php
204 $plugin_data = get_plugin_data( __FILE__ );
205 _e('Version', 'accua-form-api'); echo " ".$plugin_data['Version'];
206 ?></span>
207 </div>
208 <?php
209
210 }
211
212
213 register_activation_hook(__FILE__, 'accua_forms_install');
214 function accua_forms_install(){
215 $modified = false;
216 $keys = get_option('accua_form_api_keys', array());
217 if (!isset($keys['hash'])) {
218 $modified = true;
219 $keys['hash'] = wp_generate_password(64,true,true);
220 }
221 if (!isset($keys['aes'])) {
222 $modified = true;
223 $keys['aes'] = wp_generate_password(64,true,true);
224 }
225 if ($modified) {
226 update_option('accua_form_api_keys', $keys);
227 }
228
229 global $wpdb;
230
231 require_once(ABSPATH.'wp-admin/upgrade-functions.php');
232
233 $charset_collate = '';
234 if ( ! empty($wpdb->charset) )
235 $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
236 if ( ! empty($wpdb->collate) )
237 $charset_collate .= " COLLATE $wpdb->collate";
238
239 $sql = "CREATE TABLE `{$wpdb->prefix}accua_forms_submissions` (
240 afs_id BIGINT(20) NOT NULL AUTO_INCREMENT,
241 afs_form_id VARCHAR(77) NOT NULL DEFAULT '',
242 afs_post_id BIGINT(20) NOT NULL DEFAULT 0,
243 afs_ip VARCHAR(255) NOT NULL DEFAULT '',
244 afs_uri VARCHAR(255) NOT NULL DEFAULT '',
245 afs_referrer VARCHAR(255) NOT NULL DEFAULT '',
246 afs_lang VARCHAR(60) NOT NULL DEFAULT '',
247 afs_created TIMESTAMP NOT NULL DEFAULT 0,
248 afs_submitted TIMESTAMP NOT NULL DEFAULT 0,
249 afs_status TINYINT(1) NOT NULL DEFAULT 0,
250 afs_stats TEXT NOT NULL DEFAULT '',
251 PRIMARY KEY (afs_id),
252 KEY form (afs_form_id, afs_status),
253 KEY uri (afs_uri),
254 KEY pid (afs_post_id),
255 KEY referrer (afs_referrer),
256 KEY status (afs_status, afs_id),
257 ) $charset_collate;";
258 dbDelta($sql);
259
260 $sql = "CREATE TABLE `{$wpdb->prefix}accua_forms_submissions_values` (
261 afsv_sub_id BIGINT(20) NOT NULL,
262 afsv_field_id VARCHAR(77) NOT NULL,
263 afsv_type varchar(255) NOT NULL DEFAULT '',
264 afsv_value TEXT NOT NULL DEFAULT '',
265 PRIMARY KEY (afsv_sub_id, afsv_field_id),
266 KEY value_index (afsv_field_id(77), afsv_value(256))
267 ) $charset_collate;";
268 dbDelta($sql);
269
270 $avail_fields = get_option('accua_forms_avail_fields', array());
271 if (!is_array($avail_fields)) {
272 $avail_fields = array();
273 }
274 $avail_fields += array(
275 'first_name' => array(
276 'id' => 'first_name',
277 'name' => 'First Name',
278 'type' => 'textfield',
279 'description' => '',
280 'default_value' => '',
281 'allowed_values' => '',
282 ),
283 'last_name' => array(
284 'id' => 'last_name',
285 'name' => 'Last Name',
286 'type' => 'textfield',
287 'description' => '',
288 'default_value' => '',
289 'allowed_values' => '',
290 ),
291 'email' => array(
292 'id' => 'email',
293 'name' => 'Email',
294 'type' => 'autoreply_email',
295 'description' => '',
296 'default_value' => '',
297 'allowed_values' => '',
298 ),
299 'address' => array(
300 'id' => 'address',
301 'name' => 'Address',
302 'type' => 'textfield',
303 'description' => '',
304 'default_value' => '',
305 'allowed_values' => '',
306 ),
307 'city' => array(
308 'id' => 'city',
309 'name' => 'City',
310 'type' => 'textfield',
311 'description' => '',
312 'default_value' => '',
313 'allowed_values' => '',
314 ),
315 'state_province' => array(
316 'id' => 'state_province',
317 'name' => 'State/Province',
318 'type' => 'textfield',
319 'description' => '',
320 'default_value' => '',
321 'allowed_values' => '',
322 ),
323 'country' => array(
324 'id' => 'country',
325 'name' => 'Country',
326 'type' => 'select',
327 'description' => '',
328 'default_value' => '-',
329 'allowed_values' => "-|Select...
330 Afghanistan
331 �
332 land Islands
333 Albania
334 Algeria
335 American Samoa
336 Andorra
337 Angola
338 Anguilla
339 Antarctica
340 Antigua And Barbuda
341 Argentina
342 Armenia
343 Aruba
344 Australia
345 Austria
346 Azerbaijan
347 Bahamas
348 Bahrain
349 Bangladesh
350 Barbados
351 Belarus
352 Belgium
353 Belize
354 Benin
355 Bermuda
356 Bhutan
357 Bolivia
358 Bosnia And Herzegovina
359 Botswana
360 Bouvet Island
361 Brazil
362 British Indian Ocean Territory
363 Brunei Darussalam
364 Bulgaria
365 Burkina Faso
366 Burundi
367 Cambodia
368 Cameroon
369 Canada
370 Cape Verde
371 Cayman Islands
372 Central African Republic
373 Chad
374 Chile
375 China
376 Christmas Island
377 Cocos (Keeling) Islands
378 Colombia
379 Comoros
380 Congo
381 Congo, The Democratic Republic Of The
382 Cook Islands
383 Costa Rica
384 Côte D'Ivoire
385 Croatia
386 Cuba
387 Cyprus
388 Czech Republic
389 Denmark
390 Djibouti
391 Dominica
392 Dominican Republic
393 Ecuador
394 Egypt
395 El Salvador
396 Equatorial Guinea
397 Eritrea
398 Estonia
399 Ethiopia
400 Falkland Islands (Malvinas)
401 Faroe Islands
402 Fiji
403 Finland
404 France
405 French Guiana
406 French Polynesia
407 French Southern Territories
408 Gabon
409 Gambia
410 Georgia
411 Germany
412 Ghana
413 Gibraltar
414 Greece
415 Greenland
416 Grenada
417 Guadeloupe
418 Guam
419 Guatemala
420 Guernsey
421 Guinea
422 Guinea-Bissau
423 Guyana
424 Haiti
425 Heard Island And Mcdonald Islands
426 Holy See (Vatican City State)
427 Honduras
428 Hong Kong
429 Hungary
430 Iceland
431 India
432 Indonesia
433 Iran, Islamic Republic Of
434 Iraq
435 Ireland
436 Isle Of Man
437 Israel
438 Italy
439 Jamaica
440 Japan
441 Jersey
442 Jordan
443 Kazakhstan
444 Kenya
445 Kiribati
446 Korea, Democratic People'S Republic Of
447 Korea, Republic Of
448 Kuwait
449 Kyrgyzstan
450 Lao People'S Democratic Republic
451 Latvia
452 Lebanon
453 Lesotho
454 Liberia
455 Libyan Arab Jamahiriya
456 Liechtenstein
457 Lithuania
458 Luxembourg
459 Macao
460 Macedonia, The Former Yugoslav Republic Of
461 Madagascar
462 Malawi
463 Malaysia
464 Maldives
465 Mali
466 Malta
467 Marshall Islands
468 Martinique
469 Mauritania
470 Mauritius
471 Mayotte
472 Mexico
473 Micronesia, Federated States Of
474 Moldova, Republic Of
475 Monaco
476 Mongolia
477 Montenegro
478 Montserrat
479 Morocco
480 Mozambique
481 Myanmar
482 Namibia
483 Nauru
484 Nepal
485 Netherlands
486 Netherlands Antilles
487 New Caledonia
488 New Zealand
489 Nicaragua
490 Niger
491 Nigeria
492 Niue
493 Norfolk Island
494 Northern Mariana Islands
495 Norway
496 Oman
497 Pakistan
498 Palau
499 Palestinian Territory, Occupied
500 Panama
501 Papua New Guinea
502 Paraguay
503 Peru
504 Philippines
505 Pitcairn
506 Poland
507 Portugal
508 Puerto Rico
509 Qatar
510 Réunion
511 Romania
512 Russian Federation
513 Rwanda
514 Saint Barthélemy
515 Saint Helena
516 Saint Kitts And Nevis
517 Saint Lucia
518 Saint Martin
519 Saint Pierre And Miquelon
520 Saint Vincent And The Grenadines
521 Samoa
522 San Marino
523 Sao Tome And Principe
524 Saudi Arabia
525 Senegal
526 Serbia
527 Seychelles
528 Sierra Leone
529 Singapore
530 Slovakia
531 Slovenia
532 Solomon Islands
533 Somalia
534 South Africa
535 South Georgia And The South Sandwich Islands
536 Spain
537 Sri Lanka
538 Sudan
539 Suriname
540 Svalbard And Jan Mayen
541 Swaziland
542 Sweden
543 Switzerland
544 Syrian Arab Republic
545 Taiwan, Province Of China
546 Tajikistan
547 Tanzania, United Republic Of
548 Thailand
549 Timor-Leste
550 Togo
551 Tokelau
552 Tonga
553 Trinidad And Tobago
554 Tunisia
555 Turkey
556 Turkmenistan
557 Turks And Caicos Islands
558 Tuvalu
559 Uganda
560 Ukraine
561 United Arab Emirates
562 United Kingdom
563 United States
564 United States Minor Outlying Islands
565 Uruguay
566 Uzbekistan
567 Vanuatu
568 Venezuela, Bolivarian Republic Of
569 Viet Nam
570 Virgin Islands, British
571 Virgin Islands, U.S.
572 Wallis And Futuna
573 Western Sahara
574 Yemen
575 Zambia
576 Zimbabwe",
577 ),
578 'message' => array(
579 'id' => 'message',
580 'name' => 'Message',
581 'type' => 'textarea',
582 'description' => '',
583 'default_value' => '',
584 'allowed_values' => '',
585 ),
586 'captcha' => array(
587 'id' => 'captcha',
588 'name' => 'Captcha',
589 'type' => 'captcha',
590 'description' => '',
591 'default_value' => '',
592 'allowed_values' => '',
593 ),
594 );
595 update_option('accua_forms_avail_fields', $avail_fields);
596
597
598 $form_data = get_option('accua_forms_default_form_data',array());
599 if (!is_array($form_data)) {
600 $form_data = array();
601 }
602 $form_data += array(
603 'success_message' => '<div style="padding: 10px; background-color: #fbf8b2; border: 1px solid #f7c84b;">
604 <h2>Thank you {first_name} {last_name},</h2>
605 We have received your contact request. Check your inbox for the confirmation message.
606
607 <strong>Can\'t find the email?</strong>
608
609 It doesn\'t happen often but your mailbox could apply strict spam rules that block our email from reaching your inbox. Try checking your spam folder.
610
611 Also check that the email you entered in the form (<strong>{email}</strong>) is correct. If it is not exact you can submit the form again.
612
613 For other possible problems you may have encountered do not hesitate to contact us
614
615 </div>',
616 'error_message' => '<div style="padding: 10px; background-color: #fbf8b2; border: 1px solid #f7c84b;">
617 <h2>Oops! Something went wrong.</h2>
618 Internet is an awfully complex place and even though we take every precaution to make sure things run smoothly every once in a while things can go wrong that are not under our control.
619
620 Please try filling in the form again.
621
622 For other possible problems you may have encountered do not hesitate to contact us
623
624 </div>',
625 'emails_from' => '',
626 'admin_emails_to' => get_option('admin_email', ''),
627 'emails_bcc' => '',
628 'admin_emails_subject' => 'A contact from your site',
629 'admin_emails_message' => '<table style="font-family: \'Lucida Sans\',\'Lucida Grande\', Verdana, Arial, Sans-Serif !important; background: #fff; margin-top: 10px; border: 1px solid #DDDDDD; max-width: 700px;" cellspacing="0" cellpadding="0" align="center">
630 <tbody>
631 <tr>
632 <td>
633 <table style="max-width:700px;" border="0" cellspacing="0" cellpadding="0" align="center">
634 <tbody>
635 <tr>
636 <td>
637 <table style="padding: 10px; background-color: #fbf8b2; border: 1px solid #f7c84b; max-width:700px;" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
638 <tbody>
639 <tr valign="top">
640 <td style="max-width:22px;"></td>
641 <td style="font-family: \'Lucida Sans\',\'Lucida Grande\', Verdana, Arial, Sans-Serif !important; padding: 15px 0px; max-width: 645px;">
642 <table>
643 <tbody>
644 <tr>
645 <td>On {__submitted_day_month_year} at {__submitted_hour} the following form was filled in.
646
647 <hr />
648
649 <strong>Page where the form was filled in</strong>
650 <a href="{__url}">{__url}</a></td>
651 </tr>
652 <tr>
653 <td id="submitted_html">{__submitted_html}</td>
654 </tr>
655 <tr>
656 <td>[form_if {__referrer} [<strong>Referrer</strong> - where did the contact come from <em>before reaching the page</em>: {__referrer}]]</td>
657 </tr>
658 <tr>
659 <td><strong>Contact IP</strong> {__ip}
660 <hr />
661 </td>
662 </tr>
663 <tr>
664 <td>[form_if {__autoreply} [The contact received in his email <a href="mailto:{email}">{email}</a> the following confirmation message:
665 <table>
666 <tbody>
667 <tr>
668 <td>{__confirmation_emails_message}</td>
669 </tr>
670 </tbody>
671 </table> ]]
672 </td>
673 </tr>
674 </tbody>
675 </table>
676 </td>
677 <td style="max-width:23px"></td>
678 </tr>
679 </tbody>
680 </table>
681 </td>
682 </tr>
683 </tbody>
684 </table>
685 </td>
686 </tr>
687 </tbody>
688 </table>',
689 'confirmation_emails_subject' => 'Your message',
690 'confirmation_emails_message' => '<h2>Thank you {first_name} {last_name},</h2>
691 Thank Your for your contact request.
692
693 We will contact you as soon as possible.
694
695 Sincerely,
696
697 The Website Team
698
699 <hr />',
700
701 'layout' => 'sidebyside',
702 'style_margin' => '',
703 'style_border_color' => '',
704 'style_border_width' => '',
705 'style_border_radius' => '',
706 'style_background_color' => '',
707 'style_padding' => '',
708 'style_color' => '',
709 'style_font_size' => '',
710 'style_field_spacing' => '',
711 'style_field_border_color' => '',
712 'style_field_border_width' => '',
713 'style_field_border_radius' => '',
714 'style_field_background_color' => '',
715 'style_field_padding' => '',
716 'style_field_color' => '',
717 'style_submit_border_color' => '',
718 'style_submit_border_width' => '',
719 'style_submit_border_radius' => '',
720 'style_submit_background_color' => '',
721 'style_submit_padding' => '',
722 'style_submit_color' => '',
723 'style_submit_font_size' => '',
724 );
725 update_option('accua_forms_default_form_data', $form_data);
726
727 }
728