PluginProbe
Contact Forms by Cimatti / 1.1
Contact Forms by Cimatti v1.1
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.1, at contact-forms.php

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