| Server IP : 43.130.17.34 / Your IP : 216.73.217.6 Web Server : nginx/1.28.0 System : Linux VM-4-12-opencloudos 6.6.92-34.1.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 25 21:32:13 CST 2025 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/yespkg.com/wp-content/plugins/sticky-chat-widget/ |
Upload File : |
<?php
/**
Plugin Name: Sticky Chat Widget
Description: Connect with your valuable website visitors through Sticky Chat Widget that consist of current trendy chat options
Version: 1.4.0
Author: Ginger Plugins
Author URI: https://www.gingerplugins.com/downloads/sticky-chat-widget/
Text Domain: sticky-chat-widget
Domain Path: /languages
License: GPL3
*
* @author : Ginger Plugins <gingerplugins@gmail.com>
* @license : GPL3
*/
defined('ABSPATH') or die('Direct Access is not allowed');
if (!defined('GSB_PLUGIN_URL')) {
define("GSB_PLUGIN_URL", plugin_dir_url(__FILE__));
}
if (!defined('GSB_PLUGIN_VERSION')) {
define("GSB_PLUGIN_VERSION", "1.4.0");
}
if (!defined('GSB_PLUGIN_BASE')) {
define("GSB_PLUGIN_BASE", plugin_basename(__FILE__));
}
if (!defined('GSB_DEV_VERSION')) {
define("GSB_DEV_VERSION", false);
}
// Include social icon class.
require_once dirname(__FILE__)."/includes/social-icons.php";
require_once dirname(__FILE__)."/includes/front-end.php";
if (!function_exists('wp_doing_ajax')) {
/**
* Check if WordPress is currently running an AJAX request.
*
* @return bool True if WordPress is currently running an AJAX request, False otherwise.
* @since Unknown
*/
function wp_doing_ajax()
{
return apply_filters('wp_doing_ajax', defined('DOING_AJAX') && DOING_AJAX);
}//end wp_doing_ajax()
}
// Redirect on setting page on activation.
if (!function_exists("scw_redirect_on_activate")) {
add_action('activated_plugin', 'scw_redirect_on_activate');
/**
* Redirect on activate.
*
* @param string $plugin The basename of the plugin file.
*
* @return void
* @since 1.0.0
*/
function scw_redirect_on_activate($plugin)
{
if ($plugin == plugin_basename(__FILE__)) {
if (!defined("DOING_AJAX") && $plugin == plugin_basename(__FILE__)) {
delete_option("scw_redirect");
add_option("scw_redirect", 1);
}
}
}//end scw_redirect_on_activate()
}//end if
// Include backend files for settings.
if (is_admin()) {
include_once dirname(__FILE__)."/admin/admin.php";
include_once dirname(__FILE__)."/admin/admin-common.php";
}
register_activation_hook(__FILE__, 'scw_create_contact_form_table');
if (!function_exists("scw_create_contact_form_table")) {
/**
* Create table while install.
*
* @since 1.1.2
* @return null.
*/
function scw_create_contact_form_table()
{
global $wpdb;
$tableName = $wpdb->prefix.'scw_contact_form_leads';
$sql = "CREATE TABLE IF NOT EXISTS {$tableName}
(
id mediumint(12) NOT NULL AUTO_INCREMENT,
name varchar(100),
email varchar(128),
phone varchar(100),
message LONGTEXT,
custom_field LONGTEXT NULL,
page_url varchar(200),
widget_id mediumint(12),
ip_address char(200),
is_from_mobile tinyint(10),
created_on TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;";
$wpdb->query($sql);
}//end scw_create_contact_form_table()
}//end if