Version Description
Download this release
Release Info
Developer | bestwebsoft |
Plugin | Contact Form by BestWebSoft |
Version | 2011.2.06 |
Comparing to | |
See all releases |
Code changes from version 2011.2.05 to 2011.2.06
- contact_form.php +8 -8
- contact_form_style.css +5 -1
- readme.txt +7 -1
contact_form.php
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
/*
|
3 |
Plugin Name: Contact Form Plugin
|
4 |
Plugin URI: http://bestwebsoft.com/plugin/
|
5 |
-
Description: Plugin for
|
6 |
Author: BestWebSoft
|
7 |
-
Version: 2.
|
8 |
Author URI: http://bestwebsoft.com/
|
9 |
License: GPLv2 or later
|
10 |
*/
|
@@ -247,7 +247,7 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
247 |
$result = "";
|
248 |
// If contact form submited
|
249 |
$name = isset( $_REQUEST['cntctfrm_contact_name'] ) ? $_REQUEST['cntctfrm_contact_name'] : "";
|
250 |
-
$email = isset( $_REQUEST['
|
251 |
$subject = isset( $_REQUEST['cntctfrm_contact_subject'] ) ? $_REQUEST['cntctfrm_contact_subject'] : "";
|
252 |
$message = isset( $_REQUEST['cntctfrm_contact_message'] ) ? $_REQUEST['cntctfrm_contact_message'] : "";
|
253 |
if( isset( $_REQUEST['cntctfrm_contact_action'] ) )
|
@@ -287,7 +287,7 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
287 |
$content .= '<div style="text-align: left; color: red;">'.$error_message['error_email'].'</div>';
|
288 |
}
|
289 |
$content .= '<div style="text-align: left;">
|
290 |
-
<input class="text" type="text" size="40" value="'.$email.'" name="
|
291 |
</div>
|
292 |
|
293 |
<div style="text-align: left;">
|
@@ -307,7 +307,7 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
|
|
307 |
$content .= '<div style="text-align: left; color: red;">'.$error_message['error_message'].'</div>';
|
308 |
}
|
309 |
$content .= '<div style="text-align: left;">
|
310 |
-
<textarea rows="10" cols="30" name="cntctfrm_contact_message" id="
|
311 |
</div>';
|
312 |
$content .= apply_filters( 'cntctfrm_display_captcha' , $error_message );
|
313 |
|
@@ -336,7 +336,7 @@ if( ! function_exists( 'cntctfrm_check_form' ) ) {
|
|
336 |
// Check information wich was input in fields
|
337 |
if( "" != $_REQUEST['cntctfrm_contact_name'] )
|
338 |
unset( $error_message['error_name'] );
|
339 |
-
if( "" != $_REQUEST['
|
340 |
unset( $error_message['error_email'] );
|
341 |
if( "" != $_REQUEST['cntctfrm_contact_subject'] )
|
342 |
unset( $error_message['error_subject'] );
|
@@ -385,7 +385,7 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
385 |
<td width="160">Name</td><td>'.$_REQUEST['cntctfrm_contact_name'].'</td>
|
386 |
</tr>
|
387 |
<tr>
|
388 |
-
<td>Email</td><td>'.$_REQUEST['
|
389 |
</tr>
|
390 |
<tr>
|
391 |
<td>Subject</td><td>'.$_REQUEST['cntctfrm_contact_subject'].'</td>
|
@@ -409,7 +409,7 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
|
|
409 |
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
|
410 |
|
411 |
// Additional headers
|
412 |
-
$headers .= 'From: '.$_REQUEST['
|
413 |
|
414 |
// Mail it
|
415 |
return @mail($to, $subject, $message, $headers);
|
2 |
/*
|
3 |
Plugin Name: Contact Form Plugin
|
4 |
Plugin URI: http://bestwebsoft.com/plugin/
|
5 |
+
Description: Plugin for Contact Form.
|
6 |
Author: BestWebSoft
|
7 |
+
Version: 2.06
|
8 |
Author URI: http://bestwebsoft.com/
|
9 |
License: GPLv2 or later
|
10 |
*/
|
247 |
$result = "";
|
248 |
// If contact form submited
|
249 |
$name = isset( $_REQUEST['cntctfrm_contact_name'] ) ? $_REQUEST['cntctfrm_contact_name'] : "";
|
250 |
+
$email = isset( $_REQUEST['cntctfrm_contact_email'] ) ? $_REQUEST['cntctfrm_contact_email'] : "";
|
251 |
$subject = isset( $_REQUEST['cntctfrm_contact_subject'] ) ? $_REQUEST['cntctfrm_contact_subject'] : "";
|
252 |
$message = isset( $_REQUEST['cntctfrm_contact_message'] ) ? $_REQUEST['cntctfrm_contact_message'] : "";
|
253 |
if( isset( $_REQUEST['cntctfrm_contact_action'] ) )
|
287 |
$content .= '<div style="text-align: left; color: red;">'.$error_message['error_email'].'</div>';
|
288 |
}
|
289 |
$content .= '<div style="text-align: left;">
|
290 |
+
<input class="text" type="text" size="40" value="'.$email.'" name="cntctfrm_contact_email" id="cntctfrm_contact_email" style="text-align: left; margin: 0;">
|
291 |
</div>
|
292 |
|
293 |
<div style="text-align: left;">
|
307 |
$content .= '<div style="text-align: left; color: red;">'.$error_message['error_message'].'</div>';
|
308 |
}
|
309 |
$content .= '<div style="text-align: left;">
|
310 |
+
<textarea rows="10" cols="30" name="cntctfrm_contact_message" id="cntctfrm_contact_message">'.$message.'</textarea>
|
311 |
</div>';
|
312 |
$content .= apply_filters( 'cntctfrm_display_captcha' , $error_message );
|
313 |
|
336 |
// Check information wich was input in fields
|
337 |
if( "" != $_REQUEST['cntctfrm_contact_name'] )
|
338 |
unset( $error_message['error_name'] );
|
339 |
+
if( "" != $_REQUEST['cntctfrm_contact_email'] && preg_match( "/^(?:[a-z0-9]+(?:[a-z0-9\-_\.]+)?@[a-z0-9]+(?:[a-z0-9\-\.]+)?\.[a-z]{2,5})$/i", trim( $_REQUEST['cntctfrm_contact_email'] ) ) )
|
340 |
unset( $error_message['error_email'] );
|
341 |
if( "" != $_REQUEST['cntctfrm_contact_subject'] )
|
342 |
unset( $error_message['error_subject'] );
|
385 |
<td width="160">Name</td><td>'.$_REQUEST['cntctfrm_contact_name'].'</td>
|
386 |
</tr>
|
387 |
<tr>
|
388 |
+
<td>Email</td><td>'.$_REQUEST['cntctfrm_contact_email'].'</td>
|
389 |
</tr>
|
390 |
<tr>
|
391 |
<td>Subject</td><td>'.$_REQUEST['cntctfrm_contact_subject'].'</td>
|
409 |
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
|
410 |
|
411 |
// Additional headers
|
412 |
+
$headers .= 'From: '.$_REQUEST['cntctfrm_contact_email']. "\r\n";
|
413 |
|
414 |
// Mail it
|
415 |
return @mail($to, $subject, $message, $headers);
|
contact_form_style.css
CHANGED
@@ -1,2 +1,6 @@
|
|
1 |
#cntctfrm_contact_form input.text {width:320px;}
|
2 |
-
#cntctfrm_contact_form textarea {width:320px;}
|
|
|
|
|
|
|
|
1 |
#cntctfrm_contact_form input.text {width:320px;}
|
2 |
+
#cntctfrm_contact_form textarea {width:320px;}
|
3 |
+
#cntctfrm_contact_message {width:320px}
|
4 |
+
#cntctfrm_contact_name {width:320px}
|
5 |
+
#cntctfrm_contact_email {width:320px}
|
6 |
+
#cntctfrm_contact_subject {width:320px}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bestwebsoft.com/
|
|
4 |
Tags: Contact Form, text, contact, form, contacts, contakt form, request, contact me, feedback form, feedback, contact button, contact form plugin, contacts form plugin
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 3.2
|
7 |
-
Stable tag: 2011.2.
|
8 |
|
9 |
Add Contact Form to your WordPress website.
|
10 |
|
@@ -46,6 +46,9 @@ Contact Form allows you to add a feedback form easilly and simply to a post or a
|
|
46 |
|
47 |
== Changelog ==
|
48 |
|
|
|
|
|
|
|
49 |
= 2.05 =
|
50 |
*BWS Plugins sections was fixed and right now it is consisted with 3 parts: activated, installed and recommended plugins. The bug of position in the admin menu is fixed. Translation ommissions are corrected. Now there is a link to see the site where the email comes from.
|
51 |
|
@@ -75,6 +78,9 @@ Contact Form allows you to add a feedback form easilly and simply to a post or a
|
|
75 |
|
76 |
== Upgrade Notice ==
|
77 |
|
|
|
|
|
|
|
78 |
= 2.05 =
|
79 |
BWS Plugins sections was fixed and right now it is consisted with 3 parts: activated, installed and recommended plugins. The bug of position in the admin menu is fixed. Translation ommissions are corrected. Now there is a link to see the site where the email comes from.
|
80 |
|
4 |
Tags: Contact Form, text, contact, form, contacts, contakt form, request, contact me, feedback form, feedback, contact button, contact form plugin, contacts form plugin
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 3.2
|
7 |
+
Stable tag: 2011.2.06
|
8 |
|
9 |
Add Contact Form to your WordPress website.
|
10 |
|
46 |
|
47 |
== Changelog ==
|
48 |
|
49 |
+
= 2.06 =
|
50 |
+
*We fixed the bug of complex email validation when filling in the contact form.
|
51 |
+
|
52 |
= 2.05 =
|
53 |
*BWS Plugins sections was fixed and right now it is consisted with 3 parts: activated, installed and recommended plugins. The bug of position in the admin menu is fixed. Translation ommissions are corrected. Now there is a link to see the site where the email comes from.
|
54 |
|
78 |
|
79 |
== Upgrade Notice ==
|
80 |
|
81 |
+
= 2.06 =
|
82 |
+
We fixed the bug of complex email validation when filling in the contact form.
|
83 |
+
|
84 |
= 2.05 =
|
85 |
BWS Plugins sections was fixed and right now it is consisted with 3 parts: activated, installed and recommended plugins. The bug of position in the admin menu is fixed. Translation ommissions are corrected. Now there is a link to see the site where the email comes from.
|
86 |
|