Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** contact_form.php-orig 2013-04-09 02:22:38.000000000 -0500
- --- contact_form.php 2013-04-15 22:51:38.000000000 -0500
- ***************
- *** 142,152 ****
- --- 142,155 ----
- 'cntctfrm_mail_method' => 'wp-mail',
- 'cntctfrm_display_coming_from' => 1,
- 'cntctfrm_display_user_agent' => 1,
- + 'cntctfrm_display_honeypot_field' => 0,
- + 'cntctfrm_use_akismet' => 1,
- 'cntctfrm_language' => array(),
- 'cntctfrm_change_label' => 0,
- 'cntctfrm_name_label' => array( 'en' => __( "Name:", 'contact_form' ) ),
- 'cntctfrm_email_label' => array( 'en' => __( "Email Address:", 'contact_form' ) ),
- 'cntctfrm_phone_label' => array( 'en' => __( "Phone number:", 'contact_form' ) ),
- + 'cntctfrm_honeypot_label' => array( 'en' => __( "Please leave this field blank.", 'contact_form' ) ),
- 'cntctfrm_subject_label' => array( 'en' => __( "Subject:", 'contact_form' ) ),
- 'cntctfrm_message_label' => array( 'en' => __( "Message:", 'contact_form' ) ),
- 'cntctfrm_attachment_label' => array( 'en' => __( "Attachment:", 'contact_form' ) ),
- ***************
- *** 172,177 ****
- --- 175,181 ----
- $cntctfrm_options['cntctfrm_name_label'] = array( 'en' => $cntctfrm_options['cntctfrm_name_label'] );
- $cntctfrm_options['cntctfrm_email_label'] = array( 'en' => $cntctfrm_options['cntctfrm_email_label'] );
- $cntctfrm_options['cntctfrm_phone_label'] = array( 'en' => $cntctfrm_options['cntctfrm_phone_label'] );
- + $cntctfrm_options['cntctfrm_honeypot_label'] = array( 'en' => $cntctfrm_options['cntctfrm_honeypot_label'] );
- $cntctfrm_options['cntctfrm_subject_label'] = array( 'en' => $cntctfrm_options['cntctfrm_subject_label'] );
- $cntctfrm_options['cntctfrm_message_label'] = array( 'en' => $cntctfrm_options['cntctfrm_message_label'] );
- $cntctfrm_options['cntctfrm_attachment_label'] = array( 'en' => $cntctfrm_options['cntctfrm_attachment_label'] );
- ***************
- *** 223,228 ****
- --- 227,234 ----
- $cntctfrm_options_submit['cntctfrm_attachment_explanations'] = 1;
- $cntctfrm_options_submit['cntctfrm_send_copy'] = 0;
- $cntctfrm_options_submit['cntctfrm_from_field'] = get_bloginfo( 'name' );
- + $cntctfrm_options_submit['cntctfrm_use_akismet'] = 0;
- + $cntctfrm_options_submit['cntctfrm_display_honeypot_field'] = 0;
- $cntctfrm_options_submit['cntctfrm_display_phone_field'] = 0;
- $cntctfrm_options_submit['cntctfrm_required_name_field'] = 1;
- $cntctfrm_options_submit['cntctfrm_required_email_field'] = 1;
- ***************
- *** 286,291 ****
- --- 292,299 ----
- $cntctfrm_options_submit['cntctfrm_display_add_info'] = isset( $_POST['cntctfrm_display_add_info']) ? 1 : 0;
- $cntctfrm_options_submit['cntctfrm_change_label'] = isset( $_POST['cntctfrm_change_label']) ? 1 : 0;
- $cntctfrm_options_submit['cntctfrm_display_phone_field'] = isset( $_POST['cntctfrm_display_phone_field']) ? 1 : 0;
- + $cntctfrm_options_submit['cntctfrm_display_honeypot_field'] = isset( $_POST['cntctfrm_display_honeypot_field']) ? 1 : 0;
- + $cntctfrm_options_submit['cntctfrm_use_akismet'] = isset( $_POST['cntctfrm_use_akismet']) ? 1 : 0;
- $cntctfrm_options_submit['cntctfrm_required_name_field'] = isset( $_POST['cntctfrm_required_name_field']) ? 1 : 0;
- $cntctfrm_options_submit['cntctfrm_required_email_field'] = isset( $_POST['cntctfrm_required_email_field']) ? 1 : 0;
- // $cntctfrm_options_submit['cntctfrm_required_phone_field'] = isset( $_POST['cntctfrm_required_phone_field']) ? 1 : 0;
- ***************
- *** 314,319 ****
- --- 322,328 ----
- $cntctfrm_options_submit['cntctfrm_name_label'][$key] = $_POST['cntctfrm_name_label'][$key];
- $cntctfrm_options_submit['cntctfrm_email_label'][$key] = $_POST['cntctfrm_email_label'][$key];
- $cntctfrm_options_submit['cntctfrm_phone_label'][$key] = $_POST['cntctfrm_phone_label'][$key];
- + $cntctfrm_options_submit['cntctfrm_honeypot_label'][$key] = $_POST['cntctfrm_honeypot_label'][$key];
- $cntctfrm_options_submit['cntctfrm_subject_label'][$key] = $_POST['cntctfrm_subject_label'][$key];
- $cntctfrm_options_submit['cntctfrm_message_label'][$key] = $_POST['cntctfrm_message_label'][$key];
- $cntctfrm_options_submit['cntctfrm_attachment_label'][$key] = $_POST['cntctfrm_attachment_label'][$key];
- ***************
- *** 335,340 ****
- --- 344,350 ----
- $cntctfrm_options_submit['cntctfrm_name_label'] = $cntctfrm_option_defaults['cntctfrm_name_label'];
- $cntctfrm_options_submit['cntctfrm_email_label'] = $cntctfrm_option_defaults['cntctfrm_email_label'];
- $cntctfrm_options_submit['cntctfrm_phone_label'] = $cntctfrm_option_defaults['cntctfrm_phone_label'];
- + $cntctfrm_options_submit['cntctfrm_honeypot_label'] = $cntctfrm_option_defaults['cntctfrm_honeypot_label'];
- $cntctfrm_options_submit['cntctfrm_subject_label'] = $cntctfrm_option_defaults['cntctfrm_subject_label'];
- $cntctfrm_options_submit['cntctfrm_message_label'] = $cntctfrm_option_defaults['cntctfrm_message_label'];
- $cntctfrm_options_submit['cntctfrm_attachment_label'] = $cntctfrm_option_defaults['cntctfrm_attachment_label'];
- ***************
- *** 355,360 ****
- --- 365,371 ----
- $cntctfrm_options_submit['cntctfrm_name_label']['en'] = $cntctfrm_option_defaults['cntctfrm_name_label']['en'];
- $cntctfrm_options_submit['cntctfrm_email_label']['en'] = $cntctfrm_option_defaults['cntctfrm_email_label']['en'];
- $cntctfrm_options_submit['cntctfrm_phone_label']['en'] = $cntctfrm_option_defaults['cntctfrm_phone_label']['en'];
- + $cntctfrm_options_submit['cntctfrm_honeypot_label']['en'] = $cntctfrm_option_defaults['cntctfrm_honeypot_label']['en'];
- $cntctfrm_options_submit['cntctfrm_subject_label']['en'] = $cntctfrm_option_defaults['cntctfrm_subject_label']['en'];
- $cntctfrm_options_submit['cntctfrm_message_label']['en'] = $cntctfrm_option_defaults['cntctfrm_message_label']['en'];
- $cntctfrm_options_submit['cntctfrm_attachment_label']['en'] = $cntctfrm_option_defaults['cntctfrm_attachment_label']['en'];
- ***************
- *** 513,518 ****
- --- 524,541 ----
- </td>
- </tr>
- <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
- + <th scope="row" style="width:200px;"><?php _e( "Include a hidden honeypot field to identify spambots", 'contact_form' ); ?></th>
- + <td colspan="2">
- + <input type="checkbox" id="cntctfrm_display_honeypot_field" name="cntctfrm_display_honeypot_field" value="1" <?php if($cntctfrm_options['cntctfrm_display_honeypot_field'] == '1') echo "checked=\"checked\" "; ?>/>
- + </td>
- + </tr>
- + <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
- + <th scope="row" style="width:200px;"><?php _e( "Use Akismet to silently discard spam", 'contact_form' ); ?></th>
- + <td colspan="2">
- + <input type="checkbox" id="cntctfrm_use_akismet" name="cntctfrm_use_akismet" value="1" <?php if($cntctfrm_options['cntctfrm_use_akismet'] == '1') echo "checked=\"checked\" "; ?>/>
- + </td>
- + </tr>
- + <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
- <th scope="row" style="width:200px;"><?php _e( "Required fields", 'contact_form' ); ?></th>
- <td colspan="2">
- <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' ); ?><br />
- ***************
- *** 564,569 ****
- --- 587,593 ----
- <input type="text" name="cntctfrm_name_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_name_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Name:", 'contact_form' ); ?></span><br />
- <input type="text" name="cntctfrm_email_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_email_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Email Address:", 'contact_form' ); ?></span><br />
- <input type="text" name="cntctfrm_phone_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_phone_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Phone number:", 'contact_form' ); ?></span><br />
- + <input type="text" name="cntctfrm_honeypot_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_honeypot_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Leave this line blank!", 'contact_form' ); ?></span><br />
- <input type="text" name="cntctfrm_subject_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_subject_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Subject:", 'contact_form' ); ?></span><br />
- <input type="text" name="cntctfrm_message_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_message_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Message:", 'contact_form' ); ?></span><br />
- <input type="text" name="cntctfrm_attachment_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_attachment_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Attachment:", 'contact_form' ); ?></span><br />
- ***************
- *** 585,590 ****
- --- 609,615 ----
- <input type="text" name="cntctfrm_name_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_name_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_name_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Name:", 'contact_form' ); ?></span><br />
- <input type="text" name="cntctfrm_email_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_email_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_email_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Email Address:", 'contact_form' ); ?></span><br />
- <input type="text" name="cntctfrm_phone_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_phone_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_phone_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Phone number:", 'contact_form' ); ?></span><br />
- + <input type="text" name="cntctfrm_honeypot_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_honeypot_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_honeypot_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Leave this blank!", 'contact_form' ); ?></span><br />
- <input type="text" name="cntctfrm_subject_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_subject_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_subject_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Subject:", 'contact_form' ); ?></span><br />
- <input type="text" name="cntctfrm_message_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_message_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_message_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Message:", 'contact_form' ); ?></span><br />
- <input type="text" name="cntctfrm_attachment_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_attachment_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_attachment_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Attachment:", 'contact_form' ); ?></span><br />
- ***************
- *** 663,668 ****
- --- 688,694 ----
- $subject = isset( $_POST['cntctfrm_contact_subject'] ) ? $_POST['cntctfrm_contact_subject'] : "";
- $message = isset( $_POST['cntctfrm_contact_message'] ) ? $_POST['cntctfrm_contact_message'] : "";
- $phone = isset( $_POST['cntctfrm_contact_phone'] ) ? $_POST['cntctfrm_contact_phone'] : "";
- + $honeypot = isset( $_POST['cntctfrm_contact_referral'] ) ? $_POST['cntctfrm_contact_referral'] : "";
- $name = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $name ) ) );
- $email = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $email ) ) );
- ***************
- *** 670,675 ****
- --- 696,703 ----
- $message = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $message ) ) );
- $phone = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $phone ) ) );
- + $honeypot = strip_tags( preg_replace ( '/<[^>]*>/', 'SPAM', preg_replace ( '/<script.*<\/[^>]*>/', 'SPAM', $honeypot ) ) );
- +
- $send_copy = isset( $_POST['cntctfrm_contact_send_copy'] ) ? $_POST['cntctfrm_contact_send_copy'] : "";
- // If it is good
- if( true === $cntctfrm_result ) {
- ***************
- *** 742,747 ****
- --- 770,784 ----
- $content .= '<div style="text-align: left;">
- <textarea rows="5" cols="30" name="cntctfrm_contact_message" id="cntctfrm_contact_message">'.$message.'</textarea>
- </div>';
- + if( $cntctfrm_options['cntctfrm_display_honeypot_field'] == 1 ) {
- + $content .= '<div class="cntctfrm_referral">
- + <label for="cntctfrm_contact_referral">'. $cntctfrm_options['cntctfrm_honeypot_label'][$lang] . '
- + </label></div>';
- + $content .= '<div style="text-align: left;">
- + <input class="text" type="text" size="40" value="" name="cntctfrm_contact_referral" id="cntctfrm_contact_referral" style="text-align: left; margin: 0;" />
- + </div>
- + ';
- + }
- if($cntctfrm_options['cntctfrm_attachment'] == 1 ) {
- $content .= '<div style="text-align: left;">
- <label for="cntctfrm_contact_attachment">'. $cntctfrm_options['cntctfrm_attachment_label'][$lang] . '</label>
- ***************
- *** 817,828 ****
- --- 854,867 ----
- $subject = isset( $_POST['cntctfrm_contact_subject'] ) ? $_POST['cntctfrm_contact_subject'] : "";
- $message = isset( $_POST['cntctfrm_contact_message'] ) ? $_POST['cntctfrm_contact_message'] : "";
- $phone = isset( $_POST['cntctfrm_contact_phone'] ) ? $_POST['cntctfrm_contact_phone'] : "";
- + $honeypot = isset( $_POST['cntctfrm_contact_referral'] ) ? $_POST['cntctfrm_contact_referral'] : "";
- $name = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $name ) ) );
- $email = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $email ) ) );
- $subject = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $subject ) ) );
- $message = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $message ) ) );
- $phone = strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $phone ) ) );
- + $honeypot = strip_tags( preg_replace ( '/<[^>]*>/', 'SPAM', preg_replace ( '/<script.*<\/[^>]*>/', 'SPAM', $honeypot ) ) );
- if( $cntctfrm_options['cntctfrm_required_name_field'] == 1 )
- $error_message['error_name'] = $cntctfrm_options['cntctfrm_name_error'][$language];
- ***************
- *** 919,927 ****
- --- 958,978 ----
- }
- if( 1 == count( $error_message ) ) {
- unset( $error_message['error_form'] );
- +
- + if (strlen(trim(preg_replace('/\xc2\xa0/',' ',$honeypot))) != 0) {
- + // With the following line un-commented,
- + // don't send mail if the honeypot contains something.
- + // Just silently report success to the bot.
- + // $cntctfrm_result = true;
- +
- + // With the following line un-commented,
- + // send mail, but flag it as spam.
- + $cntctfrm_result = cntctfrm_send_mail();
- + } else {
- // If all is good - send mail
- $cntctfrm_result = cntctfrm_send_mail();
- }
- + }
- return $cntctfrm_result;
- }
- }
- ***************
- *** 937,951 ****
- --- 988,1094 ----
- $subject = isset( $_POST['cntctfrm_contact_subject'] ) ? $_POST['cntctfrm_contact_subject'] : "";
- $message = isset( $_POST['cntctfrm_contact_message'] ) ? $_POST['cntctfrm_contact_message'] : "";
- $phone = isset( $_POST['cntctfrm_contact_phone'] ) ? $_POST['cntctfrm_contact_phone'] : "";
- + $honeypot = isset( $_POST['cntctfrm_contact_referral'] ) ? $_POST['cntctfrm_contact_referral'] : "";
- $name = stripslashes( strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $name ) ) ) );
- $email = stripslashes( strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $email ) ) ) );
- $subject = stripslashes( strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $subject ) ) ) );
- $message = stripslashes( strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $message ) ) ) );
- $phone = stripslashes( strip_tags( preg_replace ( '/<[^>]*>/', '', preg_replace ( '/<script.*<\/[^>]*>/', '', $phone ) ) ) );
- + $honeypot = stripslashes( strip_tags( preg_replace ( '/<[^>]*>/', 'SPAM', preg_replace ( '/<script.*<\/[^>]*>/', 'SPAM', $honeypot ) ) ) );
- if( isset( $_SESSION['cntctfrm_send_mail'] ) && $_SESSION['cntctfrm_send_mail'] == true )
- return true;
- +
- + // Un-comment these for debugging
- + /*
- + if ( ! ( $cntctfrm_options['cntctfrm_use_akismet'] == 1 ) ) {
- + $name = "<b> Akismet not configured! </b><p/>" . $name;
- + }
- +
- + if ( ! function_exists( 'akismet_http_post' ) ) {
- + $name = "<b> Warning: no akismet_http_post() </b><p/>" . $name;
- + }
- +
- +
- + if ( ! get_option( 'wordpress_api_key' ) ) {
- + $name = "<b> Warning: no wordpress_api_key option </b><p/>" . $name;
- + }
- + */
- +
- + if( ( $cntctfrm_options['cntctfrm_use_akismet'] == 1) &&
- + function_exists( 'akismet_http_post' ) &&
- + (get_option( 'wordpress_api_key' ) || $wpcom_api_key ) ) {
- +
- + global $akismet_api_host, $akismet_api_port;
- +
- + $akismet_data_array = array();
- + $akismet_data_array['blog'] = get_option( 'home' );
- + $akismet_data_array['user_ip'] = $_SERVER['REMOTE_ADDR'];
- + $akismet_data_array['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
- + $akismet_data_array['referrer'] = $_SERVER['HTTP_REFERER'];
- + $akismet_data_array['comment_type'] = 'contactformplugin';
- +
- + if ( $permalink = get_permalink() )
- + $akismet_data_array['permalink'] = $permalink;
- +
- + if ( isset( $_POST['cntctfrm_contact_name'] ) )
- + $akismet_data_array['comment_author'] = $_POST['cntctfrm_contact_name'];
- +
- + if ( isset( $_POST['cntctfrm_contact_email'] ) )
- + $akismet_data_array['comment_author_email'] = $_POST['cntctfrm_contact_email'];
- +
- + $comment_content = "";
- + if ( isset( $_POST['cntctfrm_contact_subject'] ) ) {
- + $comment_content .= $_POST['cntctfrm_contact_subject'];
- + $comment_content .= "\n";
- + }
- +
- + if ( isset( $_POST['cntctfrm_contact_message'] ) ) {
- + $comment_content .= $_POST['cntctfrm_contact_message'];
- + $comment_content .= "\n";
- + }
- +
- + if ( isset( $_POST['cntctfrm_contact_phone'] ) ) {
- + $comment_content .= $_POST['cntctfrm_contact_phone'];
- + $comment_content .= "\n";
- + }
- +
- + if ( isset( $_POST['cntctfrm_contact_referral'] ) ) {
- + $comment_content .= $_POST['cntctfrm_contact_referral'];
- + $comment_content .= "\n";
- + }
- +
- + $akismet_data_array['comment_content'] = $comment_content;
- +
- + $ignore = array( 'HTTP_COOKIE' );
- +
- + foreach ( $_SERVER as $key => $value )
- + if ( ! in_array( $key, (array) $ignore ) )
- + $akismet_data_array["$key"] = $value;
- +
- + $query_string = '';
- + foreach ( $akismet_data_array as $key => $value )
- + $query_string .= $key . '=' . urlencode( stripslashes( (string) $value ) ) . '&';
- +
- + $response = akismet_http_post( $query_string, $akismet_api_host,
- + '/1.1/comment-check', $akismet_api_port );
- +
- +
- + if ( 'true' == $response[1] ) {
- + // To just add a spam banner here, use the following line:
- + $name = "<b>*** Akismet verified this as spam ***</b><p/>" . $name;
- + // To silently discard the message, use the following line:
- + return true;
- + }
- +
- +
- + }
- +
- +
- + if (strlen(trim(preg_replace('/\xc2\xa0/',' ',$honeypot))) != 0) {
- + $name = "<b>***SPAM***</b><p/>" . $name;
- + }
- if( $cntctfrm_options['cntctfrm_select_email'] == 'user' ) {
- if( function_exists('get_userdatabylogin') && false !== $user = get_userdatabylogin( $cntctfrm_options['cntctfrm_user_email'] ) ){
- $to = $user->user_email;
- ***************
- *** 1030,1035 ****
- --- 1173,1181 ----
- <td>'. __( "Message", 'contact_form' ) . '</td><td>'. $message .'</td>
- </tr>
- <tr>
- + <td>'. __( "Spam detection contents", 'contact_form' ) . '</td><td>'. $honeypot .'</td>
- + </tr>
- + <tr>
- <td>'. __( "Site", 'contact_form' ) . '</td><td>'.get_bloginfo("url").'</td>
- </tr>
- <tr>
- ***************
- *** 1216,1221 ****
- --- 1362,1369 ----
- unset( $cntctfrm_options['cntctfrm_email_label'][$_REQUEST['lang']]);
- if( isset( $cntctfrm_options['cntctfrm_phone_label'][$_REQUEST['lang']] ) )
- unset( $cntctfrm_options['cntctfrm_phone_label'][$_REQUEST['lang']]);
- + if( isset( $cntctfrm_options['cntctfrm_honeypot_label'][$_REQUEST['lang']] ) )
- + unset( $cntctfrm_options['cntctfrm_honeypot_label'][$_REQUEST['lang']]);
- if( isset( $cntctfrm_options['cntctfrm_subject_label'][$_REQUEST['lang']] ) )
- unset( $cntctfrm_options['cntctfrm_subject_label'][$_REQUEST['lang']]);
- if( isset( $cntctfrm_options['cntctfrm_message_label'][$_REQUEST['lang']] ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement