: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if ( ! defined( 'ABSPATH' ) ) {
* Function for displaying BestWebSoft menu
if ( ! function_exists( 'bws_admin_enqueue_scripts' ) ) {
require_once dirname( __FILE__ ) . '/bws_functions.php';
if ( ! function_exists( 'bws_add_menu_render' ) ) {
* Function for render BestWebSoft menu
function bws_add_menu_render() {
global $wpdb, $wp_version, $bstwbsftwppdtplgns_options;
* @deprecated 1.9.8 (15.12.2016)
$is_main_page = isset( $_GET['page'] ) && in_array( $_GET['page'], array( 'bws_panel', 'bws_themes', 'bws_system_status' ) );
$page = sanitize_text_field( wp_unslash( $_GET['page'] ) );
$tab = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : '';
$current_page = 'admin.php?page=' . $page;
$current_page = isset( $_GET['tab'] ) ? 'admin.php?page=' . $page . '&tab=' . $tab : 'admin.php?page=' . $page;
if ( 'bws_panel' === $page || ( ! $is_main_page && '' === $tab ) ) {
if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
require dirname( __FILE__ ) . '/product_list.php';
$all_plugins = get_plugins();
$active_plugins = get_option( 'active_plugins' );
$sitewide_active_plugins = ( function_exists( 'is_multisite' ) && is_multisite() ) ? get_site_option( 'active_sitewide_plugins' ) : array();
$update_availible_all = get_site_transient( 'update_plugins' );
$plugin_category = isset( $_GET['category'] ) ? sanitize_text_field( wp_unslash( $_GET['category'] ) ) : 'all';
if ( ( isset( $_GET['sub'] ) && 'installed' === sanitize_text_field( wp_unslash( $_GET['sub'] ) ) ) || ! isset( $_GET['sub'] ) ) {
$bws_plugins_update_availible = array();
$bws_plugins_expired = array();
foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
foreach ( $value_plugin['category'] as $category_key ) {
$bws_plugins_category[ $category_key ]['count'] = isset( $bws_plugins_category[ $category_key ]['count'] ) ? $bws_plugins_category[ $category_key ]['count'] + 1 : 1;
$is_installed = array_key_exists( $key_plugin, $all_plugins );
$is_pro_installed = false;
if ( isset( $value_plugin['pro_version'] ) ) {
$is_pro_installed = array_key_exists( $value_plugin['pro_version'], $all_plugins );
/* Check update_availible */
if ( ! empty( $update_availible_all ) && ! empty( $update_availible_all->response ) ) {
if ( $is_pro_installed && array_key_exists( $value_plugin['pro_version'], $update_availible_all->response ) ) {
unset( $bws_plugins[ $key_plugin ] );
$value_plugin['update_availible'] = $value_plugin['pro_version'];
$bws_plugins_update_availible[ $key_plugin ] = $value_plugin;
} elseif ( $is_installed && array_key_exists( $key_plugin, $update_availible_all->response ) ) {
unset( $bws_plugins[ $key_plugin ] );
$value_plugin['update_availible'] = $key_plugin;
$bws_plugins_update_availible[ $key_plugin ] = $value_plugin;
if ( $is_pro_installed && isset( $bstwbsftwppdtplgns_options['time_out'][ $value_plugin['pro_version'] ] ) &&
strtotime( $bstwbsftwppdtplgns_options['time_out'][ $value_plugin['pro_version'] ] ) < strtotime( gmdate( 'm/d/Y' ) ) ) {
unset( $bws_plugins[ $key_plugin ] );
$value_plugin['expired'] = $bstwbsftwppdtplgns_options['time_out'][ $value_plugin['pro_version'] ];
$bws_plugins_expired[ $key_plugin ] = $value_plugin;
$bws_plugins = $bws_plugins_update_availible + $bws_plugins_expired + $bws_plugins;
foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
foreach ( $value_plugin['category'] as $category_key ) {
$bws_plugins_category[ $category_key ]['count'] = isset( $bws_plugins_category[ $category_key ]['count'] ) ? $bws_plugins_category[ $category_key ]['count'] + 1 : 1;
$bws_license_plugin = 'bws_get_list_for_membership';
$bws_license_key = isset( $bstwbsftwppdtplgns_options[ $bws_license_plugin ] ) ? $bstwbsftwppdtplgns_options[ $bws_license_plugin ] : '';
$update_membership_list = true;
if ( isset( $_POST['bws_license_key'] ) ) {
$bws_license_key = sanitize_text_field( wp_unslash( $_POST['bws_license_key'] ) );
if ( isset( $_SESSION['bws_membership_time_check'] ) && isset( $_SESSION['bws_membership_list'] ) && $_SESSION['bws_membership_time_check'] < strtotime( '+12 hours' ) ) {
$update_membership_list = false;
$plugins_array = $_SESSION['bws_membership_list'];
foreach ( $plugins_array as $plugins_key => $plugins_value ) {
if ( is_array( $plugins_value ) ) {
$plugins_array[ $plugins_key ] = array_map( 'sanitize_text_field', array_map( 'wp_unslash', $plugins_value ) );
} elseif ( is_object( $plugins_value ) ) {
foreach ( $plugins_value as $plugins_key2 => $plugins_value2 ) {
$plugins_value->$plugins_key2 = sanitize_text_field( wp_unslash( $plugins_value2 ) );
$plugins_array[ $plugins_key ] = $plugins_value;
$plugins_array[ $plugins_key ] = sanitize_text_field( wp_unslash( $plugins_value ) );
if ( ( $update_membership_list && ! empty( $bws_license_key ) ) || ( isset( $_POST['bws_license_submit'] ) && check_admin_referer( plugin_basename( __FILE__ ), 'bws_license_nonce_name' ) ) ) {
if ( '' !== $bws_license_key ) {
if ( 18 !== strlen( $bws_license_key ) ) {
$error = __( 'Wrong license key', 'bestwebsoft' );
if ( isset( $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] ) && $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['time'] > ( time() - ( 24 * 60 * 60 ) ) ) {
$bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] = $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] + 1;
$bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] = 1;
$bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['time'] = time();
$to_send['plugins'][ $bws_license_plugin ] = array();
$to_send['plugins'][ $bws_license_plugin ]['bws_license_key'] = $bws_license_key;
'timeout' => ( ( defined( 'DOING_CRON' ) && DOING_CRON ) ? 30 : 3 ),
'body' => array( 'plugins' => serialize( $to_send ) ),
'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ),
$raw_response = wp_remote_post( 'https://bestwebsoft.com/wp-content/plugins/paid-products/plugins/pro-license-check/1.0/', $options );
if ( is_wp_error( $raw_response ) || 200 !== wp_remote_retrieve_response_code( $raw_response ) ) {
$error = __( 'Something went wrong. Please try again later. If the error appears again, please contact us', 'bestwebsoft' ) . ' <a href="https://support.bestwebsoft.com">BestWebSoft</a>. ' . __( 'We are sorry for inconvenience.', 'bestwebsoft' );
$response = maybe_unserialize( wp_remote_retrieve_body( $raw_response ) );
if ( is_array( $response ) && ! empty( $response ) ) {
foreach ( $response as $key => $value ) {
if ( 'wrong_license_key' === $value->package ) {
$error = __( 'Wrong license key.', 'bestwebsoft' );
} elseif ( 'wrong_domain' === $value->package ) {
$error = __( 'This license key is bound to another site. Change it via personal Client Area.', 'bestwebsoft' ) . '<a target="_blank" href="https://bestwebsoft.com/client-area">' . __( 'Log in', 'bestwebsoft' ) . '</a>';
} elseif ( 'you_are_banned' === $value->package ) {
$error = __( 'Unfortunately, you have exceeded the number of available tries per day.', 'bestwebsoft' );
} elseif ( 'time_out' === $value->package ) {
$error = sprintf( __( 'Unfortunately, Your license has expired. To continue getting top-priority support and plugin updates, you should extend it in your %s', 'bestwebsoft' ), ' <a href="https://bestwebsoft.com/client-area">Client Area</a>' );
} elseif ( 'duplicate_domen_for_trial' === $value->package ) {
$error = __( 'Unfortunately, the Pro licence was already installed to this domain. The Pro Trial license can be installed only once.', 'bestwebsoft' );
} elseif ( is_array( $value->package ) && ! empty( $value->package ) ) {
$plugins_array = $_SESSION['bws_membership_list'] = $value->package;
$_SESSION['bws_membership_time_check'] = strtotime( 'now' );
if ( isset( $bstwbsftwppdtplgns_options[ $bws_license_plugin ] ) && $bws_license_key === $bstwbsftwppdtplgns_options[ $bws_license_plugin ] ) {
$message = __( 'The license key is valid.', 'bestwebsoft' );
if ( isset( $value->time_out ) && '' !== $value->time_out ) {
$message .= ' ' . __( 'Your license will expire on', 'bestwebsoft' ) . ' ' . $value->time_out . '.';
$message = __( 'Congratulations! Pro Membership license is activated successfully.', 'bestwebsoft' );
$bstwbsftwppdtplgns_options[ $bws_license_plugin ] = $bws_license_key;
$error = __( 'Something went wrong. Try again later or upload the plugin manually. We are sorry for inconvenience.', 'bestwebsoft' );
update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
$error = __( 'Please enter your license key.', 'bestwebsoft' );
} elseif ( 'bws_system_status' === $page || 'system-status' === $tab ) {
$all_plugins = get_plugins();
$active_plugins = get_option( 'active_plugins' );
$mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
if ( is_array( $mysql_info ) ) {
$sql_mode = $mysql_info[0]->Value;
if ( empty( $sql_mode ) ) {
$sql_mode = __( 'Not set', 'bestwebsoft' );
$allow_url_fopen = ( ini_get( 'allow_url_fopen' ) ) ? __( 'On', 'bestwebsoft' ) : __( 'Off', 'bestwebsoft' );
$upload_max_filesize = ( ini_get( 'upload_max_filesize' ) ) ? ini_get( 'upload_max_filesize' ) : __( 'N/A', 'bestwebsoft' );
$post_max_size = ( ini_get( 'post_max_size' ) ) ? ini_get( 'post_max_size' ) : __( 'N/A', 'bestwebsoft' );
$max_execution_time = ( ini_get( 'max_execution_time' ) ) ? ini_get( 'max_execution_time' ) : __( 'N/A', 'bestwebsoft' );
$memory_limit = ( ini_get( 'memory_limit' ) ) ? ini_get( 'memory_limit' ) : __( 'N/A', 'bestwebsoft' );
$wp_memory_limit = ( defined( 'WP_MEMORY_LIMIT' ) ) ? WP_MEMORY_LIMIT : __( 'N/A', 'bestwebsoft' );
$memory_usage = ( function_exists( 'memory_get_usage' ) ) ? round( memory_get_usage() / 1024 / 1024, 2 ) . ' ' . __( 'Mb', 'bestwebsoft' ) : __( 'N/A', 'bestwebsoft' );
$exif_read_data = ( is_callable( 'exif_read_data' ) ) ? __( 'Yes', 'bestwebsoft' ) . ' ( V' . substr( phpversion( 'exif' ), 0, 4 ) . ')' : __( 'No', 'bestwebsoft' );
$iptcparse = ( is_callable( 'iptcparse' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
$xml_parser_create = ( is_callable( 'xml_parser_create' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
if ( function_exists( 'is_multisite' ) ) {
$multisite = is_multisite() ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
$multisite = __( 'N/A', 'bestwebsoft' );
'wp_environment' => array(
'name' => __( 'WordPress Environment', 'bestwebsoft' ),
__( 'Home URL', 'bestwebsoft' ) => home_url(),
__( 'Website URL', 'bestwebsoft' ) => get_option( 'siteurl' ),
__( 'WP Version', 'bestwebsoft' ) => $wp_version,
__( 'WP Multisite', 'bestwebsoft' ) => $multisite,
__( 'WP Memory Limit', 'bestwebsoft' ) => $wp_memory_limit,
__( 'Active Theme', 'bestwebsoft' ) => $theme['Name'] . ' ' . $theme['Version'] . ' (' . sprintf( __( 'by %s', 'bestwebsoft' ), $theme['Author'] ) . ')',
'server_environment' => array(
'name' => __( 'Server Environment', 'bestwebsoft' ),
__( 'Operating System', 'bestwebsoft' ) => PHP_OS,
__( 'Server', 'bestwebsoft' ) => isset( $_SERVER['SERVER_SOFTWARE'] ) ? sanitize_email( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ) ) : '',
__( 'PHP Version', 'bestwebsoft' ) => PHP_VERSION,
__( 'PHP Allow URL fopen', 'bestwebsoft' ) => $allow_url_fopen,
__( 'PHP Memory Limit', 'bestwebsoft' ) => $memory_limit,
__( 'Memory Usage', 'bestwebsoft' ) => $memory_usage,
__( 'PHP Max Upload Size', 'bestwebsoft' ) => $upload_max_filesize,
__( 'PHP Max Post Size', 'bestwebsoft' ) => $post_max_size,
__( 'PHP Max Script Execute Time', 'bestwebsoft' ) => $max_execution_time,
__( 'PHP Exif support', 'bestwebsoft' ) => $exif_read_data,
__( 'PHP IPTC support', 'bestwebsoft' ) => $iptcparse,
__( 'PHP XML support', 'bestwebsoft' ) => $xml_parser_create,
'$_SERVER[HTTP_HOST]' => isset( $_SERVER['HTTP_HOST'] ) ? sanitize_email( wp_unslash( $_SERVER['HTTP_HOST'] ) ) : '',
'$_SERVER[SERVER_NAME]' => isset( $_SERVER['SERVER_NAME'] ) ? sanitize_email( wp_unslash( $_SERVER['SERVER_NAME'] ) ) : '',
'name' => __( 'Database', 'bestwebsoft' ),
__( 'WP DB version', 'bestwebsoft' ) => get_option( 'db_version' ),
__( 'MySQL version', 'bestwebsoft' ) => $wpdb->get_var( 'SELECT VERSION() AS version' ),
__( 'SQL Mode', 'bestwebsoft' ) => $sql_mode,
'active_plugins' => array(
'name' => __( 'Active Plugins', 'bestwebsoft' ),
'inactive_plugins' => array(
'name' => __( 'Inactive Plugins', 'bestwebsoft' ),
foreach ( $all_plugins as $path => $plugin ) {
$name = str_replace( 'by BestWebSoft', '', $plugin['Name'] );
if ( is_plugin_active( $path ) ) {
$system_info['active_plugins']['data'][ $name ] = sprintf( __( 'by %s', 'bestwebsoft' ), $plugin['Author'] ) . ' - ' . $plugin['Version'];
$system_info['active_plugins']['count'] = $system_info['active_plugins']['count'] + 1;
$system_info['inactive_plugins']['data'][ $name ] = sprintf( __( 'by %s', 'bestwebsoft' ), $plugin['Author'] ) . ' - ' . $plugin['Version'];
$system_info['inactive_plugins']['count'] = $system_info['inactive_plugins']['count'] + 1;
if ( ( isset( $_REQUEST['bwsmn_form_submit'] ) && check_admin_referer( plugin_basename( __FILE__ ), 'bwsmn_nonce_submit' ) ) || ( isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) && check_admin_referer( plugin_basename( __FILE__ ), 'bwsmn_nonce_submit_custom_email' ) ) ) {
if ( isset( $_REQUEST['bwsmn_form_email'] ) ) {
$email = sanitize_email( wp_unslash( $_REQUEST['bwsmn_form_email'] ) );
$error = __( 'Please enter a valid email address.', 'bestwebsoft' );
$message = sprintf( __( 'Email with system info is sent to %s.', 'bestwebsoft' ), $email );
$email = 'plugin_system_status@bestwebsoft.com';
$message = __( 'Thank you for contacting us.', 'bestwebsoft' );
$headers = 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\n";
$headers .= 'From: ' . get_option( 'admin_email' );
$message_text = '<html><head><title>System Info From ' . home_url() . '</title></head><body>';
foreach ( $system_info as $info ) {
if ( ! empty( $info['data'] ) ) {
$message_text .= '<h4>' . $info['name'];
if ( isset( $info['count'] ) ) {
$message_text .= ' (' . $info['count'] . ')';
$message_text .= '</h4><table>';
foreach ( $info['data'] as $key => $value ) {
$message_text .= '<tr><td>' . $key . '</td><td>' . $value . '</td></tr>';
$message_text .= '</table>';
$message_text .= '</body></html>';
$result = wp_mail( $email, 'System Info From ' . esc_url( home_url() ), wp_kses( $message_text ), $headers );
if ( true !== $result ) {
$error = __( 'Sorry, email message could not be delivered.', 'bestwebsoft' );
<a href="<?php echo esc_url( ( $is_main_page ) ? self_admin_url( 'admin.php?page=bws_panel' ) : self_admin_url( 'admin.php?page=' . $page ) ); ?>">
<span class="bws-logo bwsicons bwsicons-bws-logo"></span>
<div class="bws-menu-item-icon">•••</div>
<div class="bws-nav-tab-wrapper">
<?php if ( $is_main_page ) { ?>
if ( 'bws_panel' === $page ) {
echo esc_attr( ' bws-nav-tab-active' );
" href="<?php echo esc_url( self_admin_url( 'admin.php?page=bws_panel' ) ); ?>">
esc_html_e( 'Plugins', 'bestwebsoft' );
if ( 'bws_themes' === $page ) {
echo esc_attr( ' bws-nav-tab-active' );
" href="<?php echo esc_url( self_admin_url( 'admin.php?page=bws_themes' ) ); ?>"><?php esc_html_e( 'Themes', 'bestwebsoft' ); ?></a>
if ( 'bws_system_status' === $page ) {
echo esc_attr( ' bws-nav-tab-active' );
" href="<?php echo esc_url( self_admin_url( 'admin.php?page=bws_system_status' ) ); ?>">
esc_html_e( 'System status', 'bestwebsoft' );
if ( ! isset( $_GET['tab'] ) ) {
echo esc_attr( ' bws-nav-tab-active' );
" href="<?php echo esc_url( self_admin_url( 'admin.php?page=' . $page ) ); ?>">
esc_html_e( 'Plugins', 'bestwebsoft' );
if ( 'themes' === $tab ) {
echo esc_attr( ' bws-nav-tab-active' );
" href="<?php echo esc_url( self_admin_url( 'admin.php?page=' . $page . '&tab=themes' ) ); ?>">
esc_html_e( 'Themes', 'bestwebsoft' );
if ( 'system-status' === $tab ) {
echo esc_attr( ' bws-nav-tab-active' );
" href="<?php echo esc_url( self_admin_url( 'admin.php?page=' . $page . '&tab=system-status' ) ); ?>">
esc_html_e( 'System status', 'bestwebsoft' );
<div class="bws-help-links-wrapper">
<a href="https://support.bestwebsoft.com" target="_blank"><?php esc_html_e( 'Support', 'bestwebsoft' ); ?></a>
<a href="https://bestwebsoft.com/client-area" target="_blank" title="<?php esc_html_e( 'Manage purchased licenses & subscriptions', 'bestwebsoft' ); ?>">Client Area</a>
<div class="clear"></div>
<?php if ( ( 'bws_panel' === $page || ( ! isset( $_GET['tab'] ) && ! $is_main_page ) ) && ! isset( $_POST['bws_plugin_action_submit'] ) ) { ?>
<div class="bws-membership-wrap">
<div class="bws-membership-backround"></div>
<div class="bws-membership">
<div class="bws-membership-title"><?php printf( esc_html__( 'Get Access to %s+ Premium Plugins', 'bestwebsoft' ), '30' ); ?></div>
<form class="bws-membership-form" method="post" action="">
<span class="bws-membership-link"><a target="_blank" href="https://bestwebsoft.com/membership/"><?php esc_html_e( 'Subscribe to Pro Membership', 'bestwebsoft' ); ?></a> <?php esc_html_e( 'or', 'bestwebsoft' ); ?></span>
if ( isset( $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] ) &&
'5' < $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] &&
$bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['time'] > ( time() - ( 24 * 60 * 60 ) ) ) {
<div class="bws_form_input_wrap">
<input disabled="disabled" type="text" name="bws_license_key" value="<?php echo esc_attr( $bws_license_key ); ?>" />
<div class="bws_error"><?php esc_html_e( 'Unfortunately, you have exceeded the number of available tries per day.', 'bestwebsoft' ); ?></div>
<input disabled="disabled" type="submit" class="bws-button" value="<?php esc_html_e( 'Check license key', 'bestwebsoft' ); ?>" />
<div class="bws_form_input_wrap">
echo 'class="bws_input_error"';
type="text" placeholder="<?php esc_html_e( 'Enter your license key', 'bestwebsoft' ); ?>" maxlength="100" name="bws_license_key" value="<?php echo esc_attr( $bws_license_key ); ?>" />
echo 'style="display:none"';
><?php echo esc_html( $error ); ?></div>
<input type="hidden" name="bws_license_plugin" value="<?php echo esc_attr( $bws_license_plugin ); ?>" />
<input type="hidden" name="bws_license_submit" value="submit" />
<?php if ( empty( $plugins_array ) ) { ?>
<input type="submit" class="bws-button" value="<?php esc_html_e( 'Activate', 'bestwebsoft' ); ?>" />
<input type="submit" class="bws-button" value="<?php esc_html_e( 'Check license key', 'bestwebsoft' ); ?>" />
<?php wp_nonce_field( plugin_basename( __FILE__ ), 'bws_license_nonce_name' ); ?>
<div class="clear"></div>
<div class="bws-wrap-content wrap">
<?php if ( 'bws_panel' === $page || ( ! isset( $_GET['tab'] ) && ! $is_main_page ) ) { ?>
<div class="updated notice is-dismissible inline"
if ( '' === $message || '' !== $error ) {
echo 'style="display:none"';
><p><?php echo esc_html( $message ); ?></p></div>
<?php esc_html_e( 'Plugins', 'bestwebsoft' ); ?>
<a href="<?php echo esc_url( self_admin_url( 'plugin-install.php?tab=upload' ) ); ?>" class="upload page-title-action add-new-h2"><?php esc_html_e( 'Upload Plugin', 'bestwebsoft' ); ?></a>
if ( isset( $_GET['error'] ) ) {
if ( isset( $_GET['charsout'] ) ) {
$errmsg = sprintf( __( 'The plugin generated %d characters of <strong>unexpected output</strong> during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.' ), intval( $_GET['charsout'] ) );
$errmsg = __( 'Plugin could not be activated because it triggered a <strong>fatal error</strong>.' );
<div id="message" class="error is-dismissible"><p><?php echo wp_kses( $errmsg ); ?></p></div>
<?php } elseif ( isset( $_GET['activate'] ) ) { ?>
<div id="message" class="updated notice is-dismissible"><p><?php esc_html_e( 'Plugin <strong>activated</strong>.' ); ?></p></div>
if ( isset( $_POST['bws_plugin_action_submit'] ) && isset( $_POST['bws_install_plugin'] ) && check_admin_referer( plugin_basename( __FILE__ ), 'bws_license_install_nonce_name' ) ) {
$bws_license_plugin = sanitize_text_field( wp_unslash( $_POST['bws_install_plugin'] ) );
$bstwbsftwppdtplgns_options[ $bws_license_plugin ] = $bws_license_key;
update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
$url = $plugins_array[ $bws_license_plugin ]['link'] . '&download_from=5';
<h2><?php esc_html_e( 'Download Pro Plugin', 'bestwebsoft' ); ?></h2>