Plugin Directory

Changeset 3206297


Ignore:
Timestamp:
12/11/2024 11:37:01 AM (15 months ago)
Author:
onwebchat_dev
Message:

bug fix & security improvements

Location:
onwebchat
Files:
4 edited
5 copied

Legend:

Unmodified
Added
Removed
  • onwebchat/tags/3.4.0/onwebchat.php

    r2994301 r3206297  
    11<?php
     2
     3if ( ! defined( 'ABSPATH' ) ) {
     4    exit; // Exit if accessed directly
     5}
     6
    27/*
    3 Plugin Name: onWebChat Live Chat
     8Plugin Name: onWebChat - Live Chat & AI Chatbot
    49Plugin URI: https://www.onwebchat.com/wordpress-live-chat-plugin.php
    5 Description: live chat service that helps you communicate with your website's visitors.
     10Description: Empower visitors with real-time human chat and integrated AI chatbots. onWebChat Live Chat delivers instant responses, smoother interactions, and 24/7 availability - improving engagement, satisfaction, and conversions.
    611Author: onWebChat
    7 Version: 3.3.2
     12Version: 3.4.0
    813Author URI: https://www.onwebchat.com
    914*/
     
    8590
    8691        // get username, password and chatId
    87         $userName = $_POST["onWebChatUser"];
    88 
    89         if(isset($_POST["onWebChatPass"])) {
    90             $userPass = $_POST["onWebChatPass"];
    91         }
    92 
    93         $chatId = $_POST["chatId"];
    94 
    95 
    96         if( isset($_POST["pages-select"])) {
    97             $pagesSelect = $_POST["pages-select"];
    98         }
    99 
    100         if( isset($_POST["showonpages"])) {
    101             $showOnPages = $_POST["showonpages"];
    102         }
    103 
    104         if(isset($_POST["hideonpages"])) {
    105             $hideOnPages = $_POST["hideonpages"];
    106         }
    107 
    108         if(isset($_POST["onwebchat-api"])) {
    109             $onwebchatApi = $_POST["onwebchat-api"];
    110         }
     92
     93       
     94        $userName = isset($_POST["onWebChatUser"]) ? sanitize_text_field($_POST["onWebChatUser"]) : '';
     95        $userPass = isset($_POST["onWebChatPass"]) ? sanitize_text_field($_POST["onWebChatPass"]) : '';
     96
     97        $chatId = isset($_POST["chatId"]) ? sanitize_text_field($_POST["chatId"]) : '';
     98
     99        $pagesSelect = isset($_POST["pages-select"]) ? absint($_POST["pages-select"]) : 1;
     100        $showOnPages = isset($_POST["showonpages"]) ? sanitize_text_field($_POST["showonpages"]) : '';
     101        $hideOnPages = isset($_POST["hideonpages"]) ? sanitize_text_field($_POST["hideonpages"]) : '';
     102        $onwebchatApi = isset($_POST["onwebchat-api"]) ? wp_kses_post($_POST["onwebchat-api"]) : '';
     103
    111104
    112105
     
    292285                <?php
    293286
    294                     $html = '<input class="button button-primary" style="margin-left: 230px;" type="submit" value="Activate"/>';
     287                    $html = '<input class="button action" style="margin-left: 230px;" type="submit" value="Activate"/>';
    295288                    echo $html;
    296289            }
     
    315308                    $html .= "<strong class='account-id'>$chatId</strong> ";
    316309                }
    317                 $html .= ' <a href="admin.php?page=onwebchat_settings&amp;action=deactivate">Deactivate</a>';
    318                 //$html .= ' <div class="admin-login-info"> <span>*</span> To connect to onWebChat Operator Console click <a target="_blank" href="https://www.onwebchat.com/login.php">here</a> </div>';
     310                $html .= ' <a href="admin.php?page=onwebchat_settings&amp;action=deactivate">Unlink account</a>';
     311                //$html .= ' <div class="admin-login-info"> <span>*</span> To connect to onWebChat dashboard click <a target="_blank" href="https://www.onwebchat.com/login.php">here</a> </div>';
    319312                echo $html;
    320313
     
    355348                <h3 class="header-1-p2">Enter Your Custom onWebChat JavaScript API Code Below</h3>
    356349                <div class="chatid-div">
    357                     <strong>onWebChat API:</strong>
    358                     <br>
     350                    <!-- <strong>onWebChat API:</strong>
     351                    <br> -->
    359352                    <!-- sanitize user-provided parameter  -->
    360353                    <textarea class="chatid-text-field" style="margin-left: 0px;" rows="10" name="onwebchat-api"><?php echo esc_html($onwebchatApi); ?></textarea>
     
    372365                <input class="chatid-text-field-hide" type="text" name="isSecondPage" value="1"/>
    373366
    374                 <div class="new-account-link">Click <a target="_blank" href="https://www.onwebchat.com/login.php">here</a> to access the onWebChat Operator Console  </div>
     367                <div class="new-account-link">
     368                    <a target="_blank" href="https://www.onwebchat.com/login.php">Access your onWebChat Dashboard</a>
     369                </div>
    375370               
    376371                <?php
    377372                    // Display the Save Button
    378                     $html = '<input class="button button-primary" style="margin-left: 230px;" type="submit" value="Save Changes"/>';
     373                    $html = '<input class="button action" style="margin-left: 230px;" type="submit" value="Save Changes"/>';
    379374                    echo $html;
    380375
  • onwebchat/tags/3.4.0/readme.txt

    r3128709 r3206297  
    1 === Live Chat & AI Bot Support ===
     1=== Live Chat & AI Chatbots - onWebChat ===
    22Contributors: onwebchat_dev
    33Tags: live chat, ai chatbot, ai bot, free chat software, wordpress live chat, online chat support
    4 Tested up to: 6.6.1
     4Tested up to: 6.7
     5Requires at least: 4.7
    56Requires PHP: 5.4
    6 Stable tag: 3.3.2
     7Stable tag: 3.4.0
    78License: GPLv2
    89License URI: https://www.gnu.org/licenses/gpl-2.0.html
    9 Text Domain: onwebchat-live-chat
    1010
    1111Enhance customer service with our live chat plugin, now featuring AI chatbot support for 24/7 visitor engagement.
     
    1919Our live chat plugin seamlessly integrates with WordPress and WooCommerce websites, allowing you to Chat with website visitors in real-time, monitor web traffic and boost your conversions.
    2020
    21 We now offer a 100% free plan that supports almost all features. Plus, we are giving you a 1-month free trial of our Pro AI Plan when you sign up for our live chat service! Explore our plans here [here](https://www.onwebchat.com/chat-pricing.php "onWebChat plans").
     21We now offer a 100% free plan that supports almost all features. Plus, we are giving you a 1-month free trial of our Pro AI Plan when you sign up for our live chat service! [Explore our plans](https://www.onwebchat.com/chat-pricing.php "onWebChat plans").
    2222
    2323Don't hesitate, start now! It takes less than a minute, to get started, just install onWebChat live chat plugin and [sign up for our service on www.onwebchat.com](https://www.onwebchat.com/signup.php "onWebChat sign up page")
     
    2828<li>**Real-Time Monitoring:** Track your visitors' behavior.</li>
    2929<li>**AI Chatbot:** 24/7 automated customer support.</li>
     30<li>**AI Text Correction:** Easily correct any errors with just a click.</li>
    3031<li>**Customizable Widget:** Tailor the chat widget’s appearance.</li>
    3132<li>**Live Chat Triggers:** Engage users automatically.</li>
     
    139140== Changelog ==
    140141
     142= onWebChat Live Chat (Chat version 3.4.0) =
     143* Bug fix and security improvements
     144
    141145= onWebChat Live Chat (Chat version 3.3.2) =
    142146* Bug fix
     
    174178
    175179= onWebChat Live Chat (Chat version 1.0) =
    176 * First onWebChat livechat plugin version
     180* First onWebChat livechat plugin versio
  • onwebchat/trunk/onwebchat.php

    r2994301 r3206297  
    11<?php
     2
     3if ( ! defined( 'ABSPATH' ) ) {
     4    exit; // Exit if accessed directly
     5}
     6
    27/*
    3 Plugin Name: onWebChat Live Chat
     8Plugin Name: onWebChat - Live Chat & AI Chatbot
    49Plugin URI: https://www.onwebchat.com/wordpress-live-chat-plugin.php
    5 Description: live chat service that helps you communicate with your website's visitors.
     10Description: Empower visitors with real-time human chat and integrated AI chatbots. onWebChat Live Chat delivers instant responses, smoother interactions, and 24/7 availability - improving engagement, satisfaction, and conversions.
    611Author: onWebChat
    7 Version: 3.3.2
     12Version: 3.4.0
    813Author URI: https://www.onwebchat.com
    914*/
     
    8590
    8691        // get username, password and chatId
    87         $userName = $_POST["onWebChatUser"];
    88 
    89         if(isset($_POST["onWebChatPass"])) {
    90             $userPass = $_POST["onWebChatPass"];
    91         }
    92 
    93         $chatId = $_POST["chatId"];
    94 
    95 
    96         if( isset($_POST["pages-select"])) {
    97             $pagesSelect = $_POST["pages-select"];
    98         }
    99 
    100         if( isset($_POST["showonpages"])) {
    101             $showOnPages = $_POST["showonpages"];
    102         }
    103 
    104         if(isset($_POST["hideonpages"])) {
    105             $hideOnPages = $_POST["hideonpages"];
    106         }
    107 
    108         if(isset($_POST["onwebchat-api"])) {
    109             $onwebchatApi = $_POST["onwebchat-api"];
    110         }
     92
     93       
     94        $userName = isset($_POST["onWebChatUser"]) ? sanitize_text_field($_POST["onWebChatUser"]) : '';
     95        $userPass = isset($_POST["onWebChatPass"]) ? sanitize_text_field($_POST["onWebChatPass"]) : '';
     96
     97        $chatId = isset($_POST["chatId"]) ? sanitize_text_field($_POST["chatId"]) : '';
     98
     99        $pagesSelect = isset($_POST["pages-select"]) ? absint($_POST["pages-select"]) : 1;
     100        $showOnPages = isset($_POST["showonpages"]) ? sanitize_text_field($_POST["showonpages"]) : '';
     101        $hideOnPages = isset($_POST["hideonpages"]) ? sanitize_text_field($_POST["hideonpages"]) : '';
     102        $onwebchatApi = isset($_POST["onwebchat-api"]) ? wp_kses_post($_POST["onwebchat-api"]) : '';
     103
    111104
    112105
     
    292285                <?php
    293286
    294                     $html = '<input class="button button-primary" style="margin-left: 230px;" type="submit" value="Activate"/>';
     287                    $html = '<input class="button action" style="margin-left: 230px;" type="submit" value="Activate"/>';
    295288                    echo $html;
    296289            }
     
    315308                    $html .= "<strong class='account-id'>$chatId</strong> ";
    316309                }
    317                 $html .= ' <a href="admin.php?page=onwebchat_settings&amp;action=deactivate">Deactivate</a>';
    318                 //$html .= ' <div class="admin-login-info"> <span>*</span> To connect to onWebChat Operator Console click <a target="_blank" href="https://www.onwebchat.com/login.php">here</a> </div>';
     310                $html .= ' <a href="admin.php?page=onwebchat_settings&amp;action=deactivate">Unlink account</a>';
     311                //$html .= ' <div class="admin-login-info"> <span>*</span> To connect to onWebChat dashboard click <a target="_blank" href="https://www.onwebchat.com/login.php">here</a> </div>';
    319312                echo $html;
    320313
     
    355348                <h3 class="header-1-p2">Enter Your Custom onWebChat JavaScript API Code Below</h3>
    356349                <div class="chatid-div">
    357                     <strong>onWebChat API:</strong>
    358                     <br>
     350                    <!-- <strong>onWebChat API:</strong>
     351                    <br> -->
    359352                    <!-- sanitize user-provided parameter  -->
    360353                    <textarea class="chatid-text-field" style="margin-left: 0px;" rows="10" name="onwebchat-api"><?php echo esc_html($onwebchatApi); ?></textarea>
     
    372365                <input class="chatid-text-field-hide" type="text" name="isSecondPage" value="1"/>
    373366
    374                 <div class="new-account-link">Click <a target="_blank" href="https://www.onwebchat.com/login.php">here</a> to access the onWebChat Operator Console  </div>
     367                <div class="new-account-link">
     368                    <a target="_blank" href="https://www.onwebchat.com/login.php">Access your onWebChat Dashboard</a>
     369                </div>
    375370               
    376371                <?php
    377372                    // Display the Save Button
    378                     $html = '<input class="button button-primary" style="margin-left: 230px;" type="submit" value="Save Changes"/>';
     373                    $html = '<input class="button action" style="margin-left: 230px;" type="submit" value="Save Changes"/>';
    379374                    echo $html;
    380375
  • onwebchat/trunk/readme.txt

    r3128709 r3206297  
    1 === Live Chat & AI Bot Support ===
     1=== Live Chat & AI Chatbots - onWebChat ===
    22Contributors: onwebchat_dev
    33Tags: live chat, ai chatbot, ai bot, free chat software, wordpress live chat, online chat support
    4 Tested up to: 6.6.1
     4Tested up to: 6.7
     5Requires at least: 4.7
    56Requires PHP: 5.4
    6 Stable tag: 3.3.2
     7Stable tag: 3.4.0
    78License: GPLv2
    89License URI: https://www.gnu.org/licenses/gpl-2.0.html
    9 Text Domain: onwebchat-live-chat
    1010
    1111Enhance customer service with our live chat plugin, now featuring AI chatbot support for 24/7 visitor engagement.
     
    1919Our live chat plugin seamlessly integrates with WordPress and WooCommerce websites, allowing you to Chat with website visitors in real-time, monitor web traffic and boost your conversions.
    2020
    21 We now offer a 100% free plan that supports almost all features. Plus, we are giving you a 1-month free trial of our Pro AI Plan when you sign up for our live chat service! Explore our plans here [here](https://www.onwebchat.com/chat-pricing.php "onWebChat plans").
     21We now offer a 100% free plan that supports almost all features. Plus, we are giving you a 1-month free trial of our Pro AI Plan when you sign up for our live chat service! [Explore our plans](https://www.onwebchat.com/chat-pricing.php "onWebChat plans").
    2222
    2323Don't hesitate, start now! It takes less than a minute, to get started, just install onWebChat live chat plugin and [sign up for our service on www.onwebchat.com](https://www.onwebchat.com/signup.php "onWebChat sign up page")
     
    2828<li>**Real-Time Monitoring:** Track your visitors' behavior.</li>
    2929<li>**AI Chatbot:** 24/7 automated customer support.</li>
     30<li>**AI Text Correction:** Easily correct any errors with just a click.</li>
    3031<li>**Customizable Widget:** Tailor the chat widget’s appearance.</li>
    3132<li>**Live Chat Triggers:** Engage users automatically.</li>
     
    139140== Changelog ==
    140141
     142= onWebChat Live Chat (Chat version 3.4.0) =
     143* Bug fix and security improvements
     144
    141145= onWebChat Live Chat (Chat version 3.3.2) =
    142146* Bug fix
     
    174178
    175179= onWebChat Live Chat (Chat version 1.0) =
    176 * First onWebChat livechat plugin version
     180* First onWebChat livechat plugin versio
Note: See TracChangeset for help on using the changeset viewer.