Plugin Directory

Changeset 3130316


Ignore:
Timestamp:
08/03/2024 09:55:37 AM (20 months ago)
Author:
silvermuru
Message:

1.3.8 version, tested with WordPress 6.6.1. Code update

Location:
ws-contact-form
Files:
8 added
4 edited
5 copied

Legend:

Unmodified
Added
Removed
  • ws-contact-form/tags/1.3.8/readme.txt

    r2739061 r3130316  
    11=== WS Contact Form ===
    22Contributors: silvermuru
    3 Tags:  contact, contact form, contact form plugin, contact forms, contact us, email, feedback form, feedback forms, form, forms
     3Tags: contact, contact form, contact form plugin, contact us, feedback form
    44Requires at least: 4.4
    5 Tested up to: 6.0.0
    6 Stable tag: 1.3.7
     5Tested up to: 6.6.1
     6Stable tag: 1.3.8
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838
    3939== Changelog ==
     40
     41= 1.3.8 =
     42
     43* Updated code according to Wordpress security and standards guidelines
     44* Tested with Wordpress 6.6.1
     45* Updated version number
    4046
    4147= 1.3.7 =
  • ws-contact-form/tags/1.3.8/ws-contact-form.php

    r2739061 r3130316  
    44 * Plugin URI: https://www.silvermuru.ee/en/wordpress/plugins/ws-contact-form/
    55 * Description: Simple contact form for Wordpress
    6  * Version: 1.3.7
     6 * Version: 1.3.8
    77 * Author: UusWeb.ee
    88 * Author URI: https://www.wordpressi-kodulehe-tegemine.ee/
     9 * License: GPLv2 or later
    910 * Text Domain: ws-contact-form
    1011 **/
     
    3233        ob_start();
    3334        if (get_option('wscontact-form-title-option') != false) {
    34             echo '<h3> ' . get_option('wscontact-form-title-option') . '</h3>';
     35            echo '<h3> ' . esc_html(get_option('wscontact-form-title-option')) . '</h3>';
    3536        }
    3637
    3738        $random_form_id = wp_rand(1, 1000);
    3839        ?>
    39         <form id="ws_contact_form" class="ws-form-group" data-id="<?php echo $random_form_id; ?>">
    40             <div class="ws-hidden ws-message-response ws-message-successful" id="ws_contact_success"><?php _e( 'Message is sent successfully!', 'ws-contact-form' ); ?></div>
    41             <div class="ws-hidden ws-message-response ws-message-error" id="ws_contact_error"><?php _e( 'There is problem with form', 'ws-contact-form' ); ?></div>
    42             <input class="ws-form-control" type="text" name="ws_contact_name" id="ws_contact_name" placeholder="<?php _e( 'Name', 'ws-contact-form' ); ?> *">
    43             <input class="ws-form-control" type="text" name="ws_contact_email" id="ws_contact_email" placeholder="<?php _e( 'Email', 'ws-contact-form' ); ?> *">
    44             <textarea class="ws-form-control" name="ws_contact_comment" id="ws_contact_comment" placeholder="<?php _e( 'Content', 'ws-contact-form' ); ?> *"></textarea>
    45             <button type="submit" id="ws_send_form"><?php _e( 'Send', 'ws-contact-form' ); ?></button>
     40        <form id="ws_contact_form" class="ws-form-group" data-id="<?php echo esc_html($random_form_id); ?>">
     41            <?php wp_nonce_field( 'contact_form_send_control', 'contact_form_send_control_field' ); ?>
     42            <div class="ws-hidden ws-message-response ws-message-successful" id="ws_contact_success"><?php esc_html_e( 'Message is sent successfully!', 'ws-contact-form' ); ?></div>
     43            <div class="ws-hidden ws-message-response ws-message-error" id="ws_contact_error"><?php esc_html_e( 'There is problem with form', 'ws-contact-form' ); ?></div>
     44            <input class="ws-form-control" type="text" name="ws_contact_name" id="ws_contact_name" placeholder="<?php esc_html_e( 'Name', 'ws-contact-form' ); ?> *">
     45            <input class="ws-form-control" type="text" name="ws_contact_email" id="ws_contact_email" placeholder="<?php esc_html_e( 'Email', 'ws-contact-form' ); ?> *">
     46            <textarea class="ws-form-control" name="ws_contact_comment" id="ws_contact_comment" placeholder="<?php esc_html_e( 'Content', 'ws-contact-form' ); ?> *"></textarea>
     47            <button type="submit" id="ws_send_form"><?php esc_html_e( 'Send', 'ws-contact-form' ); ?></button>
    4648        </form>
    4749        <?php
     
    5052
    5153    public function ws_contact_form_sript() {
    52         wp_register_script( 'ws-contact-form-script', plugin_dir_url(__FILE__) . 'js/scripts.js', array( 'jquery' ), false );
     54        wp_register_script( 'ws-contact-form-script', plugin_dir_url(__FILE__) . 'js/scripts.js', array( 'jquery' ), true, true );
    5355        wp_enqueue_script( 'ws-contact-form-script' );
    5456    }
    5557
    5658    public function ws_contact_form_style() {
    57         wp_register_style( 'ws-contact-form-style', plugin_dir_url(__FILE__) . 'css/style.css', true );
    58         wp_enqueue_style( 'ws-contact-form-style' );
     59        global $post;
     60        if (has_shortcode($post->post_content, 'ws-contact-form')) {
     61            wp_register_style('ws-contact-form-style', plugin_dir_url(__FILE__) . 'css/style.css', true, true);
     62            wp_enqueue_style('ws-contact-form-style');
     63        }
    5964    }
    6065
    6166    public function ws_contact_form_sendmail()
    6267    {
    63         $ws_cf_sender_name = get_option('wscontact-form-sender-name-option');
    64         $ws_cf_sender_email = get_option('wscontact-form-sender-email-option');
     68        $ws_cf_sender_name = esc_attr(get_option('wscontact-form-sender-name-option'));
     69        $ws_cf_sender_email = esc_attr(get_option('wscontact-form-sender-email-option'));
    6570
    66         $email = $_POST['ws_contact_email'];
    67         $headers = "From: " . $ws_cf_sender_name . " <" . get_option('wscontact-form-sender-email-option') . "> \r\n Reply-To: " . $email;
    68         $message = $_POST['ws_contact_comment'];
    69         $name = $_POST['ws_contact_name'];
     71        if ( ! isset( $_POST['contact_form_send_control_field'] ) || ! wp_verify_nonce( $_POST['contact_form_send_control_field'], 'contact_form_send_control' )) {
     72            $email = $_POST['ws_contact_email'];
     73            $headers = "From: " . $ws_cf_sender_name . " <" . get_option('wscontact-form-sender-email-option') . "> \r\n Reply-To: " . $email;
     74            $message = $_POST['ws_contact_comment'];
     75            $name = $_POST['ws_contact_name'];
    7076
    71         function ws_email_valid($email) {
    72             $email_pattern = "/^[a-z\d](\.?[a-z\d_\-]+)*@([a-z\d](\.?[a-z\d\-]+)*\.[a-z]{2,4})$/i";
    73             $result = preg_match( $email_pattern, $email, $match );
    74             if ( FALSE !== $result && $result > 0 )
    75             {
    76                 return TRUE;
    77             }
    78             return FALSE;
    79         }
     77            function ws_email_valid($email)
     78            {
     79                $email_pattern = "/^[a-z\d](\.?[a-z\d_\-]+)*@([a-z\d](\.?[a-z\d\-]+)*\.[a-z]{2,4})$/i";
     80                $result = preg_match($email_pattern, $email, $match);
     81                if (FALSE !== $result && $result > 0) {
     82                    return TRUE;
     83                }
     84                return FALSE;
     85            }
    8086
    81         if (isset($name) && ws_email_valid($email) && isset($message))
    82         {
    83             $ws_cf_recipient_name = get_option('wscontact-form-recipient-name-option');
    84             $ws_cf_recipient_email = get_option('wscontact-form-recipient-email-option');
    85             $ws_cf_email_title = get_option('wscontact-form-email-title-option');
    86             wp_mail( $ws_cf_recipient_name . " <" . $ws_cf_recipient_email . ">", $ws_cf_email_title, $ws_cf_email_title . ":\r\n " . __( 'Name', 'ws-contact-form' ) . ": " . $name . " \r\n " . __( 'Email', 'ws-contact-form' ) . ": " . $email . " \r\n " . __( 'Content', 'ws-contact-form' ) . ": ". $message, $headers);
    87             echo 'OK';
    88         }
    89         else {
    90             echo 'ERROR';
    91         }
     87            if (isset($name) && ws_email_valid($email) && isset($message)) {
     88                $ws_cf_recipient_name = esc_attr(get_option('wscontact-form-recipient-name-option'));
     89                $ws_cf_recipient_email = esc_attr(get_option('wscontact-form-recipient-email-option'));
     90                $ws_cf_email_title = esc_attr(get_option('wscontact-form-email-title-option'));
     91                wp_mail($ws_cf_recipient_name . " <" . $ws_cf_recipient_email . ">", $ws_cf_email_title, $ws_cf_email_title . ":\r\n " . __('Name', 'ws-contact-form') . ": " . $name . " \r\n " . __('Email', 'ws-contact-form') . ": " . $email . " \r\n " . __('Content', 'ws-contact-form') . ": " . $message, $headers);
     92                echo 'OK';
     93            } else {
     94                echo 'ERROR';
     95            }
     96        }
     97        else {
     98            echo 'ERROR';
     99        }
    92100
    93101        die();
  • ws-contact-form/trunk/admin/ws-contact-form-admin.php

    r1557087 r3130316  
    2828        ?>
    2929        <div class="wrap">
    30             <h2><?php _e( 'WS Contact Form Settings', 'ws-contact-form' ); ?></h2>
     30            <h2><?php esc_attr_e( 'WS Contact Form Settings', 'ws-contact-form' ); ?></h2>
    3131
    3232            <form method="post" action="options.php">
     
    3434                <table class="form-table">
    3535                    <tr valign="top">
    36                         <th scope="row"><?php echo _e( 'Form title', 'ws-contact-form' ); ?></th>
     36                        <th scope="row"><?php echo esc_attr_e( 'Form title', 'ws-contact-form' ); ?></th>
    3737                        <td>
    38                             <input class="regular-text" type="text" name="wscontact-form-title-option" value="<?php echo get_option('wscontact-form-title-option'); ?>" />
     38                            <input class="regular-text" type="text" name="wscontact-form-title-option" value="<?php echo esc_attr(get_option('wscontact-form-title-option')); ?>" />
    3939                        </td>
    4040                    </tr>
    4141                    <tr valign="top">
    42                         <th scope="row"><?php echo _e( 'Email title', 'ws-contact-form' ); ?></th>
     42                        <th scope="row"><?php echo esc_attr_e( 'Email title', 'ws-contact-form' ); ?></th>
    4343                        <td>
    44                             <input class="regular-text" type="text" name="wscontact-form-email-title-option" value="<?php echo get_option('wscontact-form-email-title-option'); ?>" />
     44                            <input class="regular-text" type="text" name="wscontact-form-email-title-option" value="<?php echo esc_attr(get_option('wscontact-form-email-title-option')); ?>" />
    4545                        </td>
    4646                    </tr>
    4747                    <tr valign="top">
    48                         <th scope="row"><?php echo _e( 'Sender name', 'ws-contact-form' ); ?></th>
     48                        <th scope="row"><?php echo esc_attr_e( 'Sender name', 'ws-contact-form' ); ?></th>
    4949                        <td>
    50                             <input class="regular-text" type="text" name="wscontact-form-sender-name-option" value="<?php echo get_option('wscontact-form-sender-name-option'); ?>" />
     50                            <input class="regular-text" type="text" name="wscontact-form-sender-name-option" value="<?php echo esc_attr(get_option('wscontact-form-sender-name-option')); ?>" />
    5151                        </td>
    5252                    </tr>
    5353                    <tr valign="top">
    54                         <th scope="row"><?php echo _e( 'Sender email', 'ws-contact-form' ); ?></th>
     54                        <th scope="row"><?php echo esc_attr_e( 'Sender email', 'ws-contact-form' ); ?></th>
    5555                        <td>
    56                             <input class="regular-text" type="text" name="wscontact-form-sender-email-option" value="<?php echo get_option('wscontact-form-sender-email-option'); ?>" />
     56                            <input class="regular-text" type="text" name="wscontact-form-sender-email-option" value="<?php echo esc_attr(get_option('wscontact-form-sender-email-option')); ?>" />
    5757                        </td>
    5858                    </tr>
    5959                    <tr valign="top">
    60                         <th scope="row"><?php echo _e( 'Recipient name', 'ws-contact-form' ); ?></th>
     60                        <th scope="row"><?php echo esc_attr_e( 'Recipient name', 'ws-contact-form' ); ?></th>
    6161                        <td>
    62                             <input class="regular-text" type="text" name="wscontact-form-recipient-name-option" value="<?php echo get_option('wscontact-form-recipient-name-option'); ?>" />
     62                            <input class="regular-text" type="text" name="wscontact-form-recipient-name-option" value="<?php echo esc_attr(get_option('wscontact-form-recipient-name-option')); ?>" />
    6363                        </td>
    6464                    </tr>
    6565                    <tr valign="top">
    66                         <th scope="row"><?php echo _e( 'Recipient email', 'ws-contact-form' ); ?></th>
     66                        <th scope="row"><?php echo esc_attr_e( 'Recipient email', 'ws-contact-form' ); ?></th>
    6767                        <td>
    68                             <input class="regular-text" type="text" name="wscontact-form-recipient-email-option" value="<?php echo get_option('wscontact-form-recipient-email-option'); ?>" />
     68                            <input class="regular-text" type="text" name="wscontact-form-recipient-email-option" value="<?php echo esc_attr(get_option('wscontact-form-recipient-email-option')); ?>" />
    6969                        </td>
    7070                    </tr>
     
    7272
    7373                <p class="submit">
    74                     <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
     74                    <input type="submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
    7575                </p>
    7676
    7777            </form>
    7878           
    79             <h2 class="title"><?php echo _e( 'Shortcode', 'ws-contact-form' ); ?></h2>
    80             <p><?php echo _e( 'To get the form getting working properly it is important to fill all fields above', 'ws-contact-form' ); ?></p>
     79            <h2 class="title"><?php echo esc_attr_e( 'Shortcode', 'ws-contact-form' ); ?></h2>
     80            <p><?php echo esc_attr_e( 'To get the form getting working properly it is important to fill all fields above', 'ws-contact-form' ); ?></p>
    8181            <input class="regular-text" type="text" name="wscontact-form-shortcode" value="[ws-contact-form]" />
    82             <p id="ws-contact-form-shortcode-description" class="description"><?php echo _e( 'Paste this code to your post/page/widget in Text view activated', 'ws-contact-form' ); ?></p>
     82            <p id="ws-contact-form-shortcode-description" class="description"><?php echo esc_attr_e( 'Paste this code to your post/page/widget in Text view activated', 'ws-contact-form' ); ?></p>
    8383        </div>
    8484        <?php
  • ws-contact-form/trunk/css/style.css

    r1418779 r3130316  
    1 .ws-hidden {
     1.ws-form-group .ws-hidden {
    22    display: none
    33}
    44
    5 .ws-form-control {
     5.ws-form-group .ws-form-control {
    66    margin-bottom: 5px
    77}
    88
    9 .ws-warning-textarea, .ws-warning-input[type="text"] {
     9.ws-form-group .ws-warning-textarea, .ws-form-group .ws-warning-input[type="text"] {
    1010    background: #D87D7D
    1111}
    1212
    13 .ws-message-error {
     13.ws-form-group .ws-message-error {
    1414    color: #EF0000
    1515}
    1616
    17 .ws-message-successful {
     17.ws-form-group .ws-message-successful {
    1818    color: #00B24D
    1919}
  • ws-contact-form/trunk/readme.txt

    r2739061 r3130316  
    11=== WS Contact Form ===
    22Contributors: silvermuru
    3 Tags:  contact, contact form, contact form plugin, contact forms, contact us, email, feedback form, feedback forms, form, forms
     3Tags: contact, contact form, contact form plugin, contact us, feedback form
    44Requires at least: 4.4
    5 Tested up to: 6.0.0
    6 Stable tag: 1.3.7
     5Tested up to: 6.6.1
     6Stable tag: 1.3.8
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838
    3939== Changelog ==
     40
     41= 1.3.8 =
     42
     43* Updated code according to Wordpress security and standards guidelines
     44* Tested with Wordpress 6.6.1
     45* Updated version number
    4046
    4147= 1.3.7 =
  • ws-contact-form/trunk/ws-contact-form.php

    r2739061 r3130316  
    44 * Plugin URI: https://www.silvermuru.ee/en/wordpress/plugins/ws-contact-form/
    55 * Description: Simple contact form for Wordpress
    6  * Version: 1.3.7
     6 * Version: 1.3.8
    77 * Author: UusWeb.ee
    88 * Author URI: https://www.wordpressi-kodulehe-tegemine.ee/
     9 * License: GPLv2 or later
    910 * Text Domain: ws-contact-form
    1011 **/
     
    3233        ob_start();
    3334        if (get_option('wscontact-form-title-option') != false) {
    34             echo '<h3> ' . get_option('wscontact-form-title-option') . '</h3>';
     35            echo '<h3> ' . esc_html(get_option('wscontact-form-title-option')) . '</h3>';
    3536        }
    3637
    3738        $random_form_id = wp_rand(1, 1000);
    3839        ?>
    39         <form id="ws_contact_form" class="ws-form-group" data-id="<?php echo $random_form_id; ?>">
    40             <div class="ws-hidden ws-message-response ws-message-successful" id="ws_contact_success"><?php _e( 'Message is sent successfully!', 'ws-contact-form' ); ?></div>
    41             <div class="ws-hidden ws-message-response ws-message-error" id="ws_contact_error"><?php _e( 'There is problem with form', 'ws-contact-form' ); ?></div>
    42             <input class="ws-form-control" type="text" name="ws_contact_name" id="ws_contact_name" placeholder="<?php _e( 'Name', 'ws-contact-form' ); ?> *">
    43             <input class="ws-form-control" type="text" name="ws_contact_email" id="ws_contact_email" placeholder="<?php _e( 'Email', 'ws-contact-form' ); ?> *">
    44             <textarea class="ws-form-control" name="ws_contact_comment" id="ws_contact_comment" placeholder="<?php _e( 'Content', 'ws-contact-form' ); ?> *"></textarea>
    45             <button type="submit" id="ws_send_form"><?php _e( 'Send', 'ws-contact-form' ); ?></button>
     40        <form id="ws_contact_form" class="ws-form-group" data-id="<?php echo esc_html($random_form_id); ?>">
     41            <?php wp_nonce_field( 'contact_form_send_control', 'contact_form_send_control_field' ); ?>
     42            <div class="ws-hidden ws-message-response ws-message-successful" id="ws_contact_success"><?php esc_html_e( 'Message is sent successfully!', 'ws-contact-form' ); ?></div>
     43            <div class="ws-hidden ws-message-response ws-message-error" id="ws_contact_error"><?php esc_html_e( 'There is problem with form', 'ws-contact-form' ); ?></div>
     44            <input class="ws-form-control" type="text" name="ws_contact_name" id="ws_contact_name" placeholder="<?php esc_html_e( 'Name', 'ws-contact-form' ); ?> *">
     45            <input class="ws-form-control" type="text" name="ws_contact_email" id="ws_contact_email" placeholder="<?php esc_html_e( 'Email', 'ws-contact-form' ); ?> *">
     46            <textarea class="ws-form-control" name="ws_contact_comment" id="ws_contact_comment" placeholder="<?php esc_html_e( 'Content', 'ws-contact-form' ); ?> *"></textarea>
     47            <button type="submit" id="ws_send_form"><?php esc_html_e( 'Send', 'ws-contact-form' ); ?></button>
    4648        </form>
    4749        <?php
     
    5052
    5153    public function ws_contact_form_sript() {
    52         wp_register_script( 'ws-contact-form-script', plugin_dir_url(__FILE__) . 'js/scripts.js', array( 'jquery' ), false );
     54        wp_register_script( 'ws-contact-form-script', plugin_dir_url(__FILE__) . 'js/scripts.js', array( 'jquery' ), true, true );
    5355        wp_enqueue_script( 'ws-contact-form-script' );
    5456    }
    5557
    5658    public function ws_contact_form_style() {
    57         wp_register_style( 'ws-contact-form-style', plugin_dir_url(__FILE__) . 'css/style.css', true );
    58         wp_enqueue_style( 'ws-contact-form-style' );
     59        global $post;
     60        if (has_shortcode($post->post_content, 'ws-contact-form')) {
     61            wp_register_style('ws-contact-form-style', plugin_dir_url(__FILE__) . 'css/style.css', true, true);
     62            wp_enqueue_style('ws-contact-form-style');
     63        }
    5964    }
    6065
    6166    public function ws_contact_form_sendmail()
    6267    {
    63         $ws_cf_sender_name = get_option('wscontact-form-sender-name-option');
    64         $ws_cf_sender_email = get_option('wscontact-form-sender-email-option');
     68        $ws_cf_sender_name = esc_attr(get_option('wscontact-form-sender-name-option'));
     69        $ws_cf_sender_email = esc_attr(get_option('wscontact-form-sender-email-option'));
    6570
    66         $email = $_POST['ws_contact_email'];
    67         $headers = "From: " . $ws_cf_sender_name . " <" . get_option('wscontact-form-sender-email-option') . "> \r\n Reply-To: " . $email;
    68         $message = $_POST['ws_contact_comment'];
    69         $name = $_POST['ws_contact_name'];
     71        if ( ! isset( $_POST['contact_form_send_control_field'] ) || ! wp_verify_nonce( $_POST['contact_form_send_control_field'], 'contact_form_send_control' )) {
     72            $email = $_POST['ws_contact_email'];
     73            $headers = "From: " . $ws_cf_sender_name . " <" . get_option('wscontact-form-sender-email-option') . "> \r\n Reply-To: " . $email;
     74            $message = $_POST['ws_contact_comment'];
     75            $name = $_POST['ws_contact_name'];
    7076
    71         function ws_email_valid($email) {
    72             $email_pattern = "/^[a-z\d](\.?[a-z\d_\-]+)*@([a-z\d](\.?[a-z\d\-]+)*\.[a-z]{2,4})$/i";
    73             $result = preg_match( $email_pattern, $email, $match );
    74             if ( FALSE !== $result && $result > 0 )
    75             {
    76                 return TRUE;
    77             }
    78             return FALSE;
    79         }
     77            function ws_email_valid($email)
     78            {
     79                $email_pattern = "/^[a-z\d](\.?[a-z\d_\-]+)*@([a-z\d](\.?[a-z\d\-]+)*\.[a-z]{2,4})$/i";
     80                $result = preg_match($email_pattern, $email, $match);
     81                if (FALSE !== $result && $result > 0) {
     82                    return TRUE;
     83                }
     84                return FALSE;
     85            }
    8086
    81         if (isset($name) && ws_email_valid($email) && isset($message))
    82         {
    83             $ws_cf_recipient_name = get_option('wscontact-form-recipient-name-option');
    84             $ws_cf_recipient_email = get_option('wscontact-form-recipient-email-option');
    85             $ws_cf_email_title = get_option('wscontact-form-email-title-option');
    86             wp_mail( $ws_cf_recipient_name . " <" . $ws_cf_recipient_email . ">", $ws_cf_email_title, $ws_cf_email_title . ":\r\n " . __( 'Name', 'ws-contact-form' ) . ": " . $name . " \r\n " . __( 'Email', 'ws-contact-form' ) . ": " . $email . " \r\n " . __( 'Content', 'ws-contact-form' ) . ": ". $message, $headers);
    87             echo 'OK';
    88         }
    89         else {
    90             echo 'ERROR';
    91         }
     87            if (isset($name) && ws_email_valid($email) && isset($message)) {
     88                $ws_cf_recipient_name = esc_attr(get_option('wscontact-form-recipient-name-option'));
     89                $ws_cf_recipient_email = esc_attr(get_option('wscontact-form-recipient-email-option'));
     90                $ws_cf_email_title = esc_attr(get_option('wscontact-form-email-title-option'));
     91                wp_mail($ws_cf_recipient_name . " <" . $ws_cf_recipient_email . ">", $ws_cf_email_title, $ws_cf_email_title . ":\r\n " . __('Name', 'ws-contact-form') . ": " . $name . " \r\n " . __('Email', 'ws-contact-form') . ": " . $email . " \r\n " . __('Content', 'ws-contact-form') . ": " . $message, $headers);
     92                echo 'OK';
     93            } else {
     94                echo 'ERROR';
     95            }
     96        }
     97        else {
     98            echo 'ERROR';
     99        }
    92100
    93101        die();
Note: See TracChangeset for help on using the changeset viewer.