Version Description
- 29.11.2013 =
- NEW : Ability to not use name field.
- NEW : We added mime types for .aar and .sce files.
Download this release
Release Info
Developer | bestwebsoft |
Plugin | Contact Form by BestWebSoft |
Version | 3.66 |
Comparing to | |
See all releases |
Code changes from version 3.65 to 3.66
- bws_menu/bws_menu.php +27 -27
- contact_form.php +204 -123
- css/style.css +10 -1
- readme.txt +10 -1
- screenshot-4.jpg +0 -0
bws_menu/bws_menu.php
CHANGED
@@ -18,25 +18,25 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
|
|
18 |
$array_recomend = array();
|
19 |
$count_activate = $count_install = $count_recomend = 0;
|
20 |
$array_plugins = array(
|
21 |
-
array( 'captcha\/captcha.php', 'Captcha', 'http://bestwebsoft.com/plugin/captcha-plugin
|
22 |
-
array( 'contact-form-plugin\/contact_form.php', 'Contact Form', 'http://bestwebsoft.com/plugin/contact-form
|
23 |
-
array( 'facebook-button-plugin\/facebook-button-plugin.php', 'Facebook Like Button Plugin', 'http://bestwebsoft.com/plugin/facebook-like-button-plugin
|
24 |
-
array( 'twitter-plugin\/twitter.php', 'Twitter Plugin', 'http://bestwebsoft.com/plugin/twitter-plugin
|
25 |
-
array( 'portfolio\/portfolio.php', 'Portfolio', 'http://bestwebsoft.com/plugin/portfolio-plugin
|
26 |
-
array( 'gallery-plugin\/gallery-plugin.php', 'Gallery', 'http://bestwebsoft.com/plugin/gallery-plugin
|
27 |
-
array( 'adsense-plugin\/adsense-plugin.php', 'Google AdSense Plugin', 'http://bestwebsoft.com/plugin/google-adsense-plugin
|
28 |
-
array( 'custom-search-plugin\/custom-search-plugin.php', 'Custom Search Plugin', 'http://bestwebsoft.com/plugin/custom-search-plugin
|
29 |
-
array( 'quotes-and-tips\/quotes-and-tips.php', 'Quotes and Tips', 'http://bestwebsoft.com/plugin/quotes-and-tips
|
30 |
-
array( 'google-sitemap-plugin\/google-sitemap-plugin.php', 'Google sitemap plugin', 'http://bestwebsoft.com/plugin/google-sitemap-plugin
|
31 |
-
array( 'updater\/updater.php', 'Updater', 'http://bestwebsoft.com/plugin/updater-plugin
|
32 |
-
array( 'custom-fields-search\/custom-fields-search.php', 'Custom Fields Search', 'http://bestwebsoft.com/plugin/custom-fields-search
|
33 |
-
array( 'google-one\/google-plus-one.php', 'Google +1', 'http://bestwebsoft.com/plugin/google-plus-one
|
34 |
-
array( 'relevant\/related-posts-plugin.php', 'Related Posts Plugin', 'http://bestwebsoft.com/plugin/related-posts-plugin
|
35 |
-
array( 'contact-form-to-db\/contact_form_to_db.php', 'Contact Form to DB', 'http://bestwebsoft.com/plugin/contact-form-to-db
|
36 |
-
array( 'pdf-print\/pdf-print.php', 'PDF & Print', 'http://bestwebsoft.com/plugin/pdf-print
|
37 |
);
|
38 |
foreach ( $array_plugins as $plugins ) {
|
39 |
-
if ( 0 < count( preg_grep( "/"
|
40 |
$array_activate[ $count_activate ]["title"] = $plugins[1];
|
41 |
$array_activate[ $count_activate ]["link"] = $plugins[2];
|
42 |
$array_activate[ $count_activate ]["href"] = $plugins[3];
|
@@ -61,14 +61,14 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
|
|
61 |
$array_recomend_pro = array();
|
62 |
$count_activate_pro = $count_install_pro = $count_recomend_pro = 0;
|
63 |
$array_plugins_pro = array(
|
64 |
-
array( 'gallery-plugin-pro\/gallery-plugin-pro.php', 'Gallery Pro', 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0', 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0#purchase', 'admin.php?page=gallery-plugin-pro.php' ),
|
65 |
-
array( 'contact-form-pro\/contact_form_pro.php', 'Contact Form Pro', 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71', 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71#purchase', 'admin.php?page=contact_form_pro.php' ),
|
66 |
-
array( 'captcha-pro\/captcha_pro.php', 'Captcha Pro', 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e', 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e#purchase', 'admin.php?page=captcha_pro.php' ),
|
67 |
-
array( 'updater-pro\/updater_pro.php', 'Updater Pro', 'http://bestwebsoft.com/plugin/updater-pro/?k=cf633acbefbdff78545347fe08a3aecb', 'http://bestwebsoft.com/plugin/updater-pro?k=cf633acbefbdff78545347fe08a3aecb#purchase', 'admin.php?page=updater-pro-options' ),
|
68 |
-
array( 'contact-form-to-db-pro\/contact_form_to_db_pro.php', 'Contact Form to DB Pro', 'http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ce5f4a9006ec906e4db643669246c6a', 'http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ce5f4a9006ec906e4db643669246c6a#purchase', 'admin.php?page=cntctfrmtdbpr_settings' )
|
69 |
);
|
70 |
foreach ( $array_plugins_pro as $plugins ) {
|
71 |
-
if ( 0 < count( preg_grep( "/"
|
72 |
$array_activate_pro[ $count_activate_pro ]["title"] = $plugins[1];
|
73 |
$array_activate_pro[ $count_activate_pro ]["link"] = $plugins[2];
|
74 |
$array_activate_pro[ $count_activate_pro ]["href"] = $plugins[3];
|
@@ -95,10 +95,10 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
|
|
95 |
$array_recomend_theme = array();
|
96 |
$count_activate_theme = $count_install_theme = $count_recomend_theme = 0;
|
97 |
$array_theme = array(
|
98 |
-
array( 'central', 'Central', 'http://bestwebsoft.com/theme/central
|
99 |
-
array( 'simple-classic', 'Simple Classic', 'http://bestwebsoft.com/theme/simple-classic
|
100 |
-
array( 'reddish', 'Reddish', 'http://bestwebsoft.com/theme/reddish
|
101 |
-
array( 'wordpost', 'Wordpost', 'http://bestwebsoft.com/theme/wordpost
|
102 |
);
|
103 |
foreach ( $array_theme as $theme ) {
|
104 |
if ( $current_theme->get( 'Name' ) == $theme[1] ) {
|
18 |
$array_recomend = array();
|
19 |
$count_activate = $count_install = $count_recomend = 0;
|
20 |
$array_plugins = array(
|
21 |
+
array( 'captcha\/captcha.php', 'Captcha', 'http://bestwebsoft.com/plugin/captcha-plugin/?k=d678516c0990e781edfb6a6c874f0b8a&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/captcha-plugin/?k=d678516c0990e781edfb6a6c874f0b8a&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Captcha+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=captcha.php' ),
|
22 |
+
array( 'contact-form-plugin\/contact_form.php', 'Contact Form', 'http://bestwebsoft.com/plugin/contact-form/?k=012327ef413e5b527883e031d43b088b&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/contact-form/?k=012327ef413e5b527883e031d43b088b&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Contact+Form+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=contact_form.php' ),
|
23 |
+
array( 'facebook-button-plugin\/facebook-button-plugin.php', 'Facebook Like Button Plugin', 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/?k=05ec4f12327f55848335802581467d55&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/?k=05ec4f12327f55848335802581467d55&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Facebook+Like+Button+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=facebook-button-plugin.php' ),
|
24 |
+
array( 'twitter-plugin\/twitter.php', 'Twitter Plugin', 'http://bestwebsoft.com/plugin/twitter-plugin/?k=f8cb514e25bd7ec4974d64435c5eb333&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/twitter-plugin/?k=f8cb514e25bd7ec4974d64435c5eb333&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Twitter+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=twitter.php' ),
|
25 |
+
array( 'portfolio\/portfolio.php', 'Portfolio', 'http://bestwebsoft.com/plugin/portfolio-plugin/?k=1249a890c5b7bba6bda3f528a94f768b&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/portfolio-plugin/?k=1249a890c5b7bba6bda3f528a94f768b&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Portfolio+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=portfolio.php' ),
|
26 |
+
array( 'gallery-plugin\/gallery-plugin.php', 'Gallery', 'http://bestwebsoft.com/plugin/gallery-plugin/?k=2da21c0a64eec7ebf16337fa134c5f78&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/gallery-plugin/?k=2da21c0a64eec7ebf16337fa134c5f78&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Gallery+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=gallery-plugin.php' ),
|
27 |
+
array( 'adsense-plugin\/adsense-plugin.php', 'Google AdSense Plugin', 'http://bestwebsoft.com/plugin/google-adsense-plugin/?k=60e3979921e354feb0347e88e7d7b73d&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/google-adsense-plugin/?k=60e3979921e354feb0347e88e7d7b73d&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Adsense+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=adsense-plugin.php' ),
|
28 |
+
array( 'custom-search-plugin\/custom-search-plugin.php', 'Custom Search Plugin', 'http://bestwebsoft.com/plugin/custom-search-plugin/?k=933be8f3a8b8719d95d1079d15443e29&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/custom-search-plugin/?k=933be8f3a8b8719d95d1079d15443e29&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Search+plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=custom_search.php' ),
|
29 |
+
array( 'quotes-and-tips\/quotes-and-tips.php', 'Quotes and Tips', 'http://bestwebsoft.com/plugin/quotes-and-tips/?k=5738a4e85a798c4a5162240c6515098d&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/quotes-and-tips/?k=5738a4e85a798c4a5162240c6515098d&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Quotes+and+Tips+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=quotes-and-tips.php' ),
|
30 |
+
array( 'google-sitemap-plugin\/google-sitemap-plugin.php', 'Google sitemap plugin', 'http://bestwebsoft.com/plugin/google-sitemap-plugin/?k=5202b2f5ce2cf85daee5e5f79a51d806&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/google-sitemap-plugin/?k=5202b2f5ce2cf85daee5e5f79a51d806&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+sitemap+plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=google-sitemap-plugin.php' ),
|
31 |
+
array( 'updater\/updater.php', 'Updater', 'http://bestwebsoft.com/plugin/updater-plugin/?k=66f3ecd4c1912009d395c4bb30f779d1&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/updater-plugin/?k=66f3ecd4c1912009d395c4bb30f779d1&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=updater+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=updater-options' ),
|
32 |
+
array( 'custom-fields-search\/custom-fields-search.php', 'Custom Fields Search', 'http://bestwebsoft.com/plugin/custom-fields-search/?k=f3f8285bb069250c42c6ffac95ed3284&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/custom-fields-search/?k=f3f8285bb069250c42c6ffac95ed3284&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Fields+Search+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=custom_fields_search.php' ),
|
33 |
+
array( 'google-one\/google-plus-one.php', 'Google +1', 'http://bestwebsoft.com/plugin/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=google-plus-one.php' ),
|
34 |
+
array( 'relevant\/related-posts-plugin.php', 'Related Posts Plugin', 'http://bestwebsoft.com/plugin/related-posts-plugin/?k=73fb737037f7141e66415ec259f7e426&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/related-posts-plugin/?k=73fb737037f7141e66415ec259f7e426&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&s=Related+Posts+Plugin+Bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=related-posts-plugin.php' ),
|
35 |
+
array( 'contact-form-to-db\/contact_form_to_db.php', 'Contact Form to DB', 'http://bestwebsoft.com/plugin/contact-form-to-db/?k=ba3747d317c2692e4136ca096a8989d6&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/contact-form-to-db/?k=ba3747d317c2692e4136ca096a8989d6&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&s=Contact+Form+to+DB+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=cntctfrmtdb_settings' ),
|
36 |
+
array( 'pdf-print\/pdf-print.php', 'PDF & Print', 'http://bestwebsoft.com/plugin/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&wp_v=' . $wp_version . '#download', '/wp-admin/plugin-install.php?tab=search&s=PDF+Print+Bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=pdf-print.php' )
|
37 |
);
|
38 |
foreach ( $array_plugins as $plugins ) {
|
39 |
+
if ( 0 < count( preg_grep( "/" . $plugins[0] . "/", $active_plugins ) ) || is_plugin_active_for_network( str_replace( '\\', '', $plugins[0] ) ) ) {
|
40 |
$array_activate[ $count_activate ]["title"] = $plugins[1];
|
41 |
$array_activate[ $count_activate ]["link"] = $plugins[2];
|
42 |
$array_activate[ $count_activate ]["href"] = $plugins[3];
|
61 |
$array_recomend_pro = array();
|
62 |
$count_activate_pro = $count_install_pro = $count_recomend_pro = 0;
|
63 |
$array_plugins_pro = array(
|
64 |
+
array( 'gallery-plugin-pro\/gallery-plugin-pro.php', 'Gallery Pro', 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0&wp_v=' . $wp_version . '#purchase', 'admin.php?page=gallery-plugin-pro.php' ),
|
65 |
+
array( 'contact-form-pro\/contact_form_pro.php', 'Contact Form Pro', 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71&wp_v=' . $wp_version . '#purchase', 'admin.php?page=contact_form_pro.php' ),
|
66 |
+
array( 'captcha-pro\/captcha_pro.php', 'Captcha Pro', 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e&wp_v=' . $wp_version . '#purchase', 'admin.php?page=captcha_pro.php' ),
|
67 |
+
array( 'updater-pro\/updater_pro.php', 'Updater Pro', 'http://bestwebsoft.com/plugin/updater-pro/?k=cf633acbefbdff78545347fe08a3aecb&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/updater-pro?k=cf633acbefbdff78545347fe08a3aecb&wp_v=' . $wp_version . '#purchase', 'admin.php?page=updater-pro-options' ),
|
68 |
+
array( 'contact-form-to-db-pro\/contact_form_to_db_pro.php', 'Contact Form to DB Pro', 'http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ce5f4a9006ec906e4db643669246c6a&wp_v=' . $wp_version, 'http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ce5f4a9006ec906e4db643669246c6a&wp_v=' . $wp_version . '#purchase', 'admin.php?page=cntctfrmtdbpr_settings' )
|
69 |
);
|
70 |
foreach ( $array_plugins_pro as $plugins ) {
|
71 |
+
if ( 0 < count( preg_grep( "/" . $plugins[0] . "/", $active_plugins ) ) || is_plugin_active_for_network( str_replace( '\\', '', $plugins[0] ) ) ) {
|
72 |
$array_activate_pro[ $count_activate_pro ]["title"] = $plugins[1];
|
73 |
$array_activate_pro[ $count_activate_pro ]["link"] = $plugins[2];
|
74 |
$array_activate_pro[ $count_activate_pro ]["href"] = $plugins[3];
|
95 |
$array_recomend_theme = array();
|
96 |
$count_activate_theme = $count_install_theme = $count_recomend_theme = 0;
|
97 |
$array_theme = array(
|
98 |
+
array( 'central', 'Central', 'http://bestwebsoft.com/theme/central/?k=77c0199aabdb1f601a0504e312bee220&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/central/?k=77c0199aabdb1f601a0504e312bee220&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&s=Central&search=Search' ),
|
99 |
+
array( 'simple-classic', 'Simple Classic', 'http://bestwebsoft.com/theme/simple-classic/?k=b3990bfc85125747f48ece9f011f4cde&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/simple-classic/?k=b3990bfc85125747f48ece9f011f4cde&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&type=term&s=Simple+Classic&search=Search' ),
|
100 |
+
array( 'reddish', 'Reddish', 'http://bestwebsoft.com/theme/reddish/?k=1ea187e3fd401fd278e23a333abaf4f6&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/reddish/?k=1ea187e3fd401fd278e23a333abaf4f6&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&type=term&s=reddish&search=Search' ),
|
101 |
+
array( 'wordpost', 'Wordpost', 'http://bestwebsoft.com/theme/wordpost/?k=f0fc8c98135c9657751224562aca7a55&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/wordpost/?k=f0fc8c98135c9657751224562aca7a55&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&type=term&s=Wordpost&search=Search' )
|
102 |
);
|
103 |
foreach ( $array_theme as $theme ) {
|
104 |
if ( $current_theme->get( 'Name' ) == $theme[1] ) {
|
contact_form.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Form
|
|
4 |
Plugin URI: http://bestwebsoft.com/plugin/
|
5 |
Description: Plugin for Contact Form.
|
6 |
Author: BestWebSoft
|
7 |
-
Version: 3.
|
8 |
Author URI: http://bestwebsoft.com/
|
9 |
License: GPLv2 or later
|
10 |
*/
|
@@ -54,8 +54,9 @@ if( ! function_exists( 'cntctfrm_settings' ) ) {
|
|
54 |
'cntctfrm_send_copy' => 0,
|
55 |
'cntctfrm_from_field' => get_bloginfo( 'name' ),
|
56 |
'cntctfrm_select_from_field' => 'custom',
|
57 |
-
'
|
58 |
'cntctfrm_display_address_field' => 0,
|
|
|
59 |
'cntctfrm_required_name_field' => 1,
|
60 |
'cntctfrm_required_address_field' => 0,
|
61 |
'cntctfrm_required_email_field' => 1,
|
@@ -232,7 +233,8 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
232 |
$cntctfrm_options_submit['cntctfrm_attachment_explanations'] = 1;
|
233 |
$cntctfrm_options_submit['cntctfrm_send_copy'] = 0;
|
234 |
$cntctfrm_options_submit['cntctfrm_from_field'] = get_bloginfo( 'name' );
|
235 |
-
$cntctfrm_options_submit['cntctfrm_select_from_field'] = 'custom';
|
|
|
236 |
$cntctfrm_options_submit['cntctfrm_display_address_field'] = 0;
|
237 |
$cntctfrm_options_submit['cntctfrm_display_phone_field'] = 0;
|
238 |
$cntctfrm_options_submit['cntctfrm_required_name_field'] = 1;
|
@@ -275,8 +277,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
275 |
$cntctfrm_options_submit['cntctfrm_attachment_size_error'] = $cntctfrm_option_defaults['cntctfrm_attachment_size_error'];
|
276 |
$cntctfrm_options_submit['cntctfrm_captcha_error'] = $cntctfrm_option_defaults['cntctfrm_captcha_error'];
|
277 |
$cntctfrm_options_submit['cntctfrm_form_error'] = $cntctfrm_option_defaults['cntctfrm_form_error'];
|
278 |
-
}
|
279 |
-
else {
|
280 |
$cntctfrm_options_submit['cntctfrm_name_label']['en'] = $cntctfrm_option_defaults['cntctfrm_name_label']['en'];
|
281 |
$cntctfrm_options_submit['cntctfrm_address_label']['en'] = $cntctfrm_option_defaults['cntctfrm_address_label']['en'];
|
282 |
$cntctfrm_options_submit['cntctfrm_email_label']['en'] = $cntctfrm_option_defaults['cntctfrm_email_label']['en'];
|
@@ -307,6 +308,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
307 |
$cntctfrm_options_submit['cntctfrm_mail_method'] = $_POST['cntctfrm_mail_method'];
|
308 |
$cntctfrm_options_submit['cntctfrm_from_field'] = $_POST['cntctfrm_from_field'];
|
309 |
$cntctfrm_options_submit['cntctfrm_select_from_field'] = $_POST['cntctfrm_select_from_field'];
|
|
|
310 |
$cntctfrm_options_submit['cntctfrm_display_address_field'] = isset( $_POST['cntctfrm_display_address_field']) ? 1 : 0;
|
311 |
$cntctfrm_options_submit['cntctfrm_display_phone_field'] = isset( $_POST['cntctfrm_display_phone_field']) ? 1 : 0;
|
312 |
$cntctfrm_options_submit['cntctfrm_attachment'] = isset( $_POST['cntctfrm_attachment']) ? $_POST['cntctfrm_attachment'] : 0;
|
@@ -355,14 +357,17 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
355 |
}
|
356 |
}
|
357 |
|
358 |
-
|
|
|
|
|
|
|
|
|
359 |
if ( $cntctfrm_options_submit['cntctfrm_display_address_field'] == 0 ) {
|
360 |
$cntctfrm_options_submit['cntctfrm_required_address_field'] = 0;
|
361 |
} else {
|
362 |
$cntctfrm_options_submit['cntctfrm_required_address_field'] = isset( $_POST['cntctfrm_required_address_field']) ? 1 : 0;
|
363 |
}
|
364 |
-
$cntctfrm_options_submit['cntctfrm_required_email_field']
|
365 |
-
|
366 |
if ( $cntctfrm_options_submit['cntctfrm_display_phone_field'] == 0 ) {
|
367 |
$cntctfrm_options_submit['cntctfrm_required_phone_field'] = 0;
|
368 |
} else {
|
@@ -402,7 +407,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
402 |
$cntctfrm_options_submit['cntctfrm_submit_label'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_submit_label'][ $key ] ) );
|
403 |
$cntctfrm_options_submit['cntctfrm_name_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_name_error'][ $key ] ) );
|
404 |
$cntctfrm_options_submit['cntctfrm_address_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_address_error'][ $key ] ) );
|
405 |
-
$cntctfrm_options_submit['cntctfrm_email_error'][ $key ] = stripcslashes(
|
406 |
$cntctfrm_options_submit['cntctfrm_phone_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_phone_error'][ $key ] ) );
|
407 |
$cntctfrm_options_submit['cntctfrm_subject_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_subject_error'][ $key ] ) );
|
408 |
$cntctfrm_options_submit['cntctfrm_message_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_message_error'][ $key ] ) );
|
@@ -413,8 +418,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
413 |
$cntctfrm_options_submit['cntctfrm_captcha_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_captcha_error'][ $key ] ) );
|
414 |
$cntctfrm_options_submit['cntctfrm_form_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_form_error'][ $key ] ) );
|
415 |
}
|
416 |
-
}
|
417 |
-
else {
|
418 |
if( empty( $cntctfrm_options['cntctfrm_language'] ) ) {
|
419 |
$cntctfrm_options_submit['cntctfrm_name_label'] = $cntctfrm_option_defaults['cntctfrm_name_label'];
|
420 |
$cntctfrm_options_submit['cntctfrm_address_label'] = $cntctfrm_option_defaults['cntctfrm_address_label'];
|
@@ -425,8 +429,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
425 |
$cntctfrm_options_submit['cntctfrm_attachment_label'] = $cntctfrm_option_defaults['cntctfrm_attachment_label'];
|
426 |
$cntctfrm_options_submit['cntctfrm_attachment_tooltip'] = $cntctfrm_option_defaults['cntctfrm_attachment_tooltip'];
|
427 |
$cntctfrm_options_submit['cntctfrm_send_copy_label'] = $cntctfrm_option_defaults['cntctfrm_send_copy_label'];
|
428 |
-
|
429 |
-
$cntctfrm_options_submit['cntctfrm_thank_text'] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_thank_text'] ) );
|
430 |
$cntctfrm_options_submit['cntctfrm_submit_label'] = $cntctfrm_option_defaults['cntctfrm_submit_label'];
|
431 |
$cntctfrm_options_submit['cntctfrm_name_error'] = $cntctfrm_option_defaults['cntctfrm_name_error'];
|
432 |
$cntctfrm_options_submit['cntctfrm_address_error'] = $cntctfrm_option_defaults['cntctfrm_address_error'];
|
@@ -439,9 +442,11 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
439 |
$cntctfrm_options_submit['cntctfrm_attachment_move_error'] = $cntctfrm_option_defaults['cntctfrm_attachment_move_error'];
|
440 |
$cntctfrm_options_submit['cntctfrm_attachment_size_error'] = $cntctfrm_option_defaults['cntctfrm_attachment_size_error'];
|
441 |
$cntctfrm_options_submit['cntctfrm_captcha_error'] = $cntctfrm_option_defaults['cntctfrm_captcha_error'];
|
442 |
-
$cntctfrm_options_submit['cntctfrm_form_error'] = $cntctfrm_option_defaults['cntctfrm_form_error'];
|
443 |
-
|
444 |
-
|
|
|
|
|
445 |
$cntctfrm_options_submit['cntctfrm_name_label']['en'] = $cntctfrm_option_defaults['cntctfrm_name_label']['en'];
|
446 |
$cntctfrm_options_submit['cntctfrm_address_label']['en'] = $cntctfrm_option_defaults['cntctfrm_address_label']['en'];
|
447 |
$cntctfrm_options_submit['cntctfrm_email_label']['en'] = $cntctfrm_option_defaults['cntctfrm_email_label']['en'];
|
@@ -451,7 +456,6 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
451 |
$cntctfrm_options_submit['cntctfrm_attachment_label']['en'] = $cntctfrm_option_defaults['cntctfrm_attachment_label']['en'];
|
452 |
$cntctfrm_options_submit['cntctfrm_attachment_tooltip']['en'] = $cntctfrm_option_defaults['cntctfrm_attachment_tooltip']['en'];
|
453 |
$cntctfrm_options_submit['cntctfrm_send_copy_label']['en'] = $cntctfrm_option_defaults['cntctfrm_send_copy_label']['en'];
|
454 |
-
// $cntctfrm_options_submit['cntctfrm_thank_text']['en'] = $cntctfrm_option_defaults['cntctfrm_thank_text']['en'];
|
455 |
$cntctfrm_options_submit['cntctfrm_submit_label']['en'] = $cntctfrm_option_defaults['cntctfrm_submit_label']['en'];
|
456 |
$cntctfrm_options_submit['cntctfrm_name_error']['en'] = $cntctfrm_option_defaults['cntctfrm_name_error']['en'];
|
457 |
$cntctfrm_options_submit['cntctfrm_address_error']['en'] = $cntctfrm_option_defaults['cntctfrm_address_error']['en'];
|
@@ -467,7 +471,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
467 |
$cntctfrm_options_submit['cntctfrm_form_error']['en'] = $cntctfrm_option_defaults['cntctfrm_form_error']['en'];
|
468 |
|
469 |
foreach ( $_POST['cntctfrm_thank_text'] as $key => $val ) {
|
470 |
-
$cntctfrm_options_submit['cntctfrm_thank_text'][ $key ] = $_POST['cntctfrm_thank_text'][ $key ];
|
471 |
}
|
472 |
}
|
473 |
}
|
@@ -563,7 +567,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
563 |
<td colspan="2">
|
564 |
<div class="cntctfrmpr_pro_version_tooltip_settings">
|
565 |
<?php _e( 'This functionality is available in the Pro version of the plugin. For more details, please follow the link', 'contact_form' ); ?>
|
566 |
-
<a title="Contact Form Pro" target="_blank" href="http://bestwebsoft.com/plugin/contact-form-pro/?k=697c5e74f39779ce77850e11dbe21962&pn=77&v=<?php echo $plugin_info["Version"]; ?>"> <?php _e( 'Contact Form Pro', 'contact_form' ); ?></a>
|
567 |
</div>
|
568 |
<input type="radio" id="cntctfrmpr_select_email_department" name="cntctfrmpr_select_email" value="departments" disabled="disabled" />
|
569 |
<div class="cntctfrmpr_department_table"><img src="<?php echo plugins_url( 'images/pro_screen_1.png', __FILE__ ); ?>" alt="" /></div>
|
@@ -587,7 +591,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
587 |
<?php }
|
588 |
} else { ?>
|
589 |
<input disabled="disabled" type="checkbox" name="cntctfrm_save_email_to_db" value="1" />
|
590 |
-
<span style="color: #888888;font-size: 10px;">(<?php _e( 'Using Contact Form to DB powered by', 'contact_form' ); ?> <a href="http://bestwebsoft.com/plugin/">bestwebsoft.com</a>) <a href="http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=19d806f45d866e70545de83169b274f2&pn=77&v=<?php echo $plugin_info["Version"]; ?>"><?php _e( 'Download Contact Form to DB', 'contact_form' ); ?></a></span>
|
591 |
<?php } ?>
|
592 |
</td>
|
593 |
</tr>
|
@@ -598,7 +602,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
598 |
<input id="cntctfrm_hide_additional_settings" type="button" class="button-small button" value="<?php _e( "Hide", 'contact_form' ); ?>" style="display: none;">
|
599 |
</td>
|
600 |
</tr>
|
601 |
-
<tr class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
|
602 |
<th scope="row" style="width:200px;"><?php _e( 'What to use?', 'contact_form' ); ?></th>
|
603 |
<td colspan="2">
|
604 |
<label><input type='radio' name='cntctfrm_mail_method' value='wp-mail' <?php if( $cntctfrm_options['cntctfrm_mail_method'] == 'wp-mail' ) echo "checked=\"checked\" "; ?>/>
|
@@ -628,79 +632,151 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
|
|
628 |
</td>
|
629 |
</tr>
|
630 |
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
631 |
-
<th scope="row" style="width:200px;"><?php _e( "
|
632 |
<td colspan="2">
|
633 |
-
<
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
651 |
</td>
|
652 |
</tr>
|
653 |
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
654 |
<th scope="row" style="width:200px;"></th>
|
655 |
-
<td colspan="
|
656 |
<div class="cntctfrmpr_pro_version_tooltip_settings" style="margin-top: -30px;">
|
657 |
<?php _e( 'This functionality is available in the Pro version of the plugin. For more details, please follow the link', 'contact_form' ); ?>
|
658 |
-
<a title="Contact Form Pro" target="_blank" href="http://bestwebsoft.com/plugin/contact-form-pro/?k=697c5e74f39779ce77850e11dbe21962&pn=77&v=<?php echo $plugin_info["Version"]; ?>"> <?php _e( 'Contact Form Pro', 'contact_form' ); ?></a>
|
659 |
</div>
|
660 |
-
<label><input
|
661 |
-
<label><input
|
662 |
-
</td>
|
663 |
-
</tr>
|
664 |
-
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
665 |
-
<th scope="row" style="width:200px;"><?php _e( "Display tips below the Attachment block", 'contact_form' ); ?></th>
|
666 |
-
<td colspan="2">
|
667 |
-
<input type="checkbox" id="cntctfrm_attachment_explanations" name="cntctfrm_attachment_explanations" value="1" <?php if ( $cntctfrm_options['cntctfrm_attachment_explanations'] == '1' && $cntctfrm_options['cntctfrm_attachment'] == '1' ) echo "checked=\"checked\" "; ?>/>
|
668 |
-
<div class="cntctfrmpr_help_box" style="margin: -27px 35px 0;float:none;">
|
669 |
-
<div class="cntctfrmpr_hidden_help_text" style="display: none;width: auto;"><img title="" src="<?php echo plugins_url( 'images/tooltip_attachment_tips.png', __FILE__ ); ?>" alt=""/></div>
|
670 |
-
</div>
|
671 |
</td>
|
672 |
</tr>
|
673 |
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
674 |
<th scope="row" style="width:200px;"><?php _e( "Delete an attachment file from the server after the email is sent", 'contact_form' ); ?> </th>
|
675 |
-
<td colspan="
|
676 |
<input type="checkbox" id="cntctfrm_delete_attached_file" name="cntctfrm_delete_attached_file" value="1" <?php if ( $cntctfrm_options['cntctfrm_delete_attached_file'] == '1' ) echo "checked=\"checked\" "; ?>/>
|
677 |
</td>
|
678 |
-
</tr>
|
679 |
-
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
680 |
-
<th scope="row" style="width:200px;"><?php _e( "Display 'Send me a copy' block", 'contact_form' ); ?> </th>
|
681 |
-
<td colspan="2">
|
682 |
-
<input type="checkbox" id="cntctfrm_send_copy" name="cntctfrm_send_copy" value="1" <?php if ( $cntctfrm_options['cntctfrm_send_copy'] == '1') echo "checked=\"checked\" "; ?>/>
|
683 |
-
<div class="cntctfrmpr_help_box" style="margin: -27px 35px 0;float:none;">
|
684 |
-
<div class="cntctfrmpr_hidden_help_text" style="display: none;width: auto;"><img title="" src="<?php echo plugins_url( 'images/tooltip_sendme_block.png', __FILE__ ); ?>" alt=""/></div>
|
685 |
-
</div>
|
686 |
-
</td>
|
687 |
-
</tr>
|
688 |
-
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
689 |
-
<th scope="row" style="width:200px;"><?php _e( "Required fields", 'contact_form' ); ?></th>
|
690 |
-
<td colspan="2">
|
691 |
-
<label><input type="checkbox" id="cntctfrm_required_name_field" name="cntctfrm_required_name_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_required_name_field'] == '1' ) echo "checked=\"checked\" "; ?>/> <?php _e( "Name", 'contact_form' ); ?></label><br />
|
692 |
-
<label><input type="checkbox" id="cntctfrm_required_address_field" name="cntctfrm_required_address_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_required_address_field'] == '1' ) echo "checked=\"checked\" "; ?>/> <?php _e( "Address", 'contact_form' ); ?></label><br />
|
693 |
-
<label><input type="checkbox" id="cntctfrm_required_email_field" name="cntctfrm_required_email_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_required_email_field'] == '1' ) echo "checked=\"checked\" "; ?>/> <?php _e( "Email Address", 'contact_form' ); ?></label><br />
|
694 |
-
<label><input type="checkbox" id="cntctfrm_required_phone_field" name="cntctfrm_required_phone_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_required_phone_field'] == '1' ) echo "checked=\"checked\" "; ?>/> <?php _e( "Phone", 'contact_form' ); ?></label><br />
|
695 |
-
<label><input type="checkbox" id="cntctfrm_required_subject_field" name="cntctfrm_required_subject_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_required_subject_field'] == '1' ) echo "checked=\"checked\" "; ?>/> <?php _e( "Subject", 'contact_form' ); ?></label><br />
|
696 |
-
<label><input type="checkbox" id="cntctfrm_required_message_field" name="cntctfrm_required_message_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_required_message_field'] == '1' ) echo "checked=\"checked\" "; ?>/> <?php _e( "Message", 'contact_form' ); ?></label>
|
697 |
-
</td>
|
698 |
-
</tr>
|
699 |
-
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
700 |
-
<th scope="row" style="width:200px;"><?php _e( "Required symbol", 'contact_form' ); ?></th>
|
701 |
-
<td colspan="2">
|
702 |
-
<input type="text" id="cntctfrm_required_symbol" name="cntctfrm_required_symbol" value="<?php echo $cntctfrm_options['cntctfrm_required_symbol']; ?>"/>
|
703 |
-
</td>
|
704 |
</tr>
|
705 |
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
706 |
<th scope="row" style="width:200px;"><?php _e( "Display additional info in the email", 'contact_form' ); ?></th>
|
@@ -858,7 +934,7 @@ if ( ! function_exists( 'cntctfrm_settings_page_extra' ) ) {
|
|
858 |
<div class="clear"></div>
|
859 |
<div class="cntctfrmpr_pro_version_tooltip">
|
860 |
<?php _e( 'This functionality is available in the Pro version of the plugin. For more details, please follow the link', 'contact_form' ); ?>
|
861 |
-
<a title="Contact Form Pro" target="_blank" href="http://bestwebsoft.com/plugin/contact-form-pro/?k=697c5e74f39779ce77850e11dbe21962&pn=77&v=<?php echo $plugin_info["Version"]; ?>"> <?php _e( 'Contact Form Pro', 'contact_form' ); ?></a>
|
862 |
</div>
|
863 |
<div id="cntctfrmpr_pro_version">
|
864 |
<div id="cntctfrmpr_left_table">
|
@@ -1170,15 +1246,18 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
1170 |
if ( isset( $error_message['error_form'] ) ) {
|
1171 |
$content .= '<div style="text-align: left; color: red;">' . $error_message['error_form'].'</div>';
|
1172 |
}
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1178 |
}
|
1179 |
-
$content .= '<div style="text-align: left;">
|
1180 |
-
<input class="text" type="text" size="40" value="'.$name.'" name="cntctfrm_contact_name" id="cntctfrm_contact_name" style="text-align: left; margin: 0;" />
|
1181 |
-
</div>';
|
1182 |
|
1183 |
if ( $cntctfrm_options['cntctfrm_display_address_field'] == 1 ) {
|
1184 |
$content .= '<div style="text-align: left;">
|
@@ -1319,7 +1398,7 @@ if ( ! function_exists( 'cntctfrm_check_form' ) ) {
|
|
1319 |
$message = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $message ) ) );
|
1320 |
$phone = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $phone ) ) );
|
1321 |
|
1322 |
-
if ( $cntctfrm_options['cntctfrm_required_name_field'] == 1 )
|
1323 |
$error_message['error_name'] = $cntctfrm_options['cntctfrm_name_error'][$language];
|
1324 |
if ( $cntctfrm_options['cntctfrm_required_address_field'] == 1 && $cntctfrm_options['cntctfrm_display_address_field'] == 1 )
|
1325 |
$error_message['error_address'] = $cntctfrm_options['cntctfrm_address_error'][$language];
|
@@ -1363,22 +1442,24 @@ if ( ! function_exists( 'cntctfrm_check_form' ) ) {
|
|
1363 |
'rar'=>'application/rar',
|
1364 |
'wav'=>'audio/wav',
|
1365 |
'mp3'=>'audio/mp3',
|
1366 |
-
'ppt'=>'application/vnd.ms-powerpoint'
|
|
|
|
|
1367 |
$error_message['error_attachment'] = $cntctfrm_options['cntctfrm_attachment_error'][ $language ];
|
1368 |
}
|
1369 |
// Check information wich was input in fields
|
1370 |
-
if( $cntctfrm_options['cntctfrm_required_name_field'] == 1 && "" != $name )
|
1371 |
unset( $error_message['error_name'] );
|
1372 |
-
if( $cntctfrm_options['cntctfrm_display_address_field'] == 1 && $cntctfrm_options['cntctfrm_required_address_field'] == 1 && "" != $address )
|
1373 |
unset( $error_message['error_address'] );
|
1374 |
-
if( $cntctfrm_options['cntctfrm_required_email_field'] == 1 && "" != $email && preg_match( "/^(?:[a-z0-9_']+(?:[a-z0-9\-_\.']+)?@[a-z0-9]+(?:[a-z0-9\-\.]+)?\.[a-z]{2,5})$/i", trim( stripslashes( $email ) ) ) )
|
1375 |
unset( $error_message['error_email'] );
|
1376 |
-
if( $cntctfrm_options['
|
|
|
|
|
1377 |
unset( $error_message['error_subject'] );
|
1378 |
-
if( $cntctfrm_options['cntctfrm_required_message_field'] == 1 && "" != $message )
|
1379 |
unset( $error_message['error_message'] );
|
1380 |
-
if( $cntctfrm_options['cntctfrm_display_phone_field'] == 1 && $cntctfrm_options['cntctfrm_required_phone_field'] == 1 && "" != $phone )
|
1381 |
-
unset( $error_message['error_phone'] );
|
1382 |
// If captcha plugin exists
|
1383 |
if ( ! apply_filters( 'cntctfrm_check_form', $_POST ) )
|
1384 |
$error_message['error_captcha'] = $cntctfrm_options['cntctfrm_captcha_error'][ $language ];
|
@@ -1499,9 +1580,9 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
1499 |
$headers = "";
|
1500 |
|
1501 |
if ( getenv('HTTPS') == 'on' ) {
|
1502 |
-
$form_action_url = 'https://'
|
1503 |
} else {
|
1504 |
-
$form_action_url = 'http://'
|
1505 |
}
|
1506 |
|
1507 |
if ( $cntctfrm_options['cntctfrm_display_add_info'] == 1) {
|
@@ -1514,24 +1595,24 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
1514 |
<td><br /></td><td><br /></td>
|
1515 |
</tr>';
|
1516 |
}
|
1517 |
-
if ( $cntctfrm_options['cntctfrm_display_sent_from'] == 1) {
|
1518 |
$user_info_string .= '<tr>
|
1519 |
<td>'.__('Sent from (ip address)', 'contact_form').':</td><td>'.$_SERVER['REMOTE_ADDR']." ( ". $userdomain ." )".'</td>
|
1520 |
</tr>';
|
1521 |
}
|
1522 |
-
if ( $cntctfrm_options['cntctfrm_display_date_time'] == 1) {
|
1523 |
$user_info_string .= '<tr>
|
1524 |
<td>'.__('Date/Time', 'contact_form').':</td><td>'.date_i18n( get_option( 'date_format' ).' '.get_option( 'time_format' ), strtotime( current_time( 'mysql' ) ) ).'</td>
|
1525 |
</tr>';
|
1526 |
}
|
1527 |
-
if ( $cntctfrm_options['cntctfrm_display_coming_from'] == 1) {
|
1528 |
$user_info_string .= '<tr>
|
1529 |
-
<td>'.__('Sent from (referer)', 'contact_form').':</td><td>'.$form_action_url.'</td>
|
1530 |
</tr>';
|
1531 |
}
|
1532 |
if ( $cntctfrm_options['cntctfrm_display_user_agent'] == 1) {
|
1533 |
$user_info_string .= '<tr>
|
1534 |
-
<td>'.__('Using (user agent)', 'contact_form').':</td><td>'.$user_agent.'</td>
|
1535 |
</tr>';
|
1536 |
}
|
1537 |
}
|
@@ -1542,36 +1623,34 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
1542 |
<title>'. __( "Contact from", 'contact_form' ) . get_bloginfo('name').'</title>
|
1543 |
</head>
|
1544 |
<body>
|
1545 |
-
<table>
|
1546 |
-
|
1547 |
-
|
1548 |
-
|
1549 |
-
';
|
1550 |
if ( $cntctfrm_options['cntctfrm_display_address_field'] == 1 )
|
1551 |
$message_text .= '<tr>
|
1552 |
-
<td>'. __( "Address", 'contact_form' ) . '</td><td>'. $address .'</td>
|
1553 |
</tr>';
|
1554 |
$message_text .= '<tr>
|
1555 |
-
<td>'. __( "Email", 'contact_form' ) .'</td><td>'. $email .'</td>
|
1556 |
-
</tr>
|
1557 |
-
';
|
1558 |
if ( $cntctfrm_options['cntctfrm_display_phone_field'] == 1 )
|
1559 |
$message_text .= '<tr>
|
1560 |
-
<td>'. __( "Phone", 'contact_form' ) . '</td><td>'. $phone .'</td>
|
1561 |
</tr>';
|
1562 |
$message_text .= '<tr>
|
1563 |
-
<td>'. __( "Subject", 'contact_form' ) . '</td><td>'. $subject .'</td>
|
1564 |
</tr>
|
1565 |
<tr>
|
1566 |
-
<td>'. __( "Message", 'contact_form' ) . '</td><td>'. $message .'</td>
|
1567 |
</tr>
|
1568 |
<tr>
|
1569 |
-
<td>'. __( "Site", 'contact_form' ) . '</td><td>'.get_bloginfo("url").'</td>
|
1570 |
</tr>
|
1571 |
<tr>
|
1572 |
<td><br /></td><td><br /></td>
|
1573 |
-
</tr>
|
1574 |
-
';
|
1575 |
$message_text_for_user = $message_text . '</table></body></html>';
|
1576 |
|
1577 |
$message_text .= $user_info_string . '</table></body></html>';
|
@@ -1584,10 +1663,11 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
1584 |
$headers .= 'Content-type: text/html; charset=utf-8' . "\n";
|
1585 |
|
1586 |
// Additional headers
|
1587 |
-
if( 'custom' == $cntctfrm_options['cntctfrm_from_email'] )
|
1588 |
$headers .= 'From: '.stripslashes( $cntctfrm_options['cntctfrm_custom_from_email'] ). '';
|
1589 |
else
|
1590 |
$headers .= 'From: '. $email . '';
|
|
|
1591 |
if ( $cntctfrm_options['cntctfrm_attachment'] == 1 && isset( $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) && $_FILES["cntctfrm_contact_attachment"]["tmp_name"] != "" ) {
|
1592 |
$attachments = array( $path_of_uploaded_file );
|
1593 |
}
|
@@ -1878,6 +1958,7 @@ if ( ! function_exists ( 'cntctfrm_plugin_banner' ) ) {
|
|
1878 |
|
1879 |
foreach ( $banner_array as $key => $value ) {
|
1880 |
if ( $this_banner == $value[0] || $this_banner_1 == $value[0] ) {
|
|
|
1881 |
echo '<div class="updated" style="padding: 0; margin: 0; border: none; background: none;">
|
1882 |
<script type="text/javascript" src="' . plugins_url( 'js/c_o_o_k_i_e.js', __FILE__ ) . '"></script>
|
1883 |
<script type="text/javascript">
|
@@ -1911,7 +1992,7 @@ if ( ! function_exists ( 'cntctfrm_plugin_banner' ) ) {
|
|
1911 |
It’s time to upgrade your <strong>Contact Form plugin</strong> to <strong>PRO</strong> version!<br />
|
1912 |
<span>Extend standard plugin functionality with new great options.</span>
|
1913 |
</div>
|
1914 |
-
<a class="button cntctfrm_button" target="_blank" href="http://bestwebsoft.com/plugin/contact-form-pro/?k=f575dc39cba54a9de88df346eed52101&pn=77&v=' . $plugin_info["Version"] . '">Learn More</a>
|
1915 |
</div>';
|
1916 |
if ( !array_key_exists( 'contact-form-to-db/contact_form_to_db.php', $all_plugins ) && !array_key_exists( 'contact-form-to-db-pro/contact_form_to_db_pro.php', $all_plugins ) ) {
|
1917 |
echo '<div class="cntctfrm_message_for_ctfrmtdb">
|
@@ -1921,7 +2002,7 @@ if ( ! function_exists ( 'cntctfrm_plugin_banner' ) ) {
|
|
1921 |
<strong>Contact Form to DB</strong> allows to store your messages to the database.<br />
|
1922 |
<span>Manage messages that have been sent from your website.</span>
|
1923 |
</div>
|
1924 |
-
<a class="button cntctfrm_button" target="_blank" href="http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ebf0743736411607343ad391dc3b436&pn=77&v=' . $plugin_info["Version"] . '">Learn More</a>
|
1925 |
</div>';
|
1926 |
}
|
1927 |
echo '</div>';
|
4 |
Plugin URI: http://bestwebsoft.com/plugin/
|
5 |
Description: Plugin for Contact Form.
|
6 |
Author: BestWebSoft
|
7 |
+
Version: 3.66
|
8 |
Author URI: http://bestwebsoft.com/
|
9 |
License: GPLv2 or later
|
10 |
*/
|
54 |
'cntctfrm_send_copy' => 0,
|
55 |
'cntctfrm_from_field' => get_bloginfo( 'name' ),
|
56 |
'cntctfrm_select_from_field' => 'custom',
|
57 |
+
'cntctfrm_display_name_field' => 1,
|
58 |
'cntctfrm_display_address_field' => 0,
|
59 |
+
'cntctfrm_display_phone_field' => 0,
|
60 |
'cntctfrm_required_name_field' => 1,
|
61 |
'cntctfrm_required_address_field' => 0,
|
62 |
'cntctfrm_required_email_field' => 1,
|
233 |
$cntctfrm_options_submit['cntctfrm_attachment_explanations'] = 1;
|
234 |
$cntctfrm_options_submit['cntctfrm_send_copy'] = 0;
|
235 |
$cntctfrm_options_submit['cntctfrm_from_field'] = get_bloginfo( 'name' );
|
236 |
+
$cntctfrm_options_submit['cntctfrm_select_from_field'] = 'custom';
|
237 |
+
$cntctfrm_options_submit['cntctfrm_display_name_field'] = 1;
|
238 |
$cntctfrm_options_submit['cntctfrm_display_address_field'] = 0;
|
239 |
$cntctfrm_options_submit['cntctfrm_display_phone_field'] = 0;
|
240 |
$cntctfrm_options_submit['cntctfrm_required_name_field'] = 1;
|
277 |
$cntctfrm_options_submit['cntctfrm_attachment_size_error'] = $cntctfrm_option_defaults['cntctfrm_attachment_size_error'];
|
278 |
$cntctfrm_options_submit['cntctfrm_captcha_error'] = $cntctfrm_option_defaults['cntctfrm_captcha_error'];
|
279 |
$cntctfrm_options_submit['cntctfrm_form_error'] = $cntctfrm_option_defaults['cntctfrm_form_error'];
|
280 |
+
} else {
|
|
|
281 |
$cntctfrm_options_submit['cntctfrm_name_label']['en'] = $cntctfrm_option_defaults['cntctfrm_name_label']['en'];
|
282 |
$cntctfrm_options_submit['cntctfrm_address_label']['en'] = $cntctfrm_option_defaults['cntctfrm_address_label']['en'];
|
283 |
$cntctfrm_options_submit['cntctfrm_email_label']['en'] = $cntctfrm_option_defaults['cntctfrm_email_label']['en'];
|
308 |
$cntctfrm_options_submit['cntctfrm_mail_method'] = $_POST['cntctfrm_mail_method'];
|
309 |
$cntctfrm_options_submit['cntctfrm_from_field'] = $_POST['cntctfrm_from_field'];
|
310 |
$cntctfrm_options_submit['cntctfrm_select_from_field'] = $_POST['cntctfrm_select_from_field'];
|
311 |
+
$cntctfrm_options_submit['cntctfrm_display_name_field'] = isset( $_POST['cntctfrm_display_name_field']) ? 1 : 0;
|
312 |
$cntctfrm_options_submit['cntctfrm_display_address_field'] = isset( $_POST['cntctfrm_display_address_field']) ? 1 : 0;
|
313 |
$cntctfrm_options_submit['cntctfrm_display_phone_field'] = isset( $_POST['cntctfrm_display_phone_field']) ? 1 : 0;
|
314 |
$cntctfrm_options_submit['cntctfrm_attachment'] = isset( $_POST['cntctfrm_attachment']) ? $_POST['cntctfrm_attachment'] : 0;
|
357 |
}
|
358 |
}
|
359 |
|
360 |
+
if ( $cntctfrm_options_submit['cntctfrm_display_name_field'] == 0 ) {
|
361 |
+
$cntctfrm_options_submit['cntctfrm_required_name_field'] = 0;
|
362 |
+
} else {
|
363 |
+
$cntctfrm_options_submit['cntctfrm_required_name_field'] = isset( $_POST['cntctfrm_required_name_field']) ? 1 : 0;
|
364 |
+
}
|
365 |
if ( $cntctfrm_options_submit['cntctfrm_display_address_field'] == 0 ) {
|
366 |
$cntctfrm_options_submit['cntctfrm_required_address_field'] = 0;
|
367 |
} else {
|
368 |
$cntctfrm_options_submit['cntctfrm_required_address_field'] = isset( $_POST['cntctfrm_required_address_field']) ? 1 : 0;
|
369 |
}
|
370 |
+
$cntctfrm_options_submit['cntctfrm_required_email_field'] = isset( $_POST['cntctfrm_required_email_field']) ? 1 : 0;
|
|
|
371 |
if ( $cntctfrm_options_submit['cntctfrm_display_phone_field'] == 0 ) {
|
372 |
$cntctfrm_options_submit['cntctfrm_required_phone_field'] = 0;
|
373 |
} else {
|
407 |
$cntctfrm_options_submit['cntctfrm_submit_label'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_submit_label'][ $key ] ) );
|
408 |
$cntctfrm_options_submit['cntctfrm_name_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_name_error'][ $key ] ) );
|
409 |
$cntctfrm_options_submit['cntctfrm_address_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_address_error'][ $key ] ) );
|
410 |
+
$cntctfrm_options_submit['cntctfrm_email_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_email_error'][ $key ] ) );
|
411 |
$cntctfrm_options_submit['cntctfrm_phone_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_phone_error'][ $key ] ) );
|
412 |
$cntctfrm_options_submit['cntctfrm_subject_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_subject_error'][ $key ] ) );
|
413 |
$cntctfrm_options_submit['cntctfrm_message_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_message_error'][ $key ] ) );
|
418 |
$cntctfrm_options_submit['cntctfrm_captcha_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_captcha_error'][ $key ] ) );
|
419 |
$cntctfrm_options_submit['cntctfrm_form_error'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_form_error'][ $key ] ) );
|
420 |
}
|
421 |
+
} else {
|
|
|
422 |
if( empty( $cntctfrm_options['cntctfrm_language'] ) ) {
|
423 |
$cntctfrm_options_submit['cntctfrm_name_label'] = $cntctfrm_option_defaults['cntctfrm_name_label'];
|
424 |
$cntctfrm_options_submit['cntctfrm_address_label'] = $cntctfrm_option_defaults['cntctfrm_address_label'];
|
429 |
$cntctfrm_options_submit['cntctfrm_attachment_label'] = $cntctfrm_option_defaults['cntctfrm_attachment_label'];
|
430 |
$cntctfrm_options_submit['cntctfrm_attachment_tooltip'] = $cntctfrm_option_defaults['cntctfrm_attachment_tooltip'];
|
431 |
$cntctfrm_options_submit['cntctfrm_send_copy_label'] = $cntctfrm_option_defaults['cntctfrm_send_copy_label'];
|
432 |
+
$cntctfrm_options_submit['cntctfrm_thank_text'] = $_POST['cntctfrm_thank_text'];
|
|
|
433 |
$cntctfrm_options_submit['cntctfrm_submit_label'] = $cntctfrm_option_defaults['cntctfrm_submit_label'];
|
434 |
$cntctfrm_options_submit['cntctfrm_name_error'] = $cntctfrm_option_defaults['cntctfrm_name_error'];
|
435 |
$cntctfrm_options_submit['cntctfrm_address_error'] = $cntctfrm_option_defaults['cntctfrm_address_error'];
|
442 |
$cntctfrm_options_submit['cntctfrm_attachment_move_error'] = $cntctfrm_option_defaults['cntctfrm_attachment_move_error'];
|
443 |
$cntctfrm_options_submit['cntctfrm_attachment_size_error'] = $cntctfrm_option_defaults['cntctfrm_attachment_size_error'];
|
444 |
$cntctfrm_options_submit['cntctfrm_captcha_error'] = $cntctfrm_option_defaults['cntctfrm_captcha_error'];
|
445 |
+
$cntctfrm_options_submit['cntctfrm_form_error'] = $cntctfrm_option_defaults['cntctfrm_form_error'];
|
446 |
+
foreach ( $cntctfrm_options_submit['cntctfrm_thank_text'] as $key => $val ) {
|
447 |
+
$cntctfrm_options_submit['cntctfrm_thank_text'][ $key ] = stripcslashes( htmlspecialchars( $val ) );
|
448 |
+
}
|
449 |
+
} else {
|
450 |
$cntctfrm_options_submit['cntctfrm_name_label']['en'] = $cntctfrm_option_defaults['cntctfrm_name_label']['en'];
|
451 |
$cntctfrm_options_submit['cntctfrm_address_label']['en'] = $cntctfrm_option_defaults['cntctfrm_address_label']['en'];
|
452 |
$cntctfrm_options_submit['cntctfrm_email_label']['en'] = $cntctfrm_option_defaults['cntctfrm_email_label']['en'];
|
456 |
$cntctfrm_options_submit['cntctfrm_attachment_label']['en'] = $cntctfrm_option_defaults['cntctfrm_attachment_label']['en'];
|
457 |
$cntctfrm_options_submit['cntctfrm_attachment_tooltip']['en'] = $cntctfrm_option_defaults['cntctfrm_attachment_tooltip']['en'];
|
458 |
$cntctfrm_options_submit['cntctfrm_send_copy_label']['en'] = $cntctfrm_option_defaults['cntctfrm_send_copy_label']['en'];
|
|
|
459 |
$cntctfrm_options_submit['cntctfrm_submit_label']['en'] = $cntctfrm_option_defaults['cntctfrm_submit_label']['en'];
|
460 |
$cntctfrm_options_submit['cntctfrm_name_error']['en'] = $cntctfrm_option_defaults['cntctfrm_name_error']['en'];
|
461 |
$cntctfrm_options_submit['cntctfrm_address_error']['en'] = $cntctfrm_option_defaults['cntctfrm_address_error']['en'];
|
471 |
$cntctfrm_options_submit['cntctfrm_form_error']['en'] = $cntctfrm_option_defaults['cntctfrm_form_error']['en'];
|
472 |
|
473 |
foreach ( $_POST['cntctfrm_thank_text'] as $key => $val ) {
|
474 |
+
$cntctfrm_options_submit['cntctfrm_thank_text'][ $key ] = stripcslashes( htmlspecialchars( $_POST['cntctfrm_thank_text'][ $key ] ) );
|
475 |
}
|
476 |
}
|
477 |
}
|
567 |
<td colspan="2">
|
568 |
<div class="cntctfrmpr_pro_version_tooltip_settings">
|
569 |
<?php _e( 'This functionality is available in the Pro version of the plugin. For more details, please follow the link', 'contact_form' ); ?>
|
570 |
+
<a title="Contact Form Pro" target="_blank" href="http://bestwebsoft.com/plugin/contact-form-pro/?k=697c5e74f39779ce77850e11dbe21962&pn=77&v=<?php echo $plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>"> <?php _e( 'Contact Form Pro', 'contact_form' ); ?></a>
|
571 |
</div>
|
572 |
<input type="radio" id="cntctfrmpr_select_email_department" name="cntctfrmpr_select_email" value="departments" disabled="disabled" />
|
573 |
<div class="cntctfrmpr_department_table"><img src="<?php echo plugins_url( 'images/pro_screen_1.png', __FILE__ ); ?>" alt="" /></div>
|
591 |
<?php }
|
592 |
} else { ?>
|
593 |
<input disabled="disabled" type="checkbox" name="cntctfrm_save_email_to_db" value="1" />
|
594 |
+
<span style="color: #888888;font-size: 10px;">(<?php _e( 'Using Contact Form to DB powered by', 'contact_form' ); ?> <a href="http://bestwebsoft.com/plugin/">bestwebsoft.com</a>) <a href="http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=19d806f45d866e70545de83169b274f2&pn=77&v=<?php echo $plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>"><?php _e( 'Download Contact Form to DB', 'contact_form' ); ?></a></span>
|
595 |
<?php } ?>
|
596 |
</td>
|
597 |
</tr>
|
602 |
<input id="cntctfrm_hide_additional_settings" type="button" class="button-small button" value="<?php _e( "Hide", 'contact_form' ); ?>" style="display: none;">
|
603 |
</td>
|
604 |
</tr>
|
605 |
+
<tr class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
606 |
<th scope="row" style="width:200px;"><?php _e( 'What to use?', 'contact_form' ); ?></th>
|
607 |
<td colspan="2">
|
608 |
<label><input type='radio' name='cntctfrm_mail_method' value='wp-mail' <?php if( $cntctfrm_options['cntctfrm_mail_method'] == 'wp-mail' ) echo "checked=\"checked\" "; ?>/>
|
632 |
</td>
|
633 |
</tr>
|
634 |
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
635 |
+
<th scope="row" style="width:200px;"><?php _e( "Required symbol", 'contact_form' ); ?></th>
|
636 |
<td colspan="2">
|
637 |
+
<input type="text" id="cntctfrm_required_symbol" name="cntctfrm_required_symbol" value="<?php echo $cntctfrm_options['cntctfrm_required_symbol']; ?>"/>
|
638 |
+
</td>
|
639 |
+
</tr>
|
640 |
+
</table>
|
641 |
+
<br />
|
642 |
+
<table class="cntctfrm_settings_table cntctfrm_additions_block<?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0') echo " cntctfrm_hidden"; ?>" style="width:auto;">
|
643 |
+
<thead>
|
644 |
+
<tr valign="top">
|
645 |
+
<th scope="row" style="width: 210px;"><?php _e( "Fields", 'contact_form' ); ?></th>
|
646 |
+
<th><?php _e( "Used", 'contact_form' ); ?></th>
|
647 |
+
<th><?php _e( "Required", 'contact_form' ); ?></th>
|
648 |
+
<th><?php _e( "Visible", 'contact_form' ); ?></th>
|
649 |
+
<th><?php _e( "Disabled for editing", 'contact_form' ); ?></th>
|
650 |
+
<th scope="row" style="width:200px;"><?php _e( "Field's default value", 'contact_form' ); ?></th>
|
651 |
+
</tr>
|
652 |
+
</thead>
|
653 |
+
<tbody>
|
654 |
+
<tr valign="top">
|
655 |
+
<td><?php _e( "Name", 'contact_form' ); ?></td>
|
656 |
+
<td><input type="checkbox" name="cntctfrm_display_name_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_display_name_field'] == '1' ) echo "checked=\"checked\" "; ?>/></td>
|
657 |
+
<td><input type="checkbox" id="cntctfrm_required_name_field" name="cntctfrm_required_name_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_required_name_field'] == '1' ) echo "checked=\"checked\" "; ?>/></td>
|
658 |
+
<td></td>
|
659 |
+
<td></td>
|
660 |
+
<td></td>
|
661 |
+
</tr>
|
662 |
+
<tr valign="top">
|
663 |
+
<td><?php _e( "Address", 'contact_form' ); ?></td>
|
664 |
+
<td><input type="checkbox" id="cntctfrm_display_address_field" name="cntctfrm_display_address_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_display_address_field'] == '1' ) echo "checked=\"checked\" "; ?>/></td>
|
665 |
+
<td><input type="checkbox" id="cntctfrm_required_address_field" name="cntctfrm_required_address_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_required_address_field'] == '1' ) echo "checked=\"checked\" "; ?>/></td>
|
666 |
+
<td></td>
|
667 |
+
<td></td>
|
668 |
+
<td></td>
|
669 |
+
</tr>
|
670 |
+
<tr valign="top">
|
671 |
+
<td><?php _e( "Email Address", 'contact_form' ); ?></td>
|
672 |
+
<td></td>
|
673 |
+
<td><input type="checkbox" id="cntctfrm_required_email_field" name="cntctfrm_required_email_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_required_email_field'] == '1' ) echo "checked=\"checked\" "; ?>/></td>
|
674 |
+
<td></td>
|
675 |
+
<td></td>
|
676 |
+
<td></td>
|
677 |
+
</tr>
|
678 |
+
<tr valign="top">
|
679 |
+
<td><?php _e( "Phone number", 'contact_form' ); ?></td>
|
680 |
+
<td><input type="checkbox" id="cntctfrm_display_phone_field" name="cntctfrm_display_phone_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_display_phone_field'] == '1' ) echo "checked=\"checked\" "; ?>/></td>
|
681 |
+
<td><input type="checkbox" id="cntctfrm_required_phone_field" name="cntctfrm_required_phone_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_required_phone_field'] == '1' ) echo "checked=\"checked\" "; ?>/></td>
|
682 |
+
<td>
|
683 |
+
<div class="cntctfrmpr_pro_version_tooltip_settings">
|
684 |
+
<?php _e( 'This functionality is available in the Pro version of the plugin. For more details, please follow the link', 'contact_form' ); ?>
|
685 |
+
<a title="Contact Form Pro" target="_blank" href="http://bestwebsoft.com/plugin/contact-form-pro/?k=697c5e74f39779ce77850e11dbe21962&pn=77&v=<?php echo $plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>"> <?php _e( 'Contact Form Pro', 'contact_form' ); ?></a>
|
686 |
+
</div>
|
687 |
+
</td>
|
688 |
+
<td></td>
|
689 |
+
<td></td>
|
690 |
+
</tr>
|
691 |
+
<tr valign="top">
|
692 |
+
<td><?php _e( "Subject", 'contact_form' ); ?></td>
|
693 |
+
<td></td>
|
694 |
+
<td><input type="checkbox" id="cntctfrm_required_subject_field" name="cntctfrm_required_subject_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_required_subject_field'] == '1' ) echo "checked=\"checked\" "; ?>/></td>
|
695 |
+
<td id="cntctfrmpr_pro_version"><input class="subject" disabled="disabled" type="checkbox" name="cntctfrmpr_visible_subject" value="1" /></td>
|
696 |
+
<td id="cntctfrmpr_pro_version"><input class="subject" disabled="disabled" type="checkbox" name="cntctfrmpr_disabled_subject" value="1" /></td>
|
697 |
+
<td id="cntctfrmpr_pro_version"><input class="subject" disabled="disabled" type="text" name="cntctfrmpr_default_subject" value="" /></td>
|
698 |
+
</tr>
|
699 |
+
<tr valign="top">
|
700 |
+
<td><?php _e( "Message", 'contact_form' ); ?></td>
|
701 |
+
<td></td>
|
702 |
+
<td><input type="checkbox" id="cntctfrm_required_message_field" name="cntctfrm_required_message_field" value="1" <?php if ( $cntctfrm_options['cntctfrm_required_message_field'] == '1' ) echo "checked=\"checked\" "; ?>/></td>
|
703 |
+
<td id="cntctfrmpr_pro_version"><input class="message" disabled="disabled" type="checkbox" name="cntctfrmpr_visible_message" value="1" /></td>
|
704 |
+
<td id="cntctfrmpr_pro_version"><input class="message" disabled="disabled" disabled="disabled" type="checkbox" name="cntctfrmpr_disabled_message" value="1" /></td>
|
705 |
+
<td id="cntctfrmpr_pro_version"><input class="message" disabled="disabled" type="text" name="cntctfrmpr_default_message" value="" /></td>
|
706 |
+
</tr>
|
707 |
+
<tr valign="top">
|
708 |
+
<td>
|
709 |
+
<?php _e( "Attachment block", 'contact_form' ); ?>
|
710 |
+
<div class="cntctfrm_help_box" style="margin: -3px 0 0; float:right;">
|
711 |
+
<div class="cntctfrm_hidden_help_text" style="display: none;"><?php echo __( "Users can attach the following file formats", 'contact_form' ) . ": html, txt, css, gif, png, jpeg, jpg, tiff, bmp, ai, eps, ps, rtf, pdf, doc, docx, xls, zip, rar, wav, mp3, ppt, aar, sce"; ?></div>
|
712 |
+
</div>
|
713 |
+
</td>
|
714 |
+
<td><input type="checkbox" id="cntctfrm_attachment" name="cntctfrm_attachment" value="1" <?php if ( $cntctfrm_options['cntctfrm_attachment'] == '1' ) echo "checked=\"checked\" "; ?>/></td>
|
715 |
+
<td></td>
|
716 |
+
<td></td>
|
717 |
+
<td></td>
|
718 |
+
<td></td>
|
719 |
+
</tr>
|
720 |
+
</tbody>
|
721 |
+
</table>
|
722 |
+
<br />
|
723 |
+
<table class="form-table" style="width:auto;">
|
724 |
+
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
725 |
+
<th scope="row" style="width:200px;"><?php _e( "Add to the form", 'contact_form' ); ?></th>
|
726 |
+
<td style="width:750px;" colspan="3">
|
727 |
+
<div style="clear: both;">
|
728 |
+
<label style="float: left">
|
729 |
+
<input type="checkbox" id="cntctfrm_attachment_explanations" name="cntctfrm_attachment_explanations" value="1" <?php if ( $cntctfrm_options['cntctfrm_attachment_explanations'] == '1' && $cntctfrm_options['cntctfrm_attachment'] == '1' ) echo "checked=\"checked\" "; ?>/>
|
730 |
+
<?php _e( "Tips below the Attachment", 'contact_form' ); ?>
|
731 |
+
</label>
|
732 |
+
<div class="cntctfrm_help_box" style="margin: -3px 0 0 10px;">
|
733 |
+
<div class="cntctfrm_hidden_help_text" style="display: none;width: auto;"><img title="" src="<?php echo plugins_url( 'images/tooltip_attachment_tips.png', __FILE__ ); ?>" alt=""/></div>
|
734 |
+
</div>
|
735 |
+
</div>
|
736 |
+
<div style="clear: both;">
|
737 |
+
<label style="float: left">
|
738 |
+
<input type="checkbox" id="cntctfrm_send_copy" name="cntctfrm_send_copy" value="1" <?php if ( $cntctfrm_options['cntctfrm_send_copy'] == '1') echo "checked=\"checked\" "; ?>/>
|
739 |
+
<?php _e( "'Send me a copy' block", 'contact_form' ); ?>
|
740 |
+
</label>
|
741 |
+
<div class="cntctfrm_help_box" style="margin: -3px 0 0 10px;">
|
742 |
+
<div class="cntctfrm_hidden_help_text" style="display: none;width: auto;"><img title="" src="<?php echo plugins_url( 'images/tooltip_sendme_block.png', __FILE__ ); ?>" alt=""/></div>
|
743 |
+
</div>
|
744 |
+
</div>
|
745 |
+
<div style="clear: both;">
|
746 |
+
<?php $all_plugins = get_plugins();
|
747 |
+
$active_plugins = get_option( 'active_plugins' );
|
748 |
+
if ( array_key_exists( 'captcha/captcha.php', $all_plugins ) || array_key_exists( 'captcha-pro/captcha_pro.php', $all_plugins ) ) {
|
749 |
+
if ( 0 < count( preg_grep( '/captcha\/captcha.php/', $active_plugins ) ) || 0 < count( preg_grep( '/captcha-pro\/captcha_pro.php/', $active_plugins ) ) ||
|
750 |
+
is_plugin_active_for_network( 'captcha/captcha.php' ) || is_plugin_active_for_network( 'captcha-pro/captcha_pro.php' ) ) { ?>
|
751 |
+
<label><input type="checkbox" name="cntctfrm_display_captcha" value="1" <?php if ( ( isset( $cptch_options ) && 1 == $cptch_options["cptch_contact_form"] ) || ( isset( $cptchpr_options ) && 1 == $cptchpr_options["cptchpr_contact_form"] ) ) echo "checked=\"checked\""; ?> />
|
752 |
+
<?php _e( "Captcha", 'contact_form' ); ?></label> <span style="color: #888888;font-size: 10px;">(<?php _e( 'powered by', 'contact_form' ); ?> <a href="http://bestwebsoft.com/plugin/">bestwebsoft.com</a>)</span>
|
753 |
+
<?php } else { ?>
|
754 |
+
<label><input disabled="disabled" type="checkbox" name="cntctfrm_display_captcha" value="1" <?php if ( ( isset( $cptch_options ) && 1 == $cptch_options["cptch_contact_form"] ) || ( isset( $cptchpr_options ) && 1 == $cptchpr_options["cptchpr_contact_form"] ) ) echo "checked=\"checked\""; ?> />
|
755 |
+
<?php _e( 'Captcha', 'contact_form' ); ?></label> <span style="color: #888888;font-size: 10px;">(<?php _e( 'powered by', 'contact_form' ); ?> <a href="http://bestwebsoft.com/plugin/">bestwebsoft.com</a>) <a href="<?php echo bloginfo("url"); ?>/wp-admin/plugins.php"><?php _e( 'Activate captcha', 'contact_form' ); ?></a></span>
|
756 |
+
<?php }
|
757 |
+
} else { ?>
|
758 |
+
<label><input disabled="disabled" type="checkbox" name="cntctfrm_display_captcha" value="1" />
|
759 |
+
<?php _e( 'Captcha', 'contact_form' ); ?></label> <span style="color: #888888;font-size: 10px;">(<?php _e( 'powered by', 'contact_form' ); ?> <a href="http://bestwebsoft.com/plugin/">bestwebsoft.com</a>) <a href="http://bestwebsoft.com/plugin/captcha-pro/?k=19ac1e9b23bea947cfc4a9b8e3326c03&pn=77&v=<?php echo $plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>"><?php _e( 'Download captcha', 'contact_form' ); ?></a></span>
|
760 |
+
<?php } ?>
|
761 |
+
</div>
|
762 |
</td>
|
763 |
</tr>
|
764 |
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
765 |
<th scope="row" style="width:200px;"></th>
|
766 |
+
<td colspan="3" id="cntctfrmpr_pro_version">
|
767 |
<div class="cntctfrmpr_pro_version_tooltip_settings" style="margin-top: -30px;">
|
768 |
<?php _e( 'This functionality is available in the Pro version of the plugin. For more details, please follow the link', 'contact_form' ); ?>
|
769 |
+
<a title="Contact Form Pro" target="_blank" href="http://bestwebsoft.com/plugin/contact-form-pro/?k=697c5e74f39779ce77850e11dbe21962&pn=77&v=<?php echo $plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>"> <?php _e( 'Contact Form Pro', 'contact_form' ); ?></a>
|
770 |
</div>
|
771 |
+
<label><input disabled="disabled" type="checkbox" value="1" name="cntctfrmpr_display_privacy_check"> <?php _e( 'Agreement checkbox', 'contact_form' ); ?></label> <span style="color: #888888;font-size: 10px;">(<?php _e( 'Required checkbox for submitting the form', 'contact_form' ); ?>)</span><br />
|
772 |
+
<label><input disabled="disabled" type="checkbox" value="1" name="cntctfrmpr_display_optional_check"> <?php _e( 'Optional checkbox', 'contact_form' ); ?></label> <span style="color: #888888;font-size: 10px;">(<?php _e( 'Optional checkbox, the results of which will be displayed in email', 'contact_form' ); ?>)</span><br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
773 |
</td>
|
774 |
</tr>
|
775 |
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
776 |
<th scope="row" style="width:200px;"><?php _e( "Delete an attachment file from the server after the email is sent", 'contact_form' ); ?> </th>
|
777 |
+
<td colspan="3">
|
778 |
<input type="checkbox" id="cntctfrm_delete_attached_file" name="cntctfrm_delete_attached_file" value="1" <?php if ( $cntctfrm_options['cntctfrm_delete_attached_file'] == '1' ) echo "checked=\"checked\" "; ?>/>
|
779 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
780 |
</tr>
|
781 |
<tr valign="top" class="cntctfrm_additions_block <?php if ( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
|
782 |
<th scope="row" style="width:200px;"><?php _e( "Display additional info in the email", 'contact_form' ); ?></th>
|
934 |
<div class="clear"></div>
|
935 |
<div class="cntctfrmpr_pro_version_tooltip">
|
936 |
<?php _e( 'This functionality is available in the Pro version of the plugin. For more details, please follow the link', 'contact_form' ); ?>
|
937 |
+
<a title="Contact Form Pro" target="_blank" href="http://bestwebsoft.com/plugin/contact-form-pro/?k=697c5e74f39779ce77850e11dbe21962&pn=77&v=<?php echo $plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>"> <?php _e( 'Contact Form Pro', 'contact_form' ); ?></a>
|
938 |
</div>
|
939 |
<div id="cntctfrmpr_pro_version">
|
940 |
<div id="cntctfrmpr_left_table">
|
1246 |
if ( isset( $error_message['error_form'] ) ) {
|
1247 |
$content .= '<div style="text-align: left; color: red;">' . $error_message['error_form'].'</div>';
|
1248 |
}
|
1249 |
+
|
1250 |
+
if ( $cntctfrm_options['cntctfrm_display_name_field'] == 1 ) {
|
1251 |
+
$content .= '<div style="text-align: left; padding-top: 5px;">
|
1252 |
+
<label for="cntctfrm_contact_name">' . $cntctfrm_options['cntctfrm_name_label'][ $lang ] . ( $cntctfrm_options['cntctfrm_required_name_field'] == 1 ? ' <span class="required">' . $cntctfrm_options['cntctfrm_required_symbol'] . '</span></label>' : '</label>' ) . '
|
1253 |
+
</div>';
|
1254 |
+
if ( isset( $error_message['error_name'] ) ) {
|
1255 |
+
$content .= '<div style="text-align: left; color: red;">' . $error_message['error_name'] . '</div>';
|
1256 |
+
}
|
1257 |
+
$content .= '<div style="text-align: left;">
|
1258 |
+
<input class="text" type="text" size="40" value="' . $name . '" name="cntctfrm_contact_name" id="cntctfrm_contact_name" style="text-align: left; margin: 0;" />
|
1259 |
+
</div>';
|
1260 |
}
|
|
|
|
|
|
|
1261 |
|
1262 |
if ( $cntctfrm_options['cntctfrm_display_address_field'] == 1 ) {
|
1263 |
$content .= '<div style="text-align: left;">
|
1398 |
$message = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $message ) ) );
|
1399 |
$phone = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $phone ) ) );
|
1400 |
|
1401 |
+
if ( $cntctfrm_options['cntctfrm_required_name_field'] == 1 && $cntctfrm_options['cntctfrm_display_name_field'] == 1 )
|
1402 |
$error_message['error_name'] = $cntctfrm_options['cntctfrm_name_error'][$language];
|
1403 |
if ( $cntctfrm_options['cntctfrm_required_address_field'] == 1 && $cntctfrm_options['cntctfrm_display_address_field'] == 1 )
|
1404 |
$error_message['error_address'] = $cntctfrm_options['cntctfrm_address_error'][$language];
|
1442 |
'rar'=>'application/rar',
|
1443 |
'wav'=>'audio/wav',
|
1444 |
'mp3'=>'audio/mp3',
|
1445 |
+
'ppt'=>'application/vnd.ms-powerpoint',
|
1446 |
+
'aar'=>'application/sb-replay',
|
1447 |
+
'sce'=>'application/sb-scenario' );
|
1448 |
$error_message['error_attachment'] = $cntctfrm_options['cntctfrm_attachment_error'][ $language ];
|
1449 |
}
|
1450 |
// Check information wich was input in fields
|
1451 |
+
if ( $cntctfrm_options['cntctfrm_display_name_field'] == 1 && $cntctfrm_options['cntctfrm_required_name_field'] == 1 && "" != $name )
|
1452 |
unset( $error_message['error_name'] );
|
1453 |
+
if ( $cntctfrm_options['cntctfrm_display_address_field'] == 1 && $cntctfrm_options['cntctfrm_required_address_field'] == 1 && "" != $address )
|
1454 |
unset( $error_message['error_address'] );
|
1455 |
+
if ( $cntctfrm_options['cntctfrm_required_email_field'] == 1 && "" != $email && preg_match( "/^(?:[a-z0-9_']+(?:[a-z0-9\-_\.']+)?@[a-z0-9]+(?:[a-z0-9\-\.]+)?\.[a-z]{2,5})$/i", trim( stripslashes( $email ) ) ) )
|
1456 |
unset( $error_message['error_email'] );
|
1457 |
+
if ( $cntctfrm_options['cntctfrm_display_phone_field'] == 1 && $cntctfrm_options['cntctfrm_required_phone_field'] == 1 && "" != $phone )
|
1458 |
+
unset( $error_message['error_phone'] );
|
1459 |
+
if ( $cntctfrm_options['cntctfrm_required_subject_field'] == 1 && "" != $subject )
|
1460 |
unset( $error_message['error_subject'] );
|
1461 |
+
if ( $cntctfrm_options['cntctfrm_required_message_field'] == 1 && "" != $message )
|
1462 |
unset( $error_message['error_message'] );
|
|
|
|
|
1463 |
// If captcha plugin exists
|
1464 |
if ( ! apply_filters( 'cntctfrm_check_form', $_POST ) )
|
1465 |
$error_message['error_captcha'] = $cntctfrm_options['cntctfrm_captcha_error'][ $language ];
|
1580 |
$headers = "";
|
1581 |
|
1582 |
if ( getenv('HTTPS') == 'on' ) {
|
1583 |
+
$form_action_url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
1584 |
} else {
|
1585 |
+
$form_action_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
1586 |
}
|
1587 |
|
1588 |
if ( $cntctfrm_options['cntctfrm_display_add_info'] == 1) {
|
1595 |
<td><br /></td><td><br /></td>
|
1596 |
</tr>';
|
1597 |
}
|
1598 |
+
if ( $cntctfrm_options['cntctfrm_display_sent_from'] == 1 ) {
|
1599 |
$user_info_string .= '<tr>
|
1600 |
<td>'.__('Sent from (ip address)', 'contact_form').':</td><td>'.$_SERVER['REMOTE_ADDR']." ( ". $userdomain ." )".'</td>
|
1601 |
</tr>';
|
1602 |
}
|
1603 |
+
if ( $cntctfrm_options['cntctfrm_display_date_time'] == 1 ) {
|
1604 |
$user_info_string .= '<tr>
|
1605 |
<td>'.__('Date/Time', 'contact_form').':</td><td>'.date_i18n( get_option( 'date_format' ).' '.get_option( 'time_format' ), strtotime( current_time( 'mysql' ) ) ).'</td>
|
1606 |
</tr>';
|
1607 |
}
|
1608 |
+
if ( $cntctfrm_options['cntctfrm_display_coming_from'] == 1 ) {
|
1609 |
$user_info_string .= '<tr>
|
1610 |
+
<td>'.__( 'Sent from (referer)', 'contact_form' ).':</td><td>'.$form_action_url.'</td>
|
1611 |
</tr>';
|
1612 |
}
|
1613 |
if ( $cntctfrm_options['cntctfrm_display_user_agent'] == 1) {
|
1614 |
$user_info_string .= '<tr>
|
1615 |
+
<td>'.__( 'Using (user agent)', 'contact_form' ).':</td><td>'.$user_agent.'</td>
|
1616 |
</tr>';
|
1617 |
}
|
1618 |
}
|
1623 |
<title>'. __( "Contact from", 'contact_form' ) . get_bloginfo('name').'</title>
|
1624 |
</head>
|
1625 |
<body>
|
1626 |
+
<table>';
|
1627 |
+
if ( $cntctfrm_options['cntctfrm_display_name_field'] == 1 )
|
1628 |
+
$message_text .= '<tr>
|
1629 |
+
<td width="160">'. __( "Name", 'contact_form' ) . '</td><td>' . $name . '</td>
|
1630 |
+
</tr>';
|
1631 |
if ( $cntctfrm_options['cntctfrm_display_address_field'] == 1 )
|
1632 |
$message_text .= '<tr>
|
1633 |
+
<td>'. __( "Address", 'contact_form' ) . '</td><td>' . $address . '</td>
|
1634 |
</tr>';
|
1635 |
$message_text .= '<tr>
|
1636 |
+
<td>'. __( "Email", 'contact_form' ) .'</td><td>' . $email . '</td>
|
1637 |
+
</tr>';
|
|
|
1638 |
if ( $cntctfrm_options['cntctfrm_display_phone_field'] == 1 )
|
1639 |
$message_text .= '<tr>
|
1640 |
+
<td>'. __( "Phone", 'contact_form' ) . '</td><td>' . $phone . '</td>
|
1641 |
</tr>';
|
1642 |
$message_text .= '<tr>
|
1643 |
+
<td>'. __( "Subject", 'contact_form' ) . '</td><td>' . $subject . '</td>
|
1644 |
</tr>
|
1645 |
<tr>
|
1646 |
+
<td>'. __( "Message", 'contact_form' ) . '</td><td>' . $message . '</td>
|
1647 |
</tr>
|
1648 |
<tr>
|
1649 |
+
<td>'. __( "Site", 'contact_form' ) . '</td><td>' . get_bloginfo("url") . '</td>
|
1650 |
</tr>
|
1651 |
<tr>
|
1652 |
<td><br /></td><td><br /></td>
|
1653 |
+
</tr>';
|
|
|
1654 |
$message_text_for_user = $message_text . '</table></body></html>';
|
1655 |
|
1656 |
$message_text .= $user_info_string . '</table></body></html>';
|
1663 |
$headers .= 'Content-type: text/html; charset=utf-8' . "\n";
|
1664 |
|
1665 |
// Additional headers
|
1666 |
+
if ( 'custom' == $cntctfrm_options['cntctfrm_from_email'] )
|
1667 |
$headers .= 'From: '.stripslashes( $cntctfrm_options['cntctfrm_custom_from_email'] ). '';
|
1668 |
else
|
1669 |
$headers .= 'From: '. $email . '';
|
1670 |
+
|
1671 |
if ( $cntctfrm_options['cntctfrm_attachment'] == 1 && isset( $_FILES["cntctfrm_contact_attachment"]["tmp_name"] ) && $_FILES["cntctfrm_contact_attachment"]["tmp_name"] != "" ) {
|
1672 |
$attachments = array( $path_of_uploaded_file );
|
1673 |
}
|
1958 |
|
1959 |
foreach ( $banner_array as $key => $value ) {
|
1960 |
if ( $this_banner == $value[0] || $this_banner_1 == $value[0] ) {
|
1961 |
+
global $wp_version;
|
1962 |
echo '<div class="updated" style="padding: 0; margin: 0; border: none; background: none;">
|
1963 |
<script type="text/javascript" src="' . plugins_url( 'js/c_o_o_k_i_e.js', __FILE__ ) . '"></script>
|
1964 |
<script type="text/javascript">
|
1992 |
It’s time to upgrade your <strong>Contact Form plugin</strong> to <strong>PRO</strong> version!<br />
|
1993 |
<span>Extend standard plugin functionality with new great options.</span>
|
1994 |
</div>
|
1995 |
+
<a class="button cntctfrm_button" target="_blank" href="http://bestwebsoft.com/plugin/contact-form-pro/?k=f575dc39cba54a9de88df346eed52101&pn=77&v=' . $plugin_info["Version"] . '&wp_v=' . $wp_version . '">Learn More</a>
|
1996 |
</div>';
|
1997 |
if ( !array_key_exists( 'contact-form-to-db/contact_form_to_db.php', $all_plugins ) && !array_key_exists( 'contact-form-to-db-pro/contact_form_to_db_pro.php', $all_plugins ) ) {
|
1998 |
echo '<div class="cntctfrm_message_for_ctfrmtdb">
|
2002 |
<strong>Contact Form to DB</strong> allows to store your messages to the database.<br />
|
2003 |
<span>Manage messages that have been sent from your website.</span>
|
2004 |
</div>
|
2005 |
+
<a class="button cntctfrm_button" target="_blank" href="http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ebf0743736411607343ad391dc3b436&pn=77&v=' . $plugin_info["Version"] . '&wp_v=' . $wp_version . '">Learn More</a>
|
2006 |
</div>';
|
2007 |
}
|
2008 |
echo '</div>';
|
css/style.css
CHANGED
@@ -189,6 +189,15 @@
|
|
189 |
white-space:nowrap;
|
190 |
background: #EAEAEA;
|
191 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
/*
|
193 |
* styles for pro_version settings, banner and tooltip
|
194 |
*/
|
@@ -226,7 +235,7 @@
|
|
226 |
border-radius: 5px;
|
227 |
box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.1);
|
228 |
float: right;
|
229 |
-
left:
|
230 |
padding: 10px;
|
231 |
position: absolute;
|
232 |
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
|
189 |
white-space:nowrap;
|
190 |
background: #EAEAEA;
|
191 |
}
|
192 |
+
/* cntctfrm_settings_table */
|
193 |
+
|
194 |
+
.cntctfrm_settings_table th, .cntctfrm_settings_table td {
|
195 |
+
border-bottom: 1px solid #DFDFDF;
|
196 |
+
border-right: 1px solid #DFDFDF;
|
197 |
+
height: 25px;
|
198 |
+
padding: 2px 10px;
|
199 |
+
text-align: left;
|
200 |
+
}
|
201 |
/*
|
202 |
* styles for pro_version settings, banner and tooltip
|
203 |
*/
|
235 |
border-radius: 5px;
|
236 |
box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.1);
|
237 |
float: right;
|
238 |
+
left: 780px;
|
239 |
padding: 10px;
|
240 |
position: absolute;
|
241 |
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.2checkout.com/checkout/purchase?sid=1430388&quantity=10
|
|
4 |
Tags: Contact Form, text, contact, form, contacts, contact form, request, contact me, feedback form, feedback, contact button, contact form plugin, contacts form plugin, attachment, send, copy, attachment, send copy
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.7.1
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -73,6 +73,8 @@ We can fix some things for free for the users who provide translation of our plu
|
|
73 |
3. You can adjust the necessary settings using your WordPress admin panel in "Settings" > "Contact Form".
|
74 |
4. Create a page or a post and insert the shortcode [bestwebsoft_contact_form] into the text.
|
75 |
|
|
|
|
|
76 |
== Frequently Asked Questions ==
|
77 |
|
78 |
= Where can I find the settings to adjust the plugin work after activation? =
|
@@ -130,6 +132,10 @@ Note: If the Contact Form sends letters, but you don't receive them, you can ins
|
|
130 |
|
131 |
== Changelog ==
|
132 |
|
|
|
|
|
|
|
|
|
133 |
= V3.65 - 22.11.2013 =
|
134 |
* Bugfix : We fixed the bug related to use html-special chars.
|
135 |
* Update : BWS plugins section is updated.
|
@@ -423,6 +429,9 @@ Note: If the Contact Form sends letters, but you don't receive them, you can ins
|
|
423 |
|
424 |
== Upgrade Notice ==
|
425 |
|
|
|
|
|
|
|
426 |
= V3.65 =
|
427 |
We fixed the bug related to use html-special chars. BWS plugins section is updated.
|
428 |
|
4 |
Tags: Contact Form, text, contact, form, contacts, contact form, request, contact me, feedback form, feedback, contact button, contact form plugin, contacts form plugin, attachment, send, copy, attachment, send copy
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.7.1
|
7 |
+
Stable tag: 3.66
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
73 |
3. You can adjust the necessary settings using your WordPress admin panel in "Settings" > "Contact Form".
|
74 |
4. Create a page or a post and insert the shortcode [bestwebsoft_contact_form] into the text.
|
75 |
|
76 |
+
<a href="http://bestwebsoft.com/wp-content/uploads/manual/wp_plugin/contact_form/Contact_Form-Installation_step-by-step_Instruction.pdf" target="_blank">View Contact Form Installation step-by-step Instruction</a>.
|
77 |
+
|
78 |
== Frequently Asked Questions ==
|
79 |
|
80 |
= Where can I find the settings to adjust the plugin work after activation? =
|
132 |
|
133 |
== Changelog ==
|
134 |
|
135 |
+
= V3.66 - 29.11.2013 =
|
136 |
+
* NEW : Ability to not use name field.
|
137 |
+
* NEW : We added mime types for .aar and .sce files.
|
138 |
+
|
139 |
= V3.65 - 22.11.2013 =
|
140 |
* Bugfix : We fixed the bug related to use html-special chars.
|
141 |
* Update : BWS plugins section is updated.
|
429 |
|
430 |
== Upgrade Notice ==
|
431 |
|
432 |
+
= V3.66 =
|
433 |
+
Ability to not use name field. We added mime types for .aar and .sce files.
|
434 |
+
|
435 |
= V3.65 =
|
436 |
We fixed the bug related to use html-special chars. BWS plugins section is updated.
|
437 |
|
screenshot-4.jpg
CHANGED
Binary file
|