wp/wp-content/plugins/portfolio/bws_menu/bws_menu.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
child 12 d8a8807227e4
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
     1 <?php
     1 <?php
     2 /*
     2 /*
     3 * Function for displaying BestWebSoft menu
     3 * Function for displaying BestWebSoft menu
     4 * Version: 1.6.2
     4 * Version: 2.1.5
     5 */
     5 */
     6 
     6 
     7 if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
     7 if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
     8 	require_once( dirname( __FILE__ ) . '/bws_functions.php' );
     8 	require_once( dirname( __FILE__ ) . '/bws_functions.php' );
     9 
     9 
    10 if ( ! function_exists( 'bws_add_menu_render' ) ) {
    10 if ( ! function_exists( 'bws_add_menu_render' ) ) {
    11 	function bws_add_menu_render() {
    11 	function bws_add_menu_render() {
    12 		global $wpdb, $wp_version, $bws_plugin_info;
    12 		global $wpdb, $wp_version, $bws_plugin_info, $bstwbsftwppdtplgns_options;
    13 		$error = $message = $bwsmn_form_email = '';
    13 		$error = $message = '';
    14 		$bws_donate_link = 'http://bestwebsoft.com/donate/';
    14 
    15 
    15 		/**
    16 		if ( ! function_exists( 'is_plugin_active_for_network' ) )
    16 		* @deprecated 1.9.8 (15.12.2016)
    17 			require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    17 		*/
    18 
    18 		$is_main_page = in_array( $_GET['page'], array( 'bws_panel', 'bws_themes', 'bws_system_status' ) );
    19 		if ( function_exists( 'is_multisite' ) )
    19 		$page = esc_attr( $_GET['page'] );
    20 			$admin_url = ( ! is_multisite() ) ? admin_url( '/' ) : network_admin_url( '/' );
    20 		$tab = isset( $_GET['tab'] ) ? esc_attr( $_GET['tab'] ) : '';
       
    21 
       
    22 		if ( $is_main_page )
       
    23 			$current_page = 'admin.php?page=' . $page;
    21 		else
    24 		else
    22 			$admin_url = admin_url( '/' );
    25 			$current_page = isset( $_GET['tab'] ) ? 'admin.php?page=' . $page . '&tab=' . $tab : 'admin.php?page=' . $page;
    23 
    26 
    24 		$bws_plugins = array(
    27 		if ( 'bws_panel' == $page || ( ! $is_main_page && '' == $tab ) ) {
    25 			'captcha/captcha.php' => array(
    28 
    26 				'name'			=> 'Captcha',
    29 			if ( ! function_exists( 'is_plugin_active_for_network' ) )
    27 				'description'	=> 'Plugin intended to prove that the visitor is a human being and not a spam robot.',
    30 				require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    28 				'link'			=> 'http://bestwebsoft.com/products/captcha/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    31 
    29 				'download'		=> 'http://bestwebsoft.com/products/captcha/download/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    32 			/* get $bws_plugins */
    30 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Captcha+bestwebsoft&plugin-search-input=Search+Plugins',
    33 			require( dirname( __FILE__ ) . '/product_list.php' );
    31 				'settings'		=> 'admin.php?page=captcha.php',
    34 
    32 				'pro_version'	=> 'captcha-pro/captcha_pro.php',
    35 			$all_plugins = get_plugins();
    33 				'purchase'		=> 'http://bestwebsoft.com/products/captcha/buy/?k=ff7d65e55e5e7f98f219be9ed711094e&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    36 			$active_plugins = get_option( 'active_plugins' );
    34 				'pro_settings'	=> 'admin.php?page=captcha_pro.php'
    37 			$sitewide_active_plugins = ( function_exists( 'is_multisite' ) && is_multisite() ) ? get_site_option( 'active_sitewide_plugins' ) : array();
    35 			),
    38 			$update_availible_all = get_site_transient( 'update_plugins' );
    36 			'contact-form-plugin/contact_form.php' => array(
    39 
    37 				'name'			=> 'Contact Form',
    40 			$plugin_category = isset( $_GET['category'] ) ? esc_attr( $_GET['category'] ) : 'all';
    38 				'description'	=> 'Add Contact Form to your WordPress website.',
    41 
    39 				'link'			=> 'http://bestwebsoft.com/products/contact-form/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    42 			if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) || ! isset( $_GET['sub'] ) ) {
    40 				'download'		=> 'http://bestwebsoft.com/products/contact-form/download/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    43 				$bws_plugins_update_availible = $bws_plugins_expired = array();
    41 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Contact+Form+bestwebsoft&plugin-search-input=Search+Plugins',
    44 				foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
    42 				'settings'		=> 'admin.php?page=contact_form.php',
    45 
    43 				'pro_version'	=> 'contact-form-pro/contact_form_pro.php',
    46 					foreach ( $value_plugin['category'] as $category_key ) {
    44 				'purchase'		=> 'http://bestwebsoft.com/products/contact-form/buy/?k=773dc97bb3551975db0e32edca1a6d71&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    47 						$bws_plugins_category[ $category_key ]['count'] = isset( $bws_plugins_category[ $category_key ]['count'] ) ? $bws_plugins_category[ $category_key ]['count'] + 1 : 1;
    45 				'pro_settings'	=> 'admin.php?page=contact_form_pro.php'
    48 					}
    46 			),
    49 
    47 			'facebook-button-plugin/facebook-button-plugin.php' => array(
    50 					$is_installed = array_key_exists( $key_plugin, $all_plugins );
    48 				'name'			=> 'Facebook Like Button',
    51 					$is_pro_installed = false;
    49 				'description'	=> 'Allows you to add the Follow and Like buttons the easiest way.',
    52 					if ( isset( $value_plugin['pro_version'] ) ) {
    50 				'link'			=> 'http://bestwebsoft.com/products/facebook-like-button/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    53 						$is_pro_installed = array_key_exists( $value_plugin['pro_version'], $all_plugins );
    51 				'download'		=> 'http://bestwebsoft.com/products/facebook-like-button/download/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    54 					}
    52 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Facebook+Like+Button+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
    55 					/* check update_availible */
    53 				'settings'		=> 'admin.php?page=facebook-button-plugin.php',
    56 					if ( ! empty( $update_availible_all ) && ! empty( $update_availible_all->response ) ) {
    54 				'pro_version'	=> 'facebook-button-pro/facebook-button-pro.php',
    57 						if ( $is_pro_installed && array_key_exists( $value_plugin['pro_version'], $update_availible_all->response ) ) {
    55 				'purchase' 		=> 'http://bestwebsoft.com/products/facebook-like-button/buy/?k=8da168e60a831cfb3525417c333ad275&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    58 							unset( $bws_plugins[ $key_plugin ] );
    56 				'pro_settings' 	=> 'admin.php?page=facebook-button-pro.php'
    59 							$value_plugin['update_availible'] = $value_plugin['pro_version'];
    57 			),
    60 							$bws_plugins_update_availible[ $key_plugin ] = $value_plugin;
    58 			'twitter-plugin/twitter.php' => array(
    61 						} else if ( $is_installed && array_key_exists( $key_plugin, $update_availible_all->response ) ) {
    59 				'name'			=> 'Twitter',
    62 							unset( $bws_plugins[ $key_plugin ] );
    60 				'description'	=> 'Allows you to add the Twitter "Follow" and "Like" buttons the easiest way.',
    63 							$value_plugin['update_availible'] = $key_plugin;
    61 				'link'			=> 'http://bestwebsoft.com/products/twitter/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    64 							$bws_plugins_update_availible[ $key_plugin ] = $value_plugin;
    62 				'download'		=> 'http://bestwebsoft.com/products/twitter/download/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    65 						}
    63 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Twitter+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
    66 					}
    64 				'settings'		=> 'admin.php?page=twitter.php',
    67 					/* check expired */
    65 				'pro_version'	=> 'twitter-pro/twitter-pro.php',
    68 					if ( $is_pro_installed && isset( $bstwbsftwppdtplgns_options['time_out'][ $value_plugin['pro_version'] ] ) &&
    66 				'purchase' 		=> 'http://bestwebsoft.com/products/twitter/buy/?k=63ecbf0cc9cebf060b5a3c9362299700&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    69 						strtotime( $bstwbsftwppdtplgns_options['time_out'][ $value_plugin['pro_version'] ] ) < strtotime( date( "m/d/Y" ) ) ) {
    67 				'pro_settings' 	=> 'admin.php?page=twitter-pro.php'
    70 						unset( $bws_plugins[ $key_plugin ] );
    68 			),
    71 						$value_plugin['expired'] = $bstwbsftwppdtplgns_options['time_out'][ $value_plugin['pro_version'] ];
    69 			'portfolio/portfolio.php' => array(
    72 						$bws_plugins_expired[ $key_plugin ] = $value_plugin;
    70 				'name'			=> 'Portfolio',
    73 					}
    71 				'description'	=> 'Allows you to create a page with the information about your past projects.',
    74 				}
    72 				'link'			=> 'http://bestwebsoft.com/products/portfolio/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    75 				$bws_plugins = $bws_plugins_update_availible + $bws_plugins_expired + $bws_plugins;
    73 				'download'		=> 'http://bestwebsoft.com/products/portfolio/download/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
    76 			} else {
    74 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Portfolio+bestwebsoft&plugin-search-input=Search+Plugins',
    77 				foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
    75 				'settings'		=> 'admin.php?page=portfolio.php',
    78 					foreach ( $value_plugin['category'] as $category_key ) {
    76 				'pro_version'	=> 'portfolio-pro/portfolio-pro.php',
    79 						$bws_plugins_category[ $category_key ]['count'] = isset( $bws_plugins_category[ $category_key ]['count'] ) ? $bws_plugins_category[ $category_key ]['count'] + 1 : 1;
    77 				'purchase' 		=> 'http://bestwebsoft.com/products/portfolio/buy/?k=2cc716026197d36538a414b728e49fdd&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
    78 				'pro_settings' 	=> 'admin.php?page=portfolio-pro.php'
       
    79 			),
       
    80 			'gallery-plugin/gallery-plugin.php' => array(
       
    81 				'name'			=> 'Gallery',
       
    82 				'description'	=> 'Allows you to implement a Gallery page into your website.',
       
    83 				'link'			=> 'http://bestwebsoft.com/products/gallery/?k=2da21c0a64eec7ebf16337fa134c5f78&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
    84 				'download'		=> 'http://bestwebsoft.com/products/gallery/download/?k=2da21c0a64eec7ebf16337fa134c5f78&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
    85 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Gallery+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
       
    86 				'settings'		=> 'admin.php?page=gallery-plugin.php',
       
    87 				'pro_version'	=> 'gallery-plugin-pro/gallery-plugin-pro.php',
       
    88 				'purchase'		=> 'http://bestwebsoft.com/products/gallery/buy/?k=382e5ce7c96a6391f5ffa5e116b37fe0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
    89 				'pro_settings'	=> 'admin.php?page=gallery-plugin-pro.php'
       
    90 			),
       
    91 			'adsense-plugin/adsense-plugin.php'=> array(
       
    92 				'name'			=> 'Google AdSense by BestWebSoft',
       
    93 				'description'	=> 'Allows Google AdSense implementation to your website.',
       
    94 				'link'			=> 'http://bestwebsoft.com/products/google-adsense/?k=60e3979921e354feb0347e88e7d7b73d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
    95 				'download'		=> 'http://bestwebsoft.com/products/google-adsense/download/?k=60e3979921e354feb0347e88e7d7b73d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
    96 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Adsense+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
       
    97 				'settings'		=> 'admin.php?page=adsense-plugin.php'
       
    98 			),
       
    99 			'custom-search-plugin/custom-search-plugin.php'=> array(
       
   100 				'name'			=> 'Custom Search',
       
   101 				'description'	=> 'Allows to extend your website search functionality by adding a custom post type.',
       
   102 				'link'			=> 'http://bestwebsoft.com/products/custom-search/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   103 				'download'		=> 'http://bestwebsoft.com/products/custom-search/download/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   104 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Custom+Search+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
       
   105 				'settings'		=> 'admin.php?page=custom_search.php'
       
   106 			),
       
   107 			'quotes-and-tips/quotes-and-tips.php'=> array(
       
   108 				'name'			=> 'Quotes and Tips',
       
   109 				'description'	=> 'Allows you to implement quotes & tips block into your web site.',
       
   110 				'link'			=> 'http://bestwebsoft.com/products/quotes-and-tips/?k=5738a4e85a798c4a5162240c6515098d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   111 				'download'		=> 'http://bestwebsoft.com/products/quotes-and-tips/download/?k=5738a4e85a798c4a5162240c6515098d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   112 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Quotes+and+Tips+bestwebsoft&plugin-search-input=Search+Plugins',
       
   113 				'settings'		=> 'admin.php?page=quotes-and-tips.php'
       
   114 			),
       
   115 			'google-sitemap-plugin/google-sitemap-plugin.php'=> array(
       
   116 				'name'			=> 'Google Sitemap by BestWebSoft',
       
   117 				'description'	=> 'Allows you to add sitemap file to Google Webmaster Tools.',
       
   118 				'link'			=> 'http://bestwebsoft.com/products/google-sitemap/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   119 				'download'		=> 'http://bestwebsoft.com/products/google-sitemap/download/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   120 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Google+sitemap+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
       
   121 				'settings'		=> 'admin.php?page=google-sitemap-plugin.php',
       
   122 				'pro_version'	=> 'google-sitemap-pro/google-sitemap-pro.php',
       
   123 				'purchase'		=> 'http://bestwebsoft.com/products/google-sitemap/buy/?k=7ea384a5cc36cb4c22741caa20dcd56d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   124 				'pro_settings'	=> 'admin.php?page=google-sitemap-pro.php'
       
   125 			),
       
   126 			'updater/updater.php'=> array(
       
   127 				'name'			=> 'Updater',
       
   128 				'description'	=> 'Allows you to update plugins and WP core.',
       
   129 				'link'			=> 'http://bestwebsoft.com/products/updater/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   130 				'download'		=> 'http://bestwebsoft.com/products/updater/download/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   131 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=updater+bestwebsoft&plugin-search-input=Search+Plugins',
       
   132 				'settings'		=> 'admin.php?page=updater-options',
       
   133 				'pro_version'	=> 'updater-pro/updater_pro.php',
       
   134 				'purchase' 		=> 'http://bestwebsoft.com/products/updater/buy/?k=cf633acbefbdff78545347fe08a3aecb&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   135 				'pro_settings' 	=> 'admin.php?page=updater-pro-options'
       
   136 			),
       
   137 			'custom-fields-search/custom-fields-search.php'=> array(
       
   138 				'name'			=> 'Custom Fields Search',
       
   139 				'description'	=> 'Allows you to add website search any existing custom fields.',
       
   140 				'link'			=> 'http://bestwebsoft.com/products/custom-fields-search/?k=f3f8285bb069250c42c6ffac95ed3284&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   141 				'download'		=> 'http://bestwebsoft.com/products/custom-fields-search/download/?k=f3f8285bb069250c42c6ffac95ed3284&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   142 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Custom+Fields+Search+bestwebsoft&plugin-search-input=Search+Plugins',
       
   143 				'settings'		=> 'admin.php?page=custom_fields_search.php'
       
   144 			),
       
   145 			'google-one/google-plus-one.php' => array(
       
   146 				'name'			=> 'Google +1 by BestWebSoft',
       
   147 				'description'	=> 'Allows you to see how many times your page has been liked on Google Search Engine as well as who has liked the article.',
       
   148 				'link'			=> 'http://bestwebsoft.com/products/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   149 				'download'		=> 'http://bestwebsoft.com/products/google-plus-one/download/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   150 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins',
       
   151 				'settings'		=> 'admin.php?page=google-plus-one.php',
       
   152 				'pro_version'	=> 'google-one-pro/google-plus-one-pro.php',
       
   153 				'purchase' 		=> 'http://bestwebsoft.com/products/google-plus-one/buy/?k=f4b0a62d155c9df9601a0531ad5bd832&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   154 				'pro_settings' 	=> 'admin.php?page=google-plus-one-pro.php'
       
   155 			),
       
   156 			'relevant/related-posts-plugin.php' => array(
       
   157 				'name'			=> 'Relevant - Related Posts',
       
   158 				'description'	=> 'Allows you to display related posts with similar words in category, tags, title or by adding special meta key for posts.',
       
   159 				'link'			=> 'http://bestwebsoft.com/products/related-posts/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   160 				'download'		=> 'http://bestwebsoft.com/products/related-posts/download/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   161 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Related+Posts+Plugin+Bestwebsoft&plugin-search-input=Search+Plugins',
       
   162 				'settings'		=> 'admin.php?page=related-posts-plugin.php'
       
   163 			),
       
   164 			'contact-form-to-db/contact_form_to_db.php' => array(
       
   165 				'name'			=> 'Contact Form To DB',
       
   166 				'description'	=> 'Allows you to manage the messages that have been sent from your site.',
       
   167 				'link'			=> 'http://bestwebsoft.com/products/contact-form-to-db/?k=ba3747d317c2692e4136ca096a8989d6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   168 				'download'		=> 'http://bestwebsoft.com/products/contact-form-to-db/download/?k=ba3747d317c2692e4136ca096a8989d6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   169 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Contact+Form+to+DB+bestwebsoft&plugin-search-input=Search+Plugins',
       
   170 				'settings'		=> 'admin.php?page=cntctfrmtdb_settings',
       
   171 				'pro_version'	=> 'contact-form-to-db-pro/contact_form_to_db_pro.php',
       
   172 				'purchase' 		=> 'http://bestwebsoft.com/products/contact-form-to-db/buy/?k=6ce5f4a9006ec906e4db643669246c6a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   173 				'pro_settings' 	=> 'admin.php?page=cntctfrmtdbpr_settings'
       
   174 			),
       
   175 			'pdf-print/pdf-print.php' => array(
       
   176 				'name'			=> 'PDF & Print',
       
   177 				'description'	=> 'Allows you to create PDF and Print page with adding appropriate buttons to the content.',
       
   178 				'link'			=> 'http://bestwebsoft.com/products/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   179 				'download'		=> 'http://bestwebsoft.com/products/pdf-print/download/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   180 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=PDF+Print+Bestwebsoft&plugin-search-input=Search+Plugins',
       
   181 				'settings'		=> 'admin.php?page=pdf-print.php',
       
   182 				'pro_version'	=> 'pdf-print-pro/pdf-print-pro.php',
       
   183 				'purchase' 		=> 'http://bestwebsoft.com/products/pdf-print/buy/?k=fd43a0e659ddc170a9060027cbfdcc3a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   184 				'pro_settings' 		=> 'admin.php?page=pdf-print-pro.php'
       
   185 			),
       
   186 			'donate-button/donate.php' => array(
       
   187 				'name'			=> 'Donate',
       
   188 				'description'	=> 'Makes it possible to place donation buttons of various payment systems on your web page.',
       
   189 				'link'			=> 'http://bestwebsoft.com/products/donate/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   190 				'download'		=> 'http://bestwebsoft.com/products/donate/download/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   191 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Donate+Bestwebsoft&plugin-search-input=Search+Plugins',
       
   192 				'settings'		=> 'admin.php?page=donate.php'
       
   193 			),
       
   194 			'post-to-csv/post-to-csv.php' => array(
       
   195 				'name'			=> 'Post To CSV',
       
   196 				'description'	=> 'The plugin allows to export posts of any types to a csv file.',
       
   197 				'link'			=> 'http://bestwebsoft.com/products/post-to-csv/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   198 				'download'		=> 'http://bestwebsoft.com/products/post-to-csv/download/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   199 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Post+To+CSV+Bestwebsoft&plugin-search-input=Search+Plugins',
       
   200 				'settings'		=> 'admin.php?page=post-to-csv.php'
       
   201 			),
       
   202 			'google-shortlink/google-shortlink.php' => array(
       
   203 				'name'			=> 'Google Shortlink by BestWebSoft',
       
   204 				'description'	=> 'Allows you to get short links from goo.gl servise without leaving your site.',
       
   205 				'link'			=> 'http://bestwebsoft.com/products/google-shortlink/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   206 				'download'		=> 'http://bestwebsoft.com/products/google-shortlink/download/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   207 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Google+Shortlink+Bestwebsoft&plugin-search-input=Search+Plugins',
       
   208 				'settings'		=> 'admin.php?page=gglshrtlnk_options'
       
   209 			),
       
   210 			'htaccess/htaccess.php' => array(
       
   211 				'name'			=> 'Htaccess',
       
   212 				'description'	=> 'Allows controlling access to your website using the directives Allow and Deny.',
       
   213 				'link'			=> 'http://bestwebsoft.com/products/htaccess/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   214 				'download'		=> 'http://bestwebsoft.com/products/htaccess/download/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   215 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Htaccess+Bestwebsoft&plugin-search-input=Search+Plugins',
       
   216 				'settings'		=> 'admin.php?page=htaccess.php',
       
   217 				'pro_version'	=> 'htaccess-pro/htaccess-pro.php',
       
   218 				'purchase' 		=> 'http://bestwebsoft.com/products/htaccess/buy/?k=59e9209a32864be534fda77d5e591c15&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   219 				'pro_settings' 	=> 'admin.php?page=htaccess-pro.php'
       
   220 			),
       
   221 			'google-captcha/google-captcha.php' => array(
       
   222 				'name'			=> 'Google Captcha (reCAPTCHA) by BestWebSoft',
       
   223 				'description'	=> 'Plugin intended to prove that the visitor is a human being and not a spam robot.',
       
   224 				'link'			=> 'http://bestwebsoft.com/products/google-captcha/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   225 				'download'		=> 'http://bestwebsoft.com/products/google-captcha/download/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   226 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Google+Captcha+Bestwebsoft&plugin-search-input=Search+Plugins',
       
   227 				'settings'		=> 'admin.php?page=google-captcha.php'
       
   228 			),
       
   229 			'sender/sender.php' => array(
       
   230 				'name'			=> 'Sender',
       
   231 				'description'	=> 'You can send mails to all users or to certain categories of users.',
       
   232 				'link'			=> 'http://bestwebsoft.com/products/sender/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   233 				'download'		=> 'http://bestwebsoft.com/products/sender/download/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   234 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Sender+Bestwebsoft&plugin-search-input=Search+Plugins',
       
   235 				'settings'		=> 'admin.php?page=sndr_settings',
       
   236 				'pro_version'	=> 'sender-pro/sender-pro.php',
       
   237 				'purchase' 		=> 'http://bestwebsoft.com/products/sender/buy/?k=dc5d1a87bdc8aeab2de40ffb99b38054&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   238 				'pro_settings'	=> 'admin.php?page=sndrpr_settings'
       
   239 			),
       
   240 			'subscriber/subscriber.php' => array(
       
   241 				'name'			=> 'Subscriber',
       
   242 				'description'	=> 'This plugin allows you to subscribe users for newsletters from your website.',
       
   243 				'link'			=> 'http://bestwebsoft.com/products/subscriber/?k=a4ecc1b7800bae7329fbe8b4b04e9c88&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   244 				'download'		=> 'http://bestwebsoft.com/products/subscriber/download/?k=a4ecc1b7800bae7329fbe8b4b04e9c88&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   245 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Subscriber+Bestwebsoft&plugin-search-input=Search+Plugins',
       
   246 				'settings'		=> 'admin.php?page=sbscrbr_settings_page',
       
   247 				'pro_version'	=> 'subscriber-pro/subscriber-pro.php',
       
   248 				'purchase' 		=> 'http://bestwebsoft.com/products/subscriber/buy/?k=02dbb8b549925d9b74e70adc2a7282e4&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   249 				'pro_settings' 	=> 'admin.php?page=sbscrbrpr_settings_page'
       
   250 			),
       
   251 			'contact-form-multi/contact-form-multi.php' => array(
       
   252 				'name'			=> 'Contact Form Multi',
       
   253 				'description'	=> 'Add-on to the Contact Form plugin that allows to create and implement multiple contact forms.',
       
   254 				'link'			=> 'http://bestwebsoft.com/products/contact-form-multi/?k=83cdd9e72a9f4061122ad28a67293c72&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   255 				'download'		=> 'http://bestwebsoft.com/products/contact-form-multi/download/?k=83cdd9e72a9f4061122ad28a67293c72&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   256 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Contact+Form+Multi+Bestwebsoft&plugin-search-input=Search+Plugins',
       
   257 				'settings'		=> '',
       
   258 				'pro_version'	=> 'contact-form-multi-pro/contact-form-multi-pro.php',
       
   259 				'purchase' 		=> 'http://bestwebsoft.com/products/contact-form-multi/buy/?k=fde3a18581c143654f060c398b07e8ac&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   260 				'pro_settings' 	=> ''
       
   261 			),
       
   262 			'bws-google-maps/bws-google-maps.php' => array(
       
   263 				'name'			=> 'Google Maps by BestWebSoft',
       
   264 				'description'	=> 'Easy to set up and insert Google Maps to your website.',
       
   265 				'link'			=> 'http://bestwebsoft.com/products/bws-google-maps/?k=d8fac412d7359ebaa4ff53b46572f9f7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   266 				'download'		=> 'http://bestwebsoft.com/products/bws-google-maps/download/?k=d8fac412d7359ebaa4ff53b46572f9f7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   267 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Google+Maps+Bestwebsoft&plugin-search-input=Search+Plugins',
       
   268 				'settings'		=> 'admin.php?page=bws-google-maps.php',
       
   269 				'pro_version'	=> 'bws-google-maps-pro/bws-google-maps-pro.php',
       
   270 				'purchase' 		=> 'http://bestwebsoft.com/products/bws-google-maps/buy/?k=117c3f9fc17f2c83ef430a8a9dc06f56&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   271 				'pro_settings' 	=> 'admin.php?page=bws-google-maps-pro.php'
       
   272 			),
       
   273 			'bws-google-analytics/bws-google-analytics.php' => array(
       
   274 				'name'			=> 'Google Analytics by BestWebSoft',
       
   275 				'description'	=> 'Allows you to retrieve basic stats from Google Analytics account and add the tracking code to your blog.',
       
   276 				'link'			=> 'http://bestwebsoft.com/products/bws-google-analytics/?k=261c74cad753fb279cdf5a5db63fbd43&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   277 				'download'		=> 'http://bestwebsoft.com/products/bws-google-analytics/download/?k=261c74cad753fb279cdf5a5db63fbd43&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   278 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Google+Analytics+Bestwebsoft&plugin-search-input=Search+Plugins',
       
   279 				'settings'		=> 'admin.php?page=bws-google-analytics.php',
       
   280 				'pro_version'	=> 'bws-google-analytics-pro/bws-google-analytics-pro.php',
       
   281 				'purchase' 		=> 'http://bestwebsoft.com/products/bws-google-analytics/buy/?k=83796e84fec3f70ecfcc8894a73a6c4a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   282 				'pro_settings' 	=> 'admin.php?page=bws-google-analytics-pro.php'
       
   283 			),
       
   284 			'db-manager/db-manager.php' => array(
       
   285 				'name'			=> 'DB manager',
       
   286 				'description'	=> 'Allows you to download the latest version of PhpMyadmin and Dumper and manage your site.',
       
   287 				'link'			=> 'http://bestwebsoft.com/products/db-manager/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   288 				'download'		=> 'http://bestwebsoft.com/products/db-manager/download/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   289 				'wp_install'	=> 'http://bestwebsoft.com/products/db-manager/download/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   290 				'settings'		=> 'admin.php?page=db-manager.php'
       
   291 			),
       
   292 			'user-role/user-role.php' => array(
       
   293 				'name'			=> 'User Role',
       
   294 				'description'	=> 'Allows to change wordpress user role capabilities.',
       
   295 				'link'			=> 'http://bestwebsoft.com/products/user-role/?k=dfe2244835c6fbf601523964b3f34ccc&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   296 				'download'		=> 'http://bestwebsoft.com/products/user-role/download/?k=dfe2244835c6fbf601523964b3f34ccc&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   297 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=User+Role+BestWebSoft&plugin-search-input=Search+Plugins',
       
   298 				'settings'		=> 'admin.php?page=user-role.php',
       
   299 				'pro_version'	=> 'user-role-pro/user-role-pro.php',
       
   300 				'purchase' 		=> 'http://bestwebsoft.com/products/user-role/buy/?k=cfa9cea6613fb3d7c0a3622fa2faaf46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   301 				'pro_settings' 	=> 'admin.php?page=user-role-pro.php'
       
   302 			),
       
   303 			'email-queue/email-queue.php' => array(
       
   304 				'name'			=> 'Email Queue',
       
   305 				'description'	=> 'Allows to manage email massages sent by BestWebSoft plugins.',
       
   306 				'link'			=> 'http://bestwebsoft.com/products/email-queue/?k=e345e1b6623f0dca119bc2d9433b130b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   307 				'download'		=> 'http://bestwebsoft.com/products/email-queue/download/?k=e345e1b6623f0dca119bc2d9433b130b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   308 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Email+Queue+BestWebSoft&plugin-search-input=Search+Plugins',
       
   309 				'settings'		=> 'admin.php?page=mlq_settings'
       
   310 			),
       
   311 			'limit-attempts/limit-attempts.php' => array(
       
   312 				'name'			=> 'Limit Attempts',
       
   313 				'description'	=> 'Allows you to limit rate of login attempts by the ip, and create whitelist and blacklist.',
       
   314 				'link'			=> 'http://bestwebsoft.com/products/limit-attempts/?k=b14e1697ee4d008abcd4bd34d492573a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   315 				'download'		=> 'http://bestwebsoft.com/products/limit-attempts/download/?k=b14e1697ee4d008abcd4bd34d492573a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   316 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&s=Limit+Attempts+BestWebSoft&plugin-search-input=Search+Plugins',
       
   317 				'settings'		=> 'admin.php?page=limit-attempts.php',
       
   318 				'pro_version'	=> 'limit-attempts-pro/limit-attempts-pro.php',
       
   319 				'purchase' 		=> 'http://bestwebsoft.com/products/limit-attempts/buy/?k=9d42cdf22c7fce2c4b6b447e6a2856e0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   320 				'pro_settings'	=> 'admin.php?page=limit-attempts-pro.php'
       
   321 			),
       
   322 			'job-board/job-board.php' => array(
       
   323 				'name'			=> 'Job board',
       
   324 				'description'	=> 'Allows to create a job-board page on your site.',
       
   325 				'link'			=> 'http://bestwebsoft.com/products/job-board/?k=b0c504c9ce6edd6692e04222af3fed6f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   326 				'download'		=> 'http://bestwebsoft.com/products/job-board/download/?k=b0c504c9ce6edd6692e04222af3fed6f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   327 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Job+board+BestWebSoft&plugin-search-input=Search+Plugins',
       
   328 				'settings'		=> 'admin.php?page=job-board.php'
       
   329 			),
       
   330 			'multilanguage/multilanguage.php' => array(
       
   331 				'name'			=> 'Multilanguage',
       
   332 				'description'	=> 'Allows to create content on a Wordpress site in different languages.',
       
   333 				'link'			=> 'http://bestwebsoft.com/products/multilanguage/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   334 				'download'		=> 'http://bestwebsoft.com/products/multilanguage/download/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   335 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Multilanguage+BestWebSoft&plugin-search-input=Search+Plugins',
       
   336 				'settings'		=> 'admin.php?page=mltlngg_settings'
       
   337 			),
       
   338 			'bws-popular-posts/bws-popular-posts.php' => array(
       
   339 				'name'			=> 'Popular Posts by BestWebSoft',
       
   340 				'description'	=> 'This plugin will help you can display the most popular posts on your blog in the widget.',
       
   341 				'link'			=> 'http://bestwebsoft.com/products/popular-posts/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   342 				'download'		=> 'http://bestwebsoft.com/products/popular-posts/download/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   343 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Popular+Posts+BestWebSoft&plugin-search-input=Search+Plugins',
       
   344 				'settings'		=> 'admin.php?page=popular-posts.php'
       
   345 			),
       
   346 			'bws-testimonials/bws-testimonials.php' => array(
       
   347 				'name'			=> 'Testimonials by BestWebSoft',
       
   348 				'description'	=> 'Allows creating and displaying a Testimonial on your website.',
       
   349 				'link'			=> 'http://bestwebsoft.com/products/testimonials/?k=3fe4bb89dc901c98e43a113e08f8db73&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   350 				'download'		=> 'http://bestwebsoft.com/products/testimonials/download/?k=3fe4bb89dc901c98e43a113e08f8db73&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   351 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Testimonials+BestWebSoft&plugin-search-input=Search+Plugins',
       
   352 				'settings'		=> 'admin.php?page=testimonials.php'
       
   353 			),
       
   354 			'bws-featured-posts/bws-featured-posts.php' => array(
       
   355 				'name'			=> 'Featured Posts by BestWebSoft',
       
   356 				'description'	=> 'Displays featured posts randomly on any website page.',
       
   357 				'link'			=> 'http://bestwebsoft.com/products/featured-posts/?k=f0afb31185ba7c7d6d598528d69f6d97&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   358 				'download'		=> 'http://bestwebsoft.com/products/featured-posts/download/?k=f0afb31185ba7c7d6d598528d69f6d97&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   359 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Featured+Posts+BestWebSoft&plugin-search-input=Search+Plugins',
       
   360 				'settings'		=> 'admin.php?page=featured-posts.php'
       
   361 			),
       
   362 			'gallery-categories/gallery-categories.php' => array(
       
   363 				'name'			=> 'Gallery Categories',
       
   364 				'description'	=> 'Add-on for Gallery Plugin by BestWebSoft',
       
   365 				'link'			=> 'http://bestwebsoft.com/products/gallery-categories/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   366 				'download'		=> 'http://bestwebsoft.com/products/gallery-categories/download/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   367 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Gallery+Categories+BestWebSoft&plugin-search-input=Search+Plugins',
       
   368 				'settings'		=> ''
       
   369 			),
       
   370 			're-attacher/re-attacher.php' => array(
       
   371 				'name'			=> 'Re-attacher',
       
   372 				'description'	=> 'This plugin allows to attach, unattach or reattach media item in different post.',
       
   373 				'link'			=> 'http://bestwebsoft.com/products/re-attacher/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   374 				'download'		=> 'http://bestwebsoft.com/products/re-attacher/download/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   375 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Re-attacher+BestWebSoft&plugin-search-input=Search+Plugins',
       
   376 				'settings'		=> 'admin.php?page=re-attacher.php'
       
   377 			),
       
   378 			'bws-smtp/bws-smtp.php' => array(
       
   379 				'name'			=> 'SMTP by BesWebSoft',
       
   380 				'description'	=> 'This plugin introduces an easy way to configure sending email messages via SMTP.',
       
   381 				'link'			=> 'http://bestwebsoft.com/products/bws-smtp/?k=0546419f962704429ad2d9b88567752f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   382 				'download'		=> 'http://bestwebsoft.com/products/bws-smtp/download/?k=0546419f962704429ad2d9b88567752f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   383 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=SMTP+BestWebSoft&plugin-search-input=Search+Plugins',
       
   384 				'settings'		=> 'admin.php?page=bwssmtp_settings'
       
   385 			),
       
   386 			'promobar/promobar.php' => array(
       
   387 				'name'			=> 'PromoBar',
       
   388 				'description'	=> 'This plugin allows placing banners with any data on your website.',
       
   389 				'link'			=> 'http://bestwebsoft.com/products/promobar/?k=619eac2232d9cfa382c4e678c3b14766&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   390 				'download'		=> 'http://bestwebsoft.com/products/promobar/download/?k=619eac2232d9cfa382c4e678c3b14766&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   391 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=PromoBar+BestWebSoft&plugin-search-input=Search+Plugins',
       
   392 				'settings'		=> 'admin.php?page=promobar.php',
       
   393 				'pro_version'	=> 'promobar-pro/promobar-pro.php',
       
   394 				'purchase' 		=> 'http://bestwebsoft.com/products/promobar/buy/?k=a9b09708502f12a1483532ba12fe2103&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   395 				'pro_settings'	=> 'admin.php?page=promobar-pro.php'
       
   396 			),
       
   397 			'realty/realty.php' => array(
       
   398 				'name'			=> 'Realty',
       
   399 				'description'	=> 'A convenient plugin that adds Real Estate functionality.',
       
   400 				'link'			=> 'http://bestwebsoft.com/products/realty/?k=d55de979dbbbb7af0b2ff1d7f43884fa&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   401 				'download'		=> 'http://bestwebsoft.com/products/realty/download/?k=d55de979dbbbb7af0b2ff1d7f43884fa&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   402 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Realty+BestWebSoft&plugin-search-input=Search+Plugins',
       
   403 				'settings'		=> 'admin.php?page=realty_settings',
       
   404 				'pro_version'	=> 'realty-pro/realty-pro.php',
       
   405 				'purchase' 		=> 'http://bestwebsoft.com/products/realty/buy/?k=c7791f0a72acfb36f564a614dbccb474&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   406 				'pro_settings'	=> 'admin.php?page=realty_pro_settings'
       
   407 			),
       
   408 			'zendesk-help-center/zendesk-help-center.php' => array(
       
   409 				'name'			=> 'Zendesk Help Center Backup',
       
   410 				'description'	=> 'This plugin allows to backup Zendesk Help Center.',
       
   411 				'link'			=> 'http://bestwebsoft.com/products/zendesk-help-center/?k=2a5fd2f4b2f4bde46f2ca44b8d15846d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   412 				'download'		=> 'http://bestwebsoft.com/products/zendesk-help-center/download/?k=2a5fd2f4b2f4bde46f2ca44b8d15846d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   413 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Zendesk+Help+Center+Backup+BestWebSoft&plugin-search-input=Search+Plugins',
       
   414 				'settings'		=> 'admin.php?page=zendesk_hc.php&tab=settings'
       
   415 			),
       
   416 			'social-buttons-pack/social-buttons-pack.php' => array(
       
   417 				'name'			=> 'Social Buttons Pack',
       
   418 				'description'	=> 'Add Social buttons to your WordPress website.',
       
   419 				'link'			=> 'http://bestwebsoft.com/products/social-buttons-pack/?k=b6440fad9f54274429e536b0c61b42da&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   420 				'download'		=> 'http://bestwebsoft.com/products/social-buttons-pack/download/?k=b6440fad9f54274429e536b0c61b42da&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   421 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Social+Buttons+Pack+BestWebSoft&plugin-search-input=Search+Plugins',
       
   422 				'settings'		=> 'admin.php?page=social-buttons.php'
       
   423 			),
       
   424 			'pagination/pagination.php' => array(
       
   425 				'name'			=> 'Pagination',
       
   426 				'description'	=> 'Add pagination block to your WordPress website.',
       
   427 				'link'			=> 'http://bestwebsoft.com/products/pagination/?k=22adb940256f149559ba8fedcd728ac8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   428 				'download'		=> 'http://bestwebsoft.com/products/pagination/download/?k=22adb940256f149559ba8fedcd728ac8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
       
   429 				'wp_install'	=> $admin_url . 'plugin-install.php?tab=search&type=term&s=Pagination+BestWebSoft&plugin-search-input=Search+Plugins',
       
   430 				'settings'		=> 'admin.php?page=pagination.php'
       
   431 			)
       
   432 		);
       
   433 
       
   434 		$all_plugins = get_plugins();
       
   435 		$active_plugins = get_option( 'active_plugins' );
       
   436 		$recommend_plugins = array_diff_key( $bws_plugins, $all_plugins );
       
   437 		$bws_plugins_pro = array();
       
   438 
       
   439 		foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
       
   440 			if ( ! isset( $all_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
       
   441 				unset( $recommend_plugins[ $key_plugin ] );
       
   442 			}
       
   443 		}
       
   444 
       
   445 		foreach ( $all_plugins as $key_plugin => $value_plugin ) {
       
   446 			if ( isset( $value_plugin['Author'] ) && $value_plugin['Author'] != "BestWebSoft" )
       
   447 				unset( $all_plugins[ $key_plugin ] );
       
   448 			elseif ( '-plus.php' == substr( $key_plugin, -9, 9 ) )
       
   449 				unset( $all_plugins[ $key_plugin ] );
       
   450 			else {
       
   451 				foreach ( $bws_plugins as $key => $value ) {
       
   452 					if ( isset( $value['pro_version'] ) && $value['pro_version'] == $key_plugin ) {
       
   453 						$bws_plugins_pro[ $key_plugin ] = $key;
       
   454 						unset( $all_plugins[ $key ] );
       
   455 					}
    80 					}
   456 				}
    81 				}
   457 			}
    82 			}
   458 		}
    83 
   459 
    84 			/*** membership ***/
   460 		if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) {
    85 			$bws_license_plugin = 'bws_get_list_for_membership';
       
    86 			$bws_license_key = isset( $bstwbsftwppdtplgns_options[ $bws_license_plugin ] ) ? $bstwbsftwppdtplgns_options[ $bws_license_plugin ] : '';
       
    87 			$update_membership_list = true;
       
    88 
       
    89 			if ( isset( $_POST['bws_license_key'] ) )
       
    90 				$bws_license_key = sanitize_text_field( $_POST['bws_license_key'] );
       
    91 
       
    92 			if ( isset( $_SESSION['bws_membership_time_check'] ) && isset( $_SESSION['bws_membership_list'] ) && $_SESSION['bws_membership_time_check'] < strtotime( '+12 hours' ) ) {
       
    93 				$update_membership_list = false;
       
    94 				$plugins_array = $_SESSION['bws_membership_list'];
       
    95 			}
       
    96 
       
    97 			if ( ( $update_membership_list && ! empty( $bws_license_key ) ) || ( isset( $_POST['bws_license_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'bws_license_nonce_name' ) ) ) {
       
    98 
       
    99 				if ( '' != $bws_license_key ) {
       
   100 					if ( strlen( $bws_license_key ) != 18 ) {
       
   101 						$error = __( 'Wrong license key', 'bestwebsoft' );
       
   102 					} else {
       
   103 
       
   104 						if ( isset( $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] ) && $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['time'] > ( time() - (24 * 60 * 60) ) ) {
       
   105 							$bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] = $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] + 1;
       
   106 						} else {
       
   107 							$bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] = 1;
       
   108 							$bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['time'] = time();
       
   109 						}
       
   110 
       
   111 						/* get Pro list */
       
   112 						$to_send = array();
       
   113 						$to_send["plugins"][ $bws_license_plugin ] = array();
       
   114 						$to_send["plugins"][ $bws_license_plugin ]["bws_license_key"] = $bws_license_key;
       
   115 						$options = array(
       
   116 							'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3 ),
       
   117 							'body' => array( 'plugins' => serialize( $to_send ) ),
       
   118 							'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) );
       
   119 						$raw_response = wp_remote_post( 'http://bestwebsoft.com/wp-content/plugins/paid-products/plugins/update-check/1.0/', $options );
       
   120 
       
   121 						if ( is_wp_error( $raw_response ) || 200 != wp_remote_retrieve_response_code( $raw_response ) ) {
       
   122 							$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' );
       
   123 						} else {
       
   124 							$response = maybe_unserialize( wp_remote_retrieve_body( $raw_response ) );
       
   125 							if ( is_array( $response ) && !empty( $response ) ) {
       
   126 								foreach ( $response as $key => $value ) {
       
   127 									if ( "wrong_license_key" == $value->package ) {
       
   128 										$error = __( "Wrong license key.", 'bestwebsoft' );
       
   129 									} elseif ( "wrong_domain" == $value->package ) {
       
   130 										$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>';
       
   131 									} elseif ( "you_are_banned" == $value->package ) {
       
   132 										$error = __( "Unfortunately, you have exceeded the number of available tries per day.", 'bestwebsoft' );
       
   133 									} elseif ( "time_out" == $value->package ) {
       
   134 										$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>' );
       
   135 									} elseif ( "duplicate_domen_for_trial" == $value->package ) {
       
   136 										$error = __( "Unfortunately, the Pro licence was already installed to this domain. The Pro Trial license can be installed only once.", 'bestwebsoft' );
       
   137 									} elseif ( is_array( $value->package ) && ! empty( $value->package ) ) {
       
   138 										$plugins_array = $_SESSION['bws_membership_list'] = $value->package;
       
   139 										$_SESSION['bws_membership_time_check'] = strtotime( 'now' );
       
   140 
       
   141 										if ( isset( $bstwbsftwppdtplgns_options[ $bws_license_plugin ] ) && $bws_license_key == $bstwbsftwppdtplgns_options[ $bws_license_plugin ] ) {
       
   142 											$message = __( 'The license key is valid.', 'bestwebsoft' );
       
   143 											if ( isset( $value->time_out ) && $value->time_out != '' )
       
   144 												$message .= ' ' . __( 'Your license will expire on', 'bestwebsoft' ) . ' ' . $value->time_out . '.';
       
   145 										} else {
       
   146 											$message = __( 'Congratulations! Pro Membership license is activated successfully.', 'bestwebsoft' );
       
   147 										}
       
   148 
       
   149 										$bstwbsftwppdtplgns_options[ $bws_license_plugin ] = $bws_license_key;
       
   150 									}
       
   151 								}
       
   152 							} else {
       
   153 								$error = __( "Something went wrong. Try again later or upload the plugin manually. We are sorry for inconvenience.", 'bestwebsoft' );
       
   154 							}
       
   155 						}
       
   156 
       
   157 						if ( is_multisite() )
       
   158 							update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
       
   159 						else
       
   160 						 	update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );
       
   161 					}
       
   162 				} else {
       
   163 					$error = __( "Please enter your license key.", 'bestwebsoft' );
       
   164 				}
       
   165 			}
       
   166 		} elseif ( 'bws_system_status' == $page || 'system-status' == $tab ) {
       
   167 
   461 			$all_plugins = get_plugins();
   168 			$all_plugins = get_plugins();
   462 			$active_plugins = get_option( 'active_plugins' );
   169 			$active_plugins = get_option( 'active_plugins' );
   463 		    $mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
   170 		    $mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
   464 		    if ( is_array( $mysql_info ) )
   171 		    if ( is_array( $mysql_info ) )
   465 		    	$sql_mode = $mysql_info[0]->Value;
   172 		    	$sql_mode = $mysql_info[0]->Value;
   466 		    if ( empty( $sql_mode ) )
   173 		    if ( empty( $sql_mode ) )
   467 		    	$sql_mode = __( 'Not set', 'bestwebsoft' );
   174 		    	$sql_mode = __( 'Not set', 'bestwebsoft' );
   468 
   175 
   469 			$safe_mode = ( ini_get( 'safe_mode' ) ) ? __( 'On', 'bestwebsoft' ) : __( 'Off', 'bestwebsoft' );
       
   470 			$allow_url_fopen = ( ini_get( 'allow_url_fopen' ) ) ? __( 'On', 'bestwebsoft' ) : __( 'Off', 'bestwebsoft' );
   176 			$allow_url_fopen = ( ini_get( 'allow_url_fopen' ) ) ? __( 'On', 'bestwebsoft' ) : __( 'Off', 'bestwebsoft' );
   471 			$upload_max_filesize = ( ini_get( 'upload_max_filesize' ) )? ini_get( 'upload_max_filesize' ) : __( 'N/A', 'bestwebsoft' );
   177 			$upload_max_filesize = ( ini_get( 'upload_max_filesize' ) )? ini_get( 'upload_max_filesize' ) : __( 'N/A', 'bestwebsoft' );
   472 			$post_max_size = ( ini_get( 'post_max_size' ) ) ? ini_get( 'post_max_size' ) : __( 'N/A', 'bestwebsoft' );
   178 			$post_max_size = ( ini_get( 'post_max_size' ) ) ? ini_get( 'post_max_size' ) : __( 'N/A', 'bestwebsoft' );
   473 			$max_execution_time = ( ini_get( 'max_execution_time' ) ) ? ini_get( 'max_execution_time' ) : __( 'N/A', 'bestwebsoft' );
   179 			$max_execution_time = ( ini_get( 'max_execution_time' ) ) ? ini_get( 'max_execution_time' ) : __( 'N/A', 'bestwebsoft' );
   474 			$memory_limit = ( ini_get( 'memory_limit' ) ) ? ini_get( 'memory_limit' ) : __( 'N/A', 'bestwebsoft' );
   180 			$memory_limit = ( ini_get( 'memory_limit' ) ) ? ini_get( 'memory_limit' ) : __( 'N/A', 'bestwebsoft' );
       
   181 			$wp_memory_limit = ( defined( 'WP_MEMORY_LIMIT' ) ) ? WP_MEMORY_LIMIT : __( 'N/A', 'bestwebsoft' );
   475 			$memory_usage = ( function_exists( 'memory_get_usage' ) ) ? round( memory_get_usage() / 1024 / 1024, 2 ) . __( ' Mb', 'bestwebsoft' ) : __( 'N/A', 'bestwebsoft' );
   182 			$memory_usage = ( function_exists( 'memory_get_usage' ) ) ? round( memory_get_usage() / 1024 / 1024, 2 ) . __( ' Mb', 'bestwebsoft' ) : __( 'N/A', 'bestwebsoft' );
   476 			$exif_read_data = ( is_callable( 'exif_read_data' ) ) ? __( 'Yes', 'bestwebsoft' ) . " ( V" . substr( phpversion( 'exif' ), 0,4 ) . ")" : __( 'No', 'bestwebsoft' );
   183 			$exif_read_data = ( is_callable( 'exif_read_data' ) ) ? __( 'Yes', 'bestwebsoft' ) . " ( V" . substr( phpversion( 'exif' ), 0,4 ) . ")" : __( 'No', 'bestwebsoft' );
   477 			$iptcparse = ( is_callable( 'iptcparse' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
   184 			$iptcparse = ( is_callable( 'iptcparse' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
   478 			$xml_parser_create = ( is_callable( 'xml_parser_create' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
   185 			$xml_parser_create = ( is_callable( 'xml_parser_create' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
   479 			$theme = ( function_exists( 'wp_get_theme' ) ) ? wp_get_theme() : get_theme( get_current_theme() );
   186 			$theme = ( function_exists( 'wp_get_theme' ) ) ? wp_get_theme() : get_theme( get_current_theme() );
   480 
   187 
   481 			if ( function_exists( 'is_multisite' ) ) {
   188 			if ( function_exists( 'is_multisite' ) ) {
   482 				if ( is_multisite() )
   189 				$multisite = is_multisite() ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
   483 					$multisite = __( 'Yes', 'bestwebsoft' );
   190 			} else {
   484 				else
       
   485 					$multisite = __( 'No', 'bestwebsoft' );
       
   486 			} else
       
   487 				$multisite = __( 'N/A', 'bestwebsoft' );
   191 				$multisite = __( 'N/A', 'bestwebsoft' );
       
   192 			}
   488 
   193 
   489 			$system_info = array(
   194 			$system_info = array(
   490 				'system_info'		=> '',
   195 				'wp_environment' => array(
   491 				'active_plugins'	=> '',
   196 					'name' => __( 'WordPress Environment', 'bestwebsoft' ),
   492 				'inactive_plugins'	=> ''
   197 					'data' => array(
       
   198 						__( 'Home URL', 'bestwebsoft' )						=> home_url(),
       
   199 						__( 'Website URL', 'bestwebsoft' )					=> get_option( 'siteurl' ),
       
   200 						__( 'WP Version', 'bestwebsoft' )					=> $wp_version,
       
   201 						__( 'WP Multisite', 'bestwebsoft' )					=> $multisite,
       
   202 						__( 'WP Memory Limit', 'bestwebsoft' )				=> $wp_memory_limit,
       
   203 						__( 'Active Theme', 'bestwebsoft' )					=> $theme['Name'] . ' ' . $theme['Version'] . ' (' . sprintf( __( 'by %s', 'bestwebsoft' ), $theme['Author'] ) . ')'
       
   204 					),
       
   205 				),
       
   206 				'server_environment' => array(
       
   207 					'name' => __( 'Server Environment', 'bestwebsoft' ),
       
   208 					'data' => array(
       
   209 						__( 'Operating System', 'bestwebsoft' )				=> PHP_OS,
       
   210 						__( 'Server', 'bestwebsoft' )						=> $_SERVER["SERVER_SOFTWARE"],
       
   211 						__( 'PHP Version', 'bestwebsoft' )					=> PHP_VERSION,
       
   212 						__( 'PHP Allow URL fopen', 'bestwebsoft' )			=> $allow_url_fopen,
       
   213 						__( 'PHP Memory Limit', 'bestwebsoft' )				=> $memory_limit,
       
   214 						__( 'Memory Usage', 'bestwebsoft' )					=> $memory_usage,
       
   215 						__( 'PHP Max Upload Size', 'bestwebsoft' )			=> $upload_max_filesize,
       
   216 						__( 'PHP Max Post Size', 'bestwebsoft' )			=> $post_max_size,
       
   217 						__( 'PHP Max Script Execute Time', 'bestwebsoft' )	=> $max_execution_time,
       
   218 						__( 'PHP Exif support', 'bestwebsoft' )				=> $exif_read_data,
       
   219 						__( 'PHP IPTC support', 'bestwebsoft' )				=> $iptcparse,
       
   220 						__( 'PHP XML support', 'bestwebsoft' )				=> $xml_parser_create,
       
   221 						'$_SERVER[HTTP_HOST]'								=> $_SERVER['HTTP_HOST'],
       
   222 						'$_SERVER[SERVER_NAME]'								=> $_SERVER['SERVER_NAME'],
       
   223 					),
       
   224 				),
       
   225 				'db'	=> array(
       
   226 					'name' => __( 'Database', 'bestwebsoft' ),
       
   227 					'data' => array(
       
   228 						__( 'WP DB version', 'bestwebsoft' )	=> get_option( 'db_version' ),
       
   229 						__( 'MySQL version', 'bestwebsoft' )	=> $wpdb->get_var( "SELECT VERSION() AS version" ),
       
   230 						__( 'SQL Mode', 'bestwebsoft' )			=> $sql_mode,
       
   231 					),
       
   232 				),
       
   233 				'active_plugins'	=> array(
       
   234 					'name' 	=> __( 'Active Plugins', 'bestwebsoft' ),
       
   235 					'data' 	=> array(),
       
   236 					'count'	=> 0
       
   237 				),
       
   238 				'inactive_plugins'	=> array(
       
   239 					'name' 	=> __( 'Inactive Plugins', 'bestwebsoft' ),
       
   240 					'data' 	=> array(),
       
   241 					'count'	=> 0
       
   242 				)
   493 			);
   243 			);
   494 			$system_info['system_info'] = array(
   244 
   495 		        __( 'Operating System', 'bestwebsoft' )				=> PHP_OS,
       
   496 		        __( 'Server', 'bestwebsoft' )						=> $_SERVER["SERVER_SOFTWARE"],
       
   497 		        __( 'Memory usage', 'bestwebsoft' )					=> $memory_usage,
       
   498 		        __( 'MYSQL Version', 'bestwebsoft' )				=> $wpdb->get_var( "SELECT VERSION() AS version" ),
       
   499 		        __( 'SQL Mode', 'bestwebsoft' )						=> $sql_mode,
       
   500 		        __( 'PHP Version', 'bestwebsoft' )					=> PHP_VERSION,
       
   501 		        __( 'PHP Safe Mode', 'bestwebsoft' )				=> $safe_mode,
       
   502 		        __( 'PHP Allow URL fopen', 'bestwebsoft' )			=> $allow_url_fopen,
       
   503 		        __( 'PHP Memory Limit', 'bestwebsoft' )				=> $memory_limit,
       
   504 		        __( 'PHP Max Upload Size', 'bestwebsoft' )			=> $upload_max_filesize,
       
   505 		        __( 'PHP Max Post Size', 'bestwebsoft' )			=> $post_max_size,
       
   506 		        __( 'PHP Max Script Execute Time', 'bestwebsoft' )	=> $max_execution_time,
       
   507 		        __( 'PHP Exif support', 'bestwebsoft' )				=> $exif_read_data,
       
   508 		        __( 'PHP IPTC support', 'bestwebsoft' )				=> $iptcparse,
       
   509 		        __( 'PHP XML support', 'bestwebsoft' )				=> $xml_parser_create,
       
   510 				__( 'Site URL', 'bestwebsoft' )						=> get_option( 'siteurl' ),
       
   511 				__( 'Home URL', 'bestwebsoft' )						=> home_url(),
       
   512 				'$_SERVER[HTTP_HOST]'								=> $_SERVER['HTTP_HOST'],
       
   513 				'$_SERVER[SERVER_NAME]'								=> $_SERVER['SERVER_NAME'],
       
   514 				__( 'WordPress Version', 'bestwebsoft' )			=> $wp_version,
       
   515 				__( 'WordPress DB Version', 'bestwebsoft' )			=> get_option( 'db_version' ),
       
   516 				__( 'Multisite', 'bestwebsoft' )					=> $multisite,
       
   517 				__( 'Active Theme', 'bestwebsoft' )					=> $theme['Name'] . ' ' . $theme['Version']
       
   518 			);
       
   519 			foreach ( $all_plugins as $path => $plugin ) {
   245 			foreach ( $all_plugins as $path => $plugin ) {
   520 				if ( is_plugin_active( $path ) )
   246 				$name = str_replace( 'by BestWebSoft', '', $plugin['Name'] );
   521 					$system_info['active_plugins'][ $plugin['Name'] ] = $plugin['Version'];
   247 				if ( is_plugin_active( $path ) ) {
   522 				else
   248 					$system_info['active_plugins']['data'][ $name ] = sprintf( __( 'by %s', 'bestwebsoft' ), $plugin['Author'] ) . ' - ' . $plugin['Version'];
   523 					$system_info['inactive_plugins'][ $plugin['Name'] ] = $plugin['Version'];
   249 					$system_info['active_plugins']['count'] = $system_info['active_plugins']['count'] + 1;
       
   250 				} else {
       
   251 					$system_info['inactive_plugins']['data'][ $name ] = sprintf( __( 'by %s', 'bestwebsoft' ), $plugin['Author'] ) . ' - ' . $plugin['Version'];
       
   252 					$system_info['inactive_plugins']['count'] = $system_info['inactive_plugins']['count'] + 1;
       
   253 				}
   524 			}
   254 			}
   525 		}
   255 
   526 
   256 			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' ) ) ) {
   527 		if ( ( isset( $_REQUEST['bwsmn_form_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ) ) ||
   257 				if ( isset( $_REQUEST['bwsmn_form_email'] ) ) {
   528 			 ( isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ) ) ) {
   258 					$email = sanitize_email( $_REQUEST['bwsmn_form_email'] );
   529 			if ( isset( $_REQUEST['bwsmn_form_email'] ) ) {
   259 					if ( '' == $email ) {
   530 				$bwsmn_form_email = esc_html( trim( $_REQUEST['bwsmn_form_email'] ) );
   260 						$error = __( 'Please enter a valid email address.', 'bestwebsoft' );
   531 				if ( $bwsmn_form_email == "" || ! is_email( $bwsmn_form_email ) ) {
   261 					} else {
   532 					$error = __( "Please enter a valid email address.", 'bestwebsoft' );
   262 						$message = sprintf( __( 'Email with system info is sent to %s.', 'bestwebsoft' ), $email );
       
   263 					}
   533 				} else {
   264 				} else {
   534 					$email = $bwsmn_form_email;
   265 					$email = 'plugin_system_status@bestwebsoft.com';
   535 					$bwsmn_form_email = '';
   266 					$message = __( 'Thank you for contacting us.', 'bestwebsoft' );
   536 					$message = __( 'Email with system info is sent to ', 'bestwebsoft' ) . $email;
       
   537 				}
   267 				}
   538 			} else {
   268 
   539 				$email = 'plugin_system_status@bestwebsoft.com';
   269 				if ( $error == '' ) {
   540 				$message = __( 'Thank you for contacting us.', 'bestwebsoft' );
   270 					$headers  = 'MIME-Version: 1.0' . "\n";
   541 			}
   271 					$headers .= 'Content-type: text/html; charset=utf-8' . "\n";
   542 
   272 					$headers .= 'From: ' . get_option( 'admin_email' );
   543 			if ( $error == '' ) {
   273 					$message_text = '<html><head><title>System Info From ' . home_url() . '</title></head><body>';
   544 				$headers  = 'MIME-Version: 1.0' . "\n";
   274 					foreach ( $system_info as $info ) {
   545 				$headers .= 'Content-type: text/html; charset=utf-8' . "\n";
   275 						if ( ! empty( $info['data'] ) ) {
   546 				$headers .= 'From: ' . get_option( 'admin_email' );
   276 							$message_text .= '<h4>' . $info['name'];
   547 				$message_text = '<html><head><title>System Info From ' . home_url() . '</title></head><body>
   277 							if ( isset( $info['count'] ) )
   548 				<h4>Environment</h4>
   278 								$message_text .= ' (' . $info['count'] . ')';
   549 				<table>';
   279 							$message_text .= '</h4><table>';
   550 				foreach ( $system_info['system_info'] as $key => $value ) {
   280 							foreach ( $info['data'] as $key => $value ) {
   551 					$message_text .= '<tr><td>'. $key .'</td><td>'. $value .'</td></tr>';
   281 								$message_text .= '<tr><td>' . $key . '</td><td>' . $value . '</td></tr>';
       
   282 							}
       
   283 							$message_text .= '</table>';
       
   284 						}
       
   285 					}
       
   286 					$message_text .= '</body></html>';
       
   287 					$result = wp_mail( $email, 'System Info From ' . home_url(), $message_text, $headers );
       
   288 					if ( $result != true )
       
   289 						$error = __( "Sorry, email message could not be delivered.", 'bestwebsoft' );
   552 				}
   290 				}
   553 				$message_text .= '</table>';
       
   554 				if ( ! empty( $system_info['active_plugins'] ) ) {
       
   555 					$message_text .= '<h4>Active Plugins</h4>
       
   556 					<table>';
       
   557 					foreach ( $system_info['active_plugins'] as $key => $value ) {
       
   558 						$message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
       
   559 					}
       
   560 					$message_text .= '</table>';
       
   561 				}
       
   562 				if ( ! empty( $system_info['inactive_plugins'] ) ) {
       
   563 					$message_text .= '<h4>Inactive Plugins</h4>
       
   564 					<table>';
       
   565 					foreach ( $system_info['inactive_plugins'] as $key => $value ) {
       
   566 						$message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
       
   567 					}
       
   568 					$message_text .= '</table>';
       
   569 				}
       
   570 				$message_text .= '</body></html>';
       
   571 				$result = wp_mail( $email, 'System Info From ' . home_url(), $message_text, $headers );
       
   572 				if ( $result != true )
       
   573 					$error = __( "Sorry, email message could not be delivered.", 'bestwebsoft' );
       
   574 			}
   291 			}
   575 		} ?>
   292 		} ?>
   576 		<div class="wrap">
   293 		<div class="bws-wrap">
   577 			<div class="icon32 icon32-bws" id="icon-options-general"></div>
   294 			<div class="bws-header">
   578 			<h2>
   295 				<div class="bws-title">
   579 				<span class="bws_main title">BestWebSoft</span>
   296 					<a href="<?php echo ( $is_main_page ) ? self_admin_url( 'admin.php?page=bws_panel' ) : esc_url( self_admin_url( 'admin.php?page=' . $page ) ); ?>">
   580 				<ul class="subsubsub bws_title_menu">
   297 						<span class="bws-logo bwsicons bwsicons-bws-logo"></span>
   581 					<li><a href="<?php echo esc_url( 'http://support.bestwebsoft.com/home' ); ?>" target="_blank"><?php _e( 'Need help?', 'bestwebsoft' ); ?></a></li> |
   298 						BestWebSoft
   582 					<li><a href="<?php echo esc_url( 'http://bestwebsoft.com/wp-login.php' ); ?>" target="_blank"><?php _e( 'Client area', 'bestwebsoft' ); ?></a></li>
   299 						<span>panel</span>
   583 					<li><a class="bws_system_status <?php if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins&amp;action=system_status"><?php _e( 'System status', 'bestwebsoft' ); ?></a></li>
   300 					</a>
   584 				</ul>
   301 				</div>
       
   302 				<div class="bws-menu-item-icon">&#8226;&#8226;&#8226;</div>
       
   303 				<div class="bws-nav-tab-wrapper">
       
   304 					<?php if ( $is_main_page ) { ?>
       
   305 						<a class="bws-nav-tab<?php if ( 'bws_panel' == $page ) echo ' bws-nav-tab-active'; ?>" href="<?php echo self_admin_url( 'admin.php?page=bws_panel' ); ?>"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
       
   306 						<a class="bws-nav-tab<?php if ( 'bws_themes' == $page ) echo ' bws-nav-tab-active'; ?>" href="<?php echo self_admin_url( 'admin.php?page=bws_themes' ); ?>"><?php _e( 'Themes', 'bestwebsoft' ); ?></a>
       
   307 						<a class="bws-nav-tab<?php if ( 'bws_system_status' == $page ) echo ' bws-nav-tab-active'; ?>" href="<?php echo self_admin_url( 'admin.php?page=bws_system_status' ); ?>"><?php _e( 'System status', 'bestwebsoft' ); ?></a>
       
   308 					<?php } else { ?>
       
   309 						<a class="bws-nav-tab<?php if ( ! isset( $_GET['tab'] ) ) echo ' bws-nav-tab-active'; ?>" href="<?php echo esc_url( self_admin_url( 'admin.php?page=' . $page ) ); ?>"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
       
   310 						<a class="bws-nav-tab<?php if ( 'themes' == $tab ) echo ' bws-nav-tab-active'; ?>" href="<?php echo esc_url( self_admin_url( 'admin.php?page=' . $page . '&tab=themes' ) ); ?>"><?php _e( 'Themes', 'bestwebsoft' ); ?></a>
       
   311 						<a class="bws-nav-tab<?php if ( 'system-status' == $tab ) echo ' bws-nav-tab-active'; ?>" href="<?php echo esc_url( self_admin_url( 'admin.php?page=' . $page . '&tab=system-status' ) ); ?>"><?php _e( 'System status', 'bestwebsoft' ); ?></a>
       
   312 					<?php } ?>
       
   313 				</div>
       
   314 				<div class="bws-help-links-wrapper">
       
   315 					<a href="https://support.bestwebsoft.com" target="_blank"><?php _e( 'Support', 'bestwebsoft' ); ?></a>
       
   316 					<a href="https://bestwebsoft.com/client-area" target="_blank" title="<?php _e( 'Manage purchased licenses & subscriptions', 'bestwebsoft' ); ?>">Client Area</a>
       
   317 				</div>
   585 				<div class="clear"></div>
   318 				<div class="clear"></div>
   586 			</h2>
   319 			</div>
   587 			<h2 class="nav-tab-wrapper">
   320 			<?php if ( ( 'bws_panel' == $page || ( ! isset( $_GET['tab'] ) && ! $is_main_page ) ) && ! isset( $_POST['bws_plugin_action_submit'] ) ) { ?>
   588 				<a class="nav-tab<?php if ( !isset( $_GET['action'] ) ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
   321 				<div class="bws-membership-wrap">
   589 				<?php if ( $wp_version >= '3.4' ) { ?>
   322 					<div class="bws-membership-backround"></div>
   590 					<a class="nav-tab<?php if ( isset( $_GET['action'] ) && 'themes' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins&amp;action=themes"><?php _e( 'Themes', 'bestwebsoft' ); ?></a>
   323 					<div class="bws-membership">
   591 				<?php } ?>
   324 						<div class="bws-membership-title"><?php printf( __( 'Get Access to %s+ Premium Plugins', 'bestwebsoft' ), '30' ); ?></div>
   592 			</h2>
   325 						<form class="bws-membership-form" method="post" action="">
   593 			<?php if ( ! isset( $_GET['action'] ) ) { ?>
   326 							<span class="bws-membership-link"><a target="_blank" href="https://bestwebsoft.com/membership/"><?php _e( 'Subscribe to Pro Membership', 'bestwebsoft' ); ?></a> <?php _e( 'or', 'bestwebsoft' ); ?></span>
   594 				<ul class="subsubsub">
   327 							<?php if ( isset( $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] ) &&
   595 					<li><a <?php if ( !isset( $_GET['sub'] ) ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins"><?php _e( 'All', 'bestwebsoft' ); ?></a></li> |
   328 								'5' < $bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['count'] &&
   596 					<li><a <?php if ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins&amp;sub=installed"><?php _e( 'Installed', 'bestwebsoft' ); ?></a></li> |
   329 								$bstwbsftwppdtplgns_options['go_pro'][ $bws_license_plugin ]['time'] > ( time() - ( 24 * 60 * 60 ) ) ) { ?>
   597 					<li><a <?php if ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins&amp;sub=recommended"><?php _e( 'Recommended', 'bestwebsoft' ); ?></a></li>
   330 								<div class="bws_form_input_wrap">
   598 				</ul>
   331 									<input disabled="disabled" type="text" name="bws_license_key" value="<?php echo esc_attr( $bws_license_key); ?>" />
   599 				<div class="clear"></div>
   332 									<div class="bws_error"><?php _e( "Unfortunately, you have exceeded the number of available tries per day.", 'bestwebsoft' ); ?></div>
   600 				<?php if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
   333 								</div>
   601 					<h4 class="bws_installed"><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
   334 								<input disabled="disabled" type="submit" class="bws-button" value="<?php _e( 'Check license key', 'bestwebsoft' ); ?>" />
   602 					<?php foreach ( $all_plugins as $key_plugin => $value_plugin ) {
   335 							<?php } else { ?>
   603 						if ( isset( $bws_plugins_pro[ $key_plugin ] ) )
   336 								<div class="bws_form_input_wrap">
   604 							$key_plugin = $bws_plugins_pro[ $key_plugin ];
   337 									<input <?php if ( "" != $error ) echo 'class="bws_input_error"'; ?> type="text" placeholder="<?php _e( 'Enter your license key', 'bestwebsoft' ); ?>" maxlength="100" name="bws_license_key" value="<?php echo esc_attr( $bws_license_key ); ?>" />
   605 
   338 									<div class="bws_error" <?php if ( "" == $error ) echo 'style="display:none"'; ?>><?php echo $error; ?></div>
   606 						if ( isset( $bws_plugins[ $key_plugin ] ) ) {
   339 								</div>
   607 							$key_plugin_explode = explode( '-plugin/', $key_plugin );
   340 								<input type="hidden" name="bws_license_plugin" value="<?php echo esc_attr( $bws_license_plugin ); ?>" />
   608 							if ( isset( $key_plugin_explode[1] ) )
   341 								<input type="hidden" name="bws_license_submit" value="submit" />
   609 								$icon = $key_plugin_explode[0];
   342 								<?php if ( empty( $plugins_array ) ) { ?>
   610 							else {
   343 									<input type="submit" class="bws-button" value="<?php _e( 'Activate', 'bestwebsoft' ); ?>" />
   611 								$key_plugin_explode = explode( '/', $key_plugin );
   344 								<?php } else { ?>
   612 								$icon = $key_plugin_explode[0];
   345 									<input type="submit" class="bws-button" value="<?php _e( 'Check license key', 'bestwebsoft' ); ?>" />
       
   346 								<?php } ?>
       
   347 								<?php wp_nonce_field( plugin_basename(__FILE__), 'bws_license_nonce_name' ); ?>
       
   348 							<?php } ?>
       
   349 						</form>
       
   350 						<div class="clear"></div>
       
   351 					</div>
       
   352 				</div>
       
   353 			<?php } ?>
       
   354 			<div class="bws-wrap-content wrap">
       
   355 				<?php if ( 'bws_panel' == $page || ( ! isset( $_GET['tab'] ) && ! $is_main_page ) ) { ?>
       
   356 					<div class="updated notice is-dismissible inline" <?php if ( '' == $message || '' != $error ) echo 'style="display:none"'; ?>><p><?php echo $message; ?></p></div>
       
   357 					<h1>
       
   358 						<?php _e( 'Plugins', 'bestwebsoft' ); ?>
       
   359 						<a href="<?php echo self_admin_url( 'plugin-install.php?tab=upload' ); ?>" class="upload page-title-action add-new-h2"><?php _e( 'Upload Plugin', 'bestwebsoft' ); ?></a>
       
   360 					</h1>
       
   361 					<?php if ( isset( $_GET['error'] ) ) {
       
   362 						if ( isset( $_GET['charsout'] ) )
       
   363 							$errmsg = sprintf( __( 'The plugin generated %d characters of <strong>unexpected output</strong> during activation. If you notice &#8220;headers already sent&#8221; messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.' ), $_GET['charsout'] );
       
   364 						else
       
   365 							$errmsg = __( 'Plugin could not be activated because it triggered a <strong>fatal error</strong>.' ); ?>
       
   366 						<div id="message" class="error is-dismissible"><p><?php echo $errmsg; ?></p></div>
       
   367 					<?php } elseif ( isset( $_GET['activate'] ) ) { ?>
       
   368 						<div id="message" class="updated notice is-dismissible"><p><?php _e( 'Plugin <strong>activated</strong>.' ) ?></p></div>
       
   369 					<?php }
       
   370 
       
   371 					if ( isset( $_POST['bws_plugin_action_submit'] ) && isset( $_POST['bws_install_plugin'] ) && check_admin_referer( plugin_basename(__FILE__), 'bws_license_install_nonce_name' ) ) {
       
   372 
       
   373 						$bws_license_plugin = sanitize_text_field( $_POST['bws_install_plugin'] );
       
   374 
       
   375 						echo '<h2>' . __( 'Installing Plugin', 'bestwebsoft' ) . ': ' . $plugins_array[ $bws_license_plugin ]['name'] . '</h2>';
       
   376 
       
   377 						$bstwbsftwppdtplgns_options[ $bws_license_plugin ] = $bws_license_key;
       
   378 
       
   379 						$url = $plugins_array[ $bws_license_plugin ]['link'] . '&download_from=5';
       
   380 
       
   381 						echo '<p>' . __( "Downloading install package from", 'bestwebsoft' ) . ' ' . $url . '</p>';
       
   382 
       
   383 						$uploadDir = wp_upload_dir();
       
   384 						$zip_name = explode( '/', $bws_license_plugin );
       
   385 
       
   386 						if ( !function_exists( 'curl_init' ) ) {
       
   387 							$received_content = file_get_contents( $url );
       
   388 						} else {
       
   389 							$ch = curl_init();
       
   390 							curl_setopt( $ch, CURLOPT_URL, $url );
       
   391 							curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
       
   392 							curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
       
   393 							$received_content = curl_exec( $ch );
       
   394 							curl_close( $ch );
       
   395 						}
       
   396 
       
   397 						if ( ! $received_content ) {
       
   398 							$error = __( "Failed to download the zip archive. Please, upload the plugin manually", 'bestwebsoft' );
       
   399 						} else {
       
   400 							if ( is_writable( $uploadDir["path"] ) ) {
       
   401 								$file_put_contents = $uploadDir["path"] . "/" . $zip_name[0] . ".zip";
       
   402 
       
   403 								if ( file_put_contents( $file_put_contents, $received_content ) ) {
       
   404 									@chmod( $file_put_contents, octdec( 755 ) );
       
   405 
       
   406 									echo '<p>' . __( 'Unpacking the package', 'bestwebsoft' ) . '...</p>';
       
   407 
       
   408 									if ( class_exists( 'ZipArchive' ) ) {
       
   409 										$zip = new ZipArchive();
       
   410 										if ( $zip->open( $file_put_contents ) === TRUE ) {
       
   411 											echo '<p>' . __( 'Installing the plugin', 'bestwebsoft' ) . '...</p>';
       
   412 											$zip->extractTo( WP_PLUGIN_DIR );
       
   413 											$zip->close();
       
   414 										} else {
       
   415 											$error = __( "Failed to open the zip archive. Please, upload the plugin manually", 'bestwebsoft' );
       
   416 										}
       
   417 									} elseif ( class_exists( 'Phar' ) ) {
       
   418 										$phar = new PharData( $file_put_contents );
       
   419 										echo '<p>' . __( 'Installing the plugin', 'bestwebsoft' ) . '...</p>';
       
   420 										$phar->extractTo( WP_PLUGIN_DIR );
       
   421 									} else {
       
   422 										$error = __( "Your server does not support either ZipArchive or Phar. Please, upload the plugin manually", 'bestwebsoft' );
       
   423 									}
       
   424 									if ( empty( $error ) )
       
   425 										echo '<p>' . sprintf( __( 'The plugin %s is successfully installed.', 'bestwebsoft' ), '<strong>' . $plugins_array[ $bws_license_plugin ]['name'] . '</strong>' ) . '</p>';
       
   426 
       
   427 									@unlink( $file_put_contents );
       
   428 								} else {
       
   429 									$error = __( "Failed to download the zip archive. Please, upload the plugin manually", 'bestwebsoft' );
       
   430 								}
       
   431 							} else {
       
   432 								$error = __( "UploadDir is not writable. Please, upload the plugin manually", 'bestwebsoft' );
   613 							}
   433 							}
   614 						}
   434 						}
   615 
   435 
   616 						if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && ( in_array( $bws_plugins[ $key_plugin ]['pro_version'], $active_plugins ) || is_plugin_active_for_network( $bws_plugins[ $key_plugin ]['pro_version'] ) ) ) { ?>
   436 						if ( file_exists( WP_PLUGIN_DIR . '/' . $zip_name[0] ) ) {
   617 							<div class="bws_product_box bws_exist_overlay">
   437 							echo '<p><a href="' . esc_url( wp_nonce_url( self_admin_url( $current_page . '&bws_activate_plugin=' . $bws_license_plugin ), 'bws_activate_plugin' . $bws_license_plugin ) ) . '" target="_parent">' . __( 'Activate Plugin', 'bestwebsoft' ) . '</a> | <a href="' . esc_url( self_admin_url( $current_page ) ) . '" target="_parent">' . __( 'Return to BestWebSoft Panel', 'bestwebsoft' ) . '</a></p>';
   618 								<div class="bws_product">
   438 						} else {
   619 									<div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
   439 							if ( empty( $error ) )
       
   440 								$error = __( "Failed to download the zip archive. Please, upload the plugin manually", 'bestwebsoft' );
       
   441 
       
   442 							echo '<p class="error">' . $error . '</p>';
       
   443 							echo '<p><a href="' . esc_url( self_admin_url( $current_page ) ) . '" target="_parent">' . __( 'Return to BestWebSoft Panel', 'bestwebsoft' ) . '</a></p>';
       
   444 						}
       
   445 					} else { 
       
   446 						$category_href = $current_page;
       
   447 						if ( 'all' != $plugin_category )
       
   448 							$category_href .= '&category=' . $plugin_category; ?>
       
   449 						<ul class="subsubsub">
       
   450 							<li>
       
   451 								<a <?php if ( ! isset( $_GET['sub'] ) ) echo 'class="current" '; ?>href="<?php echo esc_url( self_admin_url( $category_href ) ); ?>"><?php _e( 'All', 'bestwebsoft' ); ?></a>
       
   452 							</li> |
       
   453 							<li>
       
   454 								<a <?php if ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) echo 'class="current" '; ?>href="<?php echo esc_url( self_admin_url( $category_href . '&sub=installed' ) ); ?>"><?php _e( 'Installed', 'bestwebsoft' ); ?></a>
       
   455 							</li> |
       
   456 							<li>
       
   457 								<a <?php if ( isset( $_GET['sub'] ) && 'not_installed' == $_GET['sub'] ) echo 'class="current" '; ?>href="<?php echo esc_url( self_admin_url( $category_href . '&sub=not_installed' ) ); ?>"><?php _e( 'Not Installed', 'bestwebsoft' ); ?></a>
       
   458 							</li>
       
   459 						</ul>
       
   460 						<div class="clear"></div>
       
   461 						<div class="bws-filter-top">
       
   462 							<h2>
       
   463 								<span class="bws-toggle-indicator"></span>
       
   464 								<?php _e( 'Filter results', 'bestwebsoft' ); ?>
       
   465 							</h2>
       
   466 							<div class="bws-filter-top-inside">
       
   467 								<div class="bws-filter-title"><?php _e( 'Category', 'bestwebsoft' ); ?></div>
       
   468 								<ul class="bws-category">
       
   469 									<li>
       
   470 										<?php $sub_in_url = ( isset( $_GET['sub'] ) && in_array( $_GET['sub'], array( 'installed', 'not_installed' ) ) ) ? '&sub=' . $_GET['sub'] : ''; ?>
       
   471 										<a <?php if ( 'all' == $plugin_category ) echo ' class="bws-active"'; ?> href="<?php echo esc_url(self_admin_url( $current_page . $sub_in_url ) ); ?>"><?php _e( 'All', 'bestwebsoft' ); ?>
       
   472 											<span>(<?php echo count( $bws_plugins ); ?>)</span>
       
   473 										</a>
       
   474 									</li>
       
   475 									<?php foreach ( $bws_plugins_category as $category_key => $category_value ) { ?>
       
   476 										<li>
       
   477 											<a <?php if ( $category_key == $plugin_category ) echo ' class="bws-active"'; ?> href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url . '&category=' . $category_key ) ); ?>"><?php echo $category_value['name']; ?>
       
   478 												<span>(<?php echo $category_value['count']; ?>)</span>
       
   479 											</a>
       
   480 										</li>
       
   481 									<?php } ?>
       
   482 								</ul>
       
   483 							</div>
       
   484 						</div>
       
   485 						<div class="bws-products">
       
   486 							<?php $nothing_found = true;
       
   487 							foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
       
   488 
       
   489 								if ( 'all' != $plugin_category && isset( $bws_plugins_category[ $plugin_category ] ) && ! in_array( $plugin_category, $value_plugin['category'] ) )
       
   490 									continue;
       
   491 
       
   492 								$key_plugin_explode = explode( '/', $key_plugin );
       
   493 
       
   494 								$icon = isset( $value_plugin['icon'] ) ? $value_plugin['icon'] : '//ps.w.org/' . $key_plugin_explode[0] . '/assets/icon-128x128.png';
       
   495 								$is_pro_isset = isset( $value_plugin['pro_version'] );
       
   496 								$is_installed = array_key_exists( $key_plugin, $all_plugins );
       
   497 								$is_active = in_array( $key_plugin, $active_plugins ) || isset( $sitewide_active_plugins[ $key_plugin ] );
       
   498 
       
   499 								$is_pro_installed = $is_pro_active = false;
       
   500 								if ( $is_pro_isset ) {
       
   501 									$is_pro_installed = array_key_exists( $value_plugin['pro_version'], $all_plugins );
       
   502 									$is_pro_active = in_array( $value_plugin['pro_version'], $active_plugins ) || isset( $sitewide_active_plugins[ $value_plugin['pro_version'] ] );
       
   503 								}
       
   504 
       
   505 								if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] && ! $is_pro_installed && ! $is_installed ) ||
       
   506 									( isset( $_GET['sub'] ) && 'not_installed' == $_GET['sub'] && ( $is_pro_installed || $is_installed ) ) )
       
   507 									continue;
       
   508 
       
   509 								$link_attr = isset( $value_plugin['install_url'] ) ? 'href="' . esc_url( $value_plugin['install_url'] ) . '" target="_blank"' : 'href="' . esc_url( self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $key_plugin_explode[0] . '&from=import&TB_iframe=true&width=600&height=550' ) ) . '" class="thickbox open-plugin-details-modal"';
       
   510 
       
   511 								$nothing_found = false; ?>
       
   512 								<div class="bws_product_box<?php if ( $is_active || $is_pro_active ) echo ' bws_product_active'; ?>">
       
   513 									<div class="bws_product_image">
       
   514 										<a <?php echo $link_attr; ?>><img src="<?php echo $icon; ?>"/></a>
       
   515 									</div>
   620 									<div class="bws_product_content">
   516 									<div class="bws_product_content">
   621 										<div class="bws_product_icon">
   517 										<div class="bws_product_title"><a <?php echo $link_attr; ?>><?php echo $value_plugin['name']; ?></a></div>
   622 											<div class="bws_product_icon_pro">PRO</div>
   518 										<div class="bws-version">
   623 											<img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
   519 											<?php
       
   520 											if ( $is_pro_installed ) {
       
   521 												echo '<span';
       
   522 												if ( ! empty( $value_plugin['expired'] ) || ! empty( $value_plugin['update_availible'] ) )
       
   523 													echo ' class="bws-update-available"';
       
   524 												echo '>v ' . $all_plugins[ $value_plugin['pro_version'] ]['Version'] . '</span>';
       
   525 											} elseif ( $is_installed ) {
       
   526 												echo '<span';
       
   527 												if ( ! empty( $value_plugin['expired'] ) || ! empty( $value_plugin['update_availible'] ) )
       
   528 													echo ' class="bws-update-available"';
       
   529 												echo '>v ' . $all_plugins[ $key_plugin ]['Version'] . '</span>';
       
   530 											} else {
       
   531 												echo '<span>' . __( 'Not installed', 'bestwebsoft' ) . '</span>';
       
   532 											}
       
   533 
       
   534 											if ( ! empty( $value_plugin['expired'] ) ) {
       
   535 												echo ' - <a class="bws-update-now" href="https://support.bestwebsoft.com/hc/en-us/articles/202356359" target="_blank">' . __( 'Renew to get updates', 'bestwebsoft' ) . '</a>';
       
   536 											} elseif ( ! empty( $value_plugin['update_availible'] ) ) {
       
   537 												$r = $update_availible_all->response[ $value_plugin['update_availible'] ];
       
   538 												echo ' - <a class="bws-update-now" href="' . esc_url( wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' . $value_plugin['update_availible'] ), 'upgrade-plugin_' . $value_plugin['update_availible'] ) ) . '" class="update-link" aria-label="' . sprintf( __( 'Update to v %s', 'bestwebsoft' ), $r->new_version ) . '">' . sprintf( __( 'Update to v %s', 'bestwebsoft' ), $r->new_version ) . '</a>';
       
   539 											} ?>
   624 										</div>
   540 										</div>
   625 										<div class="bws_product_description"><?php echo $value_plugin["Description"]; ?></div>
   541 										<div class="bws_product_description">
       
   542 											<?php echo ( strlen( $value_plugin['description'] ) > 100 ) ? mb_substr( $value_plugin['description'], 0, 100 ) . '...' : $value_plugin['description']; ?>
       
   543 										</div>
       
   544 										<div class="bws_product_links">
       
   545 											<?php if ( $is_active || $is_pro_active ) {
       
   546 												if ( $is_pro_isset ) {													
       
   547 													if ( ! $is_pro_installed ) {
       
   548 														if ( ! empty( $plugins_array ) && array_key_exists( $value_plugin['pro_version'], $plugins_array ) ) { ?>
       
   549 															<form method="post" action="">
       
   550 																<input type="submit" class="button button-secondary" value="<?php _e( 'Install Now', 'bestwebsoft' ); ?>" />
       
   551 																<input type="hidden" name="bws_plugin_action_submit" value="submit" />
       
   552 																<input type="hidden" name="bws_install_plugin" value="<?php echo $value_plugin['pro_version']; ?>" />
       
   553 																<?php wp_nonce_field( plugin_basename(__FILE__), 'bws_license_install_nonce_name' ); ?>
       
   554 															</form>
       
   555 														<?php } else { ?>
       
   556 															<a class="button button-secondary bws_upgrade_button" href="<?php echo esc_url( $bws_plugins[ $key_plugin ]['purchase'] ); ?>" target="_blank"><?php _e( 'Upgrade to Pro', 'bestwebsoft' ); ?></a>
       
   557 														<?php }
       
   558 													}
       
   559 												} else { ?>
       
   560 													<a class="bws_donate" href="https://bestwebsoft.com/donate/" target="_blank"><?php _e( 'Donate', 'bestwebsoft' ); ?></a> <span>|</span>
       
   561 												<?php }
       
   562 
       
   563 												if ( $is_pro_active ) { ?>
       
   564 													<a class="bws_settings" href="<?php echo esc_url( self_admin_url( $bws_plugins[ $key_plugin ]["pro_settings"] ) ); ?>"><?php _e( 'Settings', 'bestwebsoft' ); ?></a>
       
   565 												<?php } else { ?>
       
   566 													<a class="bws_settings" href="<?php echo esc_url( self_admin_url( $bws_plugins[ $key_plugin ]["settings"] ) ); ?>"><?php _e( 'Settings', 'bestwebsoft' ); ?></a>
       
   567 												<?php }
       
   568 											} else {
       
   569 												if ( $is_pro_installed ) { ?>
       
   570 													<a class="button button-secondary" href="<?php echo esc_url( wp_nonce_url( self_admin_url( $current_page . '&bws_activate_plugin=' . $value_plugin['pro_version'] ), 'bws_activate_plugin' . $value_plugin['pro_version'] ) ); ?>" title="<?php _e( 'Activate this plugin', 'bestwebsoft' ); ?>"><?php _e( 'Activate', 'bestwebsoft' ); ?></a>
       
   571 												<?php } elseif ( ! empty( $plugins_array ) && isset( $value_plugin['pro_version'] ) && array_key_exists( $value_plugin['pro_version'], $plugins_array ) ) { ?>
       
   572 													<form method="post" action="">
       
   573 														<input type="submit" class="button button-secondary" value="<?php _e( 'Install Now', 'bestwebsoft' ); ?>" />
       
   574 														<input type="hidden" name="bws_plugin_action_submit" value="submit" />
       
   575 														<input type="hidden" name="bws_install_plugin" value="<?php echo $value_plugin['pro_version']; ?>" />
       
   576 														<?php wp_nonce_field( plugin_basename(__FILE__), 'bws_license_install_nonce_name' ); ?>
       
   577 													</form>
       
   578 												<?php } elseif ( $is_installed ) { ?>
       
   579 													<a class="button button-secondary" href="<?php echo esc_url( wp_nonce_url( self_admin_url( $current_page . '&bws_activate_plugin=' . $key_plugin ), 'bws_activate_plugin' . $key_plugin ) ); ?>" title="<?php _e( 'Activate this plugin', 'bestwebsoft' ); ?>"><?php _e( 'Activate', 'bestwebsoft' ); ?></a>
       
   580 												<?php } else {
       
   581 													$install_url = isset( $value_plugin['install_url'] ) ? $value_plugin['install_url'] : self_admin_url( 'plugin-install.php?tab=search&type=term&s=' . str_replace( ' ', '+', str_replace( '-', '', $value_plugin['name'] ) ) . '+BestWebSoft&plugin-search-input=Search+Plugins' ); ?>
       
   582 													<a class="button button-secondary" href="<?php echo esc_url( $install_url ); ?>" title="<?php _e( 'Install this plugin', 'bestwebsoft' ); ?>" target="_blank"><?php _e( 'Install Now', 'bestwebsoft' ); ?></a>
       
   583 												<?php }
       
   584 											} ?>
       
   585 										</div>
   626 									</div>
   586 									</div>
   627 									<div class="clear"></div>
   587 									<div class="clear"></div>
   628 								</div>
   588 								</div>
   629 								<div class="bws_product_links">
   589 							<?php }
   630 									<a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
   590 							if ( $nothing_found ) { ?>
   631 									<?php if ( '' != $bws_plugins[ $key_plugin ]["pro_settings"] ) { ?>
   591 								<p class="description"><?php _e( 'Nothing found. Try another criteria.', 'bestwebsoft' ); ?></p>
   632 										<span> | </span>
   592 							<?php } ?>
   633 										<a href="<?php echo $bws_plugins[ $key_plugin ]["pro_settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
   593 						</div>
       
   594 						<div id="bws-filter-wrapper">
       
   595 							<div class="bws-filter">
       
   596 								<div class="bws-filter-title"><?php _e( 'Category', 'bestwebsoft' ); ?></div>
       
   597 								<ul class="bws-category">
       
   598 									<li>
       
   599 										<?php $sub_in_url = ( isset( $_GET['sub'] ) && in_array( $_GET['sub'], array( 'installed', 'not_installed' ) ) ) ? '&sub=' . $_GET['sub'] : ''; ?>
       
   600 										<a <?php if ( 'all' == $plugin_category ) echo ' class="bws-active"'; ?> href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url ) ); ?>"><?php _e( 'All', 'bestwebsoft' ); ?>
       
   601 											<span>(<?php echo count( $bws_plugins ); ?>)</span>
       
   602 										</a>
       
   603 									</li>
       
   604 									<?php foreach ( $bws_plugins_category as $category_key => $category_value ) { ?>
       
   605 										<li>
       
   606 											<a <?php if ( $category_key == $plugin_category ) echo ' class="bws-active"'; ?> href="<?php echo esc_url( self_admin_url( $current_page . $sub_in_url . '&category=' . $category_key ) ); ?>"><?php echo $category_value['name']; ?>
       
   607 												<span>(<?php echo $category_value['count']; ?>)</span>
       
   608 											</a>
       
   609 										</li>
   634 									<?php } ?>
   610 									<?php } ?>
   635 								</div>
   611 								</ul>
   636 							</div>
   612 							</div>
   637 						<?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) && ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) ) {
   613 						</div><!-- #bws-filter-wrapper -->
   638 							if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
   614 						<div class="clear"></div>
   639 								<div class="bws_product_box bws_product_deactivated">
   615 					<?php }
   640 									<div class="bws_product">
   616 				} elseif ( 'bws_themes' == $page || 'themes' == $tab ) {
   641 										<div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
   617 					require( dirname( __FILE__ ) . '/product_list.php' ); ?>
   642 										<div class="bws_product_content">
   618 					<h1><?php _e( 'Themes', 'bestwebsoft' ); ?></h1>
   643 											<div class="bws_product_icon">
   619 					<div id="availablethemes" class="bws-availablethemes">
   644 												<div class="bws_product_icon_pro">PRO</div>
   620 						<div class="theme-browser content-filterable rendered">
   645 												<img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
   621 							<div class="themes wp-clearfix">
   646 											</div>
   622 								<?php foreach ( $themes as $key => $theme ) {
   647 											<div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
   623 									$installed_theme = wp_get_theme( $theme->slug ); ?>
       
   624 									<div class="theme" tabindex="0">
       
   625 										<div class="theme-screenshot">
       
   626 											<img src="<?php echo bws_menu_url( "icons/themes/" ) . $theme->slug . '.png'; ?>" alt="" />
   648 										</div>
   627 										</div>
   649 										<div class="clear"></div>
   628 										<div class="theme-author"><?php printf( __( 'By %s', 'bestwebsoft' ), 'BestWebSoft' ); ?></div>
       
   629 										<h3 class="theme-name"><?php echo $theme->name; ?></h3>
       
   630 										<div class="theme-actions">
       
   631 											<a class="button button-secondary preview install-theme-preview" href="<?php echo esc_url( $theme->href ); ?>" target="_blank"><?php _e( 'Learn More', 'bestwebsoft' ); ?></a>
       
   632 										</div>
       
   633 										<?php if ( $installed_theme->exists() ) {
       
   634 											if ( $wp_version < '4.6' ) { ?>
       
   635 												<div class="theme-installed"><?php _e( 'Already Installed', 'bestwebsoft' ); ?></div>
       
   636 											<?php } else { ?>
       
   637 												<div class="notice notice-success notice-alt inline"><p><?php _e( 'Installed', 'bestwebsoft' ); ?></p></div>
       
   638 											<?php }
       
   639 										} ?>
   650 									</div>
   640 									</div>
   651 									<div class="bws_product_links">
       
   652 										<a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
       
   653 										<span> | </span>
       
   654 										<a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
       
   655 									</div>
       
   656 								</div>
       
   657 							<?php } else { ?>
       
   658 								<div class="bws_product_box bws_product_free">
       
   659 									<div class="bws_product">
       
   660 										<div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
       
   661 										<div class="bws_product_content">
       
   662 											<div class="bws_product_icon">
       
   663 												<img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
       
   664 											</div>
       
   665 											<div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
       
   666 										</div>
       
   667 										<?php if ( isset( $bws_plugins[ $key_plugin ]["purchase"] ) ) { ?>
       
   668 											<a class="bws_product_button" href="<?php echo $bws_plugins[ $key_plugin ]["purchase"]; ?>" target="_blank">
       
   669 												<?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
       
   670 											</a>
       
   671 										<?php } else { ?>
       
   672 											<a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
       
   673 												<strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
       
   674 											</a>
       
   675 										<?php } ?>
       
   676 										<div class="clear"></div>
       
   677 									</div>
       
   678 									<div class="bws_product_links">
       
   679 										<a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
       
   680 										<?php if ( '' != $bws_plugins[ $key_plugin ]["settings"] ) { ?>
       
   681 											<span> | </span>
       
   682 											<a href="<?php echo $bws_plugins[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
       
   683 										<?php } ?>
       
   684 									</div>
       
   685 								</div>
       
   686 							<?php }
       
   687 						} elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
       
   688 							<div class="bws_product_box bws_product_deactivated bws_product_free">
       
   689 								<div class="bws_product">
       
   690 									<div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
       
   691 									<div class="bws_product_content">
       
   692 										<div class="bws_product_icon">
       
   693 											<img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
       
   694 										</div>
       
   695 										<div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
       
   696 									</div>
       
   697 									<?php if ( isset( $bws_plugins[ $key_plugin ]["purchase"] ) ) { ?>
       
   698 										<a class="bws_product_button" href="<?php echo $bws_plugins[ $key_plugin ]["purchase"]; ?>" target="_blank">
       
   699 											<?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
       
   700 										</a>
       
   701 									<?php } else { ?>
       
   702 										<a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
       
   703 											<strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
       
   704 										</a>
       
   705 									<?php } ?>
       
   706 									<div class="clear"></div>
       
   707 								</div>
       
   708 								<div class="bws_product_links">
       
   709 									<a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
       
   710 									<span> | </span>
       
   711 									<a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
       
   712 								</div>
       
   713 							</div>
       
   714 						<?php }
       
   715 					}
       
   716 				} ?>
       
   717 				<div class="clear"></div>
       
   718 				<?php if ( ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
       
   719 					<h4 class="bws_recommended"><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
       
   720 					<?php foreach ( $recommend_plugins as $key_plugin => $value_plugin ) {
       
   721 
       
   722 						if ( isset( $bws_plugins[ $key_plugin ] ) ) {
       
   723 							$key_plugin_explode = explode( '-plugin/', $key_plugin );
       
   724 							if ( isset( $key_plugin_explode[1] ) )
       
   725 								$icon = $key_plugin_explode[0];
       
   726 							else {
       
   727 								$key_plugin_explode = explode( '/', $key_plugin );
       
   728 								$icon = $key_plugin_explode[0];
       
   729 							}
       
   730 						} ?>
       
   731 						<div class="bws_product_box">
       
   732 							<div class="bws_product">
       
   733 								<div class="bws_product_title"><?php echo $value_plugin["name"]; ?></div>
       
   734 								<div class="bws_product_content">
       
   735 									<div class="bws_product_icon">
       
   736 										<?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) ) { ?>
       
   737 											<div class="bws_product_icon_pro">PRO</div>
       
   738 										<?php } ?>
       
   739 										<img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
       
   740 									</div>
       
   741 									<div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
       
   742 								</div>
       
   743 								<?php if ( isset( $bws_plugins[ $key_plugin ]["pro_version"] ) ) { ?>
       
   744 									<a class="bws_product_button" href="<?php echo $bws_plugins[ $key_plugin ]["purchase"]; ?>" target="_blank">
       
   745 										<?php _e( 'Go', 'bestwebsoft' ); ?> <strong>PRO</strong>
       
   746 									</a>
       
   747 								<?php } else { ?>
       
   748 									<a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
       
   749 										<strong><?php _e( 'DONATE', 'bestwebsoft' ); ?></strong>
       
   750 									</a>
       
   751 								<?php } ?>
   641 								<?php } ?>
   752 							</div>
   642 								<br class="clear" />
   753 							<div class="clear"></div>
       
   754 							<div class="bws_product_links">
       
   755 								<a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
       
   756 								<span> | </span>
       
   757 								<a href="<?php echo $bws_plugins[ $key_plugin ]["wp_install"]; ?>" target="_blank"><?php _e( "Install now", 'bestwebsoft' ); ?></a>
       
   758 							</div>
   643 							</div>
   759 						</div>
   644 						</div>
   760 					<?php }
   645 						<p><a class="bws_browse_link" href="https://bestwebsoft.com/products/wordpress/themes/" target="_blank"><?php _e( 'Browse More WordPress Themes', 'bestwebsoft' ); ?> <span class="dashicons dashicons-arrow-right-alt2"></span></a></p>
   761 				} ?>
   646 					</div>
   762 			<?php } elseif ( 'themes' == $_GET['action'] ) { ?>
   647 				<?php } elseif ( 'bws_system_status' == $page || 'system-status' == $tab ) { ?>
   763 				<div id="availablethemes">
   648 					<h1><?php _e( 'System status', 'bestwebsoft' ); ?></h1>
   764 					<?php global $tabs, $tab, $paged, $type, $theme_field_defaults;
   649 					<div class="updated fade notice is-dismissible inline" <?php if ( ! ( isset( $_REQUEST['bwsmn_form_submit'] ) || isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) ) || $error != "" ) echo 'style="display:none"'; ?>><p><strong><?php echo $message; ?></strong></p></div>
   765 					include( ABSPATH . 'wp-admin/includes/theme-install.php' );
   650 					<div class="error" <?php if ( "" == $error ) echo 'style="display:none"'; ?>><p><strong><?php echo $error; ?></strong></p></div>
   766 					include( ABSPATH . 'wp-admin/includes/class-wp-themes-list-table.php' );
   651 					<form method="post" action="">
   767 					include( ABSPATH . 'wp-admin/includes/class-wp-theme-install-list-table.php' );
       
   768 
       
   769 					$theme_class = new WP_Theme_Install_List_Table();
       
   770 					$paged = $theme_class->get_pagenum();
       
   771 					$per_page = 36;
       
   772 					$args = array( 'page' => $paged, 'per_page' => $per_page, 'fields' => $theme_field_defaults );
       
   773 					$args['author'] = 'bestwebsoft';
       
   774 					$args = apply_filters( 'install_themes_table_api_args_search', $args );
       
   775 					$api = themes_api( 'query_themes', $args );
       
   776 
       
   777 					if ( is_wp_error( $api ) )
       
   778 						wp_die( $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try again', 'bestwebsoft' ) . '</a>' );
       
   779 
       
   780 					$theme_class->items = $api->themes;
       
   781 					$theme_class->set_pagination_args( array(
       
   782 						'total_items' => $api->info['results'],
       
   783 						'per_page' => $per_page,
       
   784 						'infinite_scroll' => true,
       
   785 					) );
       
   786 					$themes = $theme_class->items;
       
   787 					if ( $wp_version < '3.9' ) {
       
   788 						foreach ( $themes as $theme ) { ?>
       
   789 							<div class="available-theme installable-theme"><?php
       
   790 								global $themes_allowedtags;
       
   791 								if ( empty( $theme ) )
       
   792 									return;
       
   793 
       
   794 								$name   = wp_kses( $theme->name,   $themes_allowedtags );
       
   795 								$author = wp_kses( $theme->author, $themes_allowedtags );
       
   796 								$preview_title = sprintf( __( 'Preview &#8220;%s&#8221;', 'bestwebsoft' ), $name );
       
   797 								$preview_url   = add_query_arg( array(
       
   798 									'tab'   => 'theme-information',
       
   799 									'theme' => $theme->slug,
       
   800 								), self_admin_url( 'theme-install.php' ) );
       
   801 
       
   802 								$actions = array();
       
   803 
       
   804 								$install_url = add_query_arg( array(
       
   805 									'action' => 'install-theme',
       
   806 									'theme'  => $theme->slug,
       
   807 								), self_admin_url( 'update.php' ) );
       
   808 
       
   809 								$update_url = add_query_arg( array(
       
   810 									'action' => 'upgrade-theme',
       
   811 									'theme'  => $theme->slug,
       
   812 								), self_admin_url( 'update.php' ) );
       
   813 
       
   814 								$status = 'install';
       
   815 								$installed_theme = wp_get_theme( $theme->slug );
       
   816 								if ( $installed_theme->exists() ) {
       
   817 									if ( version_compare( $installed_theme->get('Version'), $theme->version, '=' ) )
       
   818 										$status = 'latest_installed';
       
   819 									elseif ( version_compare( $installed_theme->get('Version'), $theme->version, '>' ) )
       
   820 										$status = 'newer_installed';
       
   821 									else
       
   822 										$status = 'update_available';
       
   823 								}
       
   824 								switch ( $status ) {
       
   825 									default:
       
   826 									case 'install':
       
   827 										$actions[] = '<a class="install-now" href="' . esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Install %s', 'bestwebsoft' ), $name ) ) . '">' . __( 'Install Now', 'bestwebsoft' ) . '</a>';
       
   828 										break;
       
   829 									case 'update_available':
       
   830 										$actions[] = '<a class="install-now" href="' . esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Update to version %s', 'bestwebsoft' ), $theme->version ) ) . '">' . __( 'Update', 'bestwebsoft' ) . '</a>';
       
   831 										break;
       
   832 									case 'newer_installed':
       
   833 									case 'latest_installed':
       
   834 										$actions[] = '<span class="install-now" title="' . esc_attr__( 'This theme is already installed and is up to date' ) . '">' . _x( 'Installed', 'theme', 'bestwebsoft' ) . '</span>';
       
   835 										break;
       
   836 								}
       
   837 								$actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s', 'bestwebsoft' ), $name ) ) . '">' . __( 'Preview', 'bestwebsoft' ) . '</a>';
       
   838 								$actions = apply_filters( 'theme_install_actions', $actions, $theme ); ?>
       
   839 								<a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
       
   840 									<img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' />
       
   841 								</a>
       
   842 								<h3><?php echo $name; ?></h3>
       
   843 								<div class="theme-author"><?php printf( __( 'By %s', 'bestwebsoft' ), $author ); ?></div>
       
   844 								<div class="action-links">
       
   845 									<ul>
       
   846 										<?php foreach ( $actions as $action ): ?>
       
   847 											<li><?php echo $action; ?></li>
       
   848 										<?php endforeach; ?>
       
   849 										<li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e( 'Details', 'bestwebsoft' ) ?></a></li>
       
   850 									</ul>
       
   851 								</div>
       
   852 								<?php $theme_class->install_theme_info( $theme ); ?>
       
   853 							</div>
       
   854 						<?php }
       
   855 						// end foreach $theme_names
       
   856 						$theme_class->theme_installer();
       
   857 					} else { ?>
       
   858 						<div class="theme-browser">
       
   859 							<div class="themes">
       
   860 						<?php foreach ( $themes as $key => $theme ) {
       
   861 							$installed_theme = wp_get_theme( $theme->slug );
       
   862 							if ( $installed_theme->exists() )
       
   863 								$theme->installed = true;
       
   864 							else
       
   865 								$theme->installed = false;
       
   866 							?>
       
   867 							<div class="theme" tabindex="0">
       
   868 								<?php if ( $theme->screenshot_url ) { ?>
       
   869 									<div class="theme-screenshot">
       
   870 										<img src="<?php echo $theme->screenshot_url; ?>" alt="" />
       
   871 									</div>
       
   872 								<?php } else { ?>
       
   873 									<div class="theme-screenshot blank"></div>
       
   874 								<?php } ?>
       
   875 								<div class="theme-author"><?php printf( __( 'By %s', 'bestwebsoft' ), $theme->author ); ?></div>
       
   876 								<h3 class="theme-name"><?php echo $theme->name; ?></h3>
       
   877 								<div class="theme-actions">
       
   878 									<a class="button button-secondary preview install-theme-preview" href="theme-install.php?theme=<?php echo $theme->slug ?>"><?php esc_html_e( 'Learn More', 'bestwebsoft' ); ?></a>
       
   879 								</div>
       
   880 								<?php if ( $theme->installed ) { ?>
       
   881 									<div class="theme-installed"><?php _e( 'Already Installed', 'bestwebsoft' ); ?></div>
       
   882 								<?php } ?>
       
   883 							</div>
       
   884 						<?php } ?>
       
   885 							<br class="clear" />
       
   886 							</div>
       
   887 						</div>
       
   888 						<div class="theme-overlay"></div>
       
   889 					<?php } ?>
       
   890 				</div>
       
   891 			<?php } elseif ( 'system_status' == $_GET['action'] ) {	?>
       
   892 				<div class="updated fade" <?php if ( ! ( isset( $_REQUEST['bwsmn_form_submit'] ) || isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) ) || $error != "" ) echo "style=\"display:none\""; ?>><p><strong><?php echo $message; ?></strong></p></div>
       
   893 				<div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
       
   894 				<h3><?php _e( 'System status', 'bestwebsoft' ); ?></h3>
       
   895 				<div class="inside">
       
   896 					<table class="bws_system_info">
       
   897 						<thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
       
   898 						<tbody>
       
   899 						<?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
       
   900 							<tr>
       
   901 								<td scope="row"><?php echo $key; ?></td>
       
   902 								<td scope="row"><?php echo $value; ?></td>
       
   903 							</tr>
       
   904 						<?php } ?>
       
   905 						</tbody>
       
   906 					</table>
       
   907 					<table class="bws_system_info">
       
   908 						<thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
       
   909 						<tbody>
       
   910 						<?php if ( ! empty( $system_info['active_plugins'] ) ) {
       
   911 							foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
       
   912 								<tr>
       
   913 									<td scope="row"><?php echo $key; ?></td>
       
   914 									<td scope="row"><?php echo $value; ?></td>
       
   915 								</tr>
       
   916 							<?php }
       
   917 						} ?>
       
   918 						</tbody>
       
   919 					</table>
       
   920 					<table class="bws_system_info">
       
   921 						<thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
       
   922 						<tbody>
       
   923 						<?php if ( ! empty( $system_info['inactive_plugins'] ) ) {
       
   924 							foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
       
   925 								<tr>
       
   926 									<td scope="row"><?php echo $key; ?></td>
       
   927 									<td scope="row"><?php echo $value; ?></td>
       
   928 								</tr>
       
   929 							<?php }
       
   930 						} ?>
       
   931 						</tbody>
       
   932 					</table>
       
   933 					<div class="clear"></div>
       
   934 					<form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
       
   935 						<p>
   652 						<p>
   936 							<input type="hidden" name="bwsmn_form_submit" value="submit" />
   653 							<input type="hidden" name="bwsmn_form_submit" value="submit" />
   937 							<input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
   654 							<input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
   938 							<?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
   655 							<?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
   939 						</p>
   656 						</p>
   940 					</form>
   657 					</form>
   941 					<form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
   658 					<form method="post" action="">
   942 						<p>
   659 						<p>
   943 							<input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
   660 							<input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
   944 							<input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
   661 							<input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
   945 							<input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
   662 							<input type="text" maxlength="250" value="" name="bwsmn_form_email" />
   946 							<?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
   663 							<?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
   947 						</p>
   664 						</p>
   948 					</form>
   665 					</form>
   949 				</div>
   666 					<?php foreach ( $system_info as $info ) { ?>
   950 			<?php } ?>
   667 						<table class="widefat bws-system-info" cellspacing="0">
       
   668 							<thead>
       
   669 								<tr>
       
   670 									<th colspan="2">
       
   671 										<strong>
       
   672 											<?php echo $info['name'];
       
   673 											if ( isset( $info['count'] ) )
       
   674 												echo ' (' . $info['count'] . ')'; ?>
       
   675 										</strong>
       
   676 									</th>
       
   677 								</tr>
       
   678 							</thead>
       
   679 							<tbody>
       
   680 								<?php foreach ( $info['data'] as $key => $value ) { ?>
       
   681 									<tr>
       
   682 										<td scope="row"><?php echo $key; ?></td>
       
   683 										<td scope="row"><?php echo $value; ?></td>
       
   684 									</tr>
       
   685 								<?php } ?>
       
   686 							</tbody>
       
   687 						</table>
       
   688 					<?php }
       
   689 				} ?>
       
   690 			</div>
   951 		</div>
   691 		</div>
   952 	<?php }
   692 	<?php }
   953 }
   693 }
   954 
   694 
   955 if ( ! function_exists( 'bws_get_banner_array' ) ) {
   695 if ( ! function_exists( 'bws_get_banner_array' ) ) {
   956 	function bws_get_banner_array() {
   696 	function bws_get_banner_array() {
   957 		global $bstwbsftwppdtplgns_banner_array;
   697 		global $bstwbsftwppdtplgns_banner_array;
   958 		$bstwbsftwppdtplgns_banner_array = array(
   698 		$bstwbsftwppdtplgns_banner_array = array(
   959 			array( 'prtflpr_hide_banner_on_plugin_page', 'portfolio/portfolio.php', '2.33' ),
   699 			array( 'gglstpvrfctn_hide_banner_on_plugin_page', 'bws-google-2-step-verification/bws-google-2-step-verification.php', '1.0.0' ),
       
   700 			array( 'sclbttns_hide_banner_on_plugin_page', 'social-buttons-pack/social-buttons-pack.php', '1.1.0' ),
       
   701 			array( 'tmsht_hide_banner_on_plugin_page', 'timesheet/timesheet.php', '0.1.3' ),
       
   702 			array( 'pgntn_hide_banner_on_plugin_page', 'pagination/pagination.php', '1.0.6' ),
       
   703 			array( 'crrntl_hide_banner_on_plugin_page', 'car-rental/car-rental.php', '1.0.0' ),
       
   704 			array( 'lnkdn_hide_banner_on_plugin_page', 'bws-linkedin/bws-linkedin.php', '1.0.1' ),
       
   705 			array( 'pntrst_hide_banner_on_plugin_page', 'bws-pinterest/bws-pinterest.php', '1.0.1' ),
       
   706 			array( 'zndskhc_hide_banner_on_plugin_page', 'zendesk-help-center/zendesk-help-center.php', '1.0.0' ),
       
   707 			array( 'gglcptch_hide_banner_on_plugin_page', 'google-captcha/google-captcha.php', '1.18' ),
       
   708 			array( 'mltlngg_hide_banner_on_plugin_page', 'multilanguage/multilanguage.php', '1.1.1' ),
       
   709 			array( 'adsns_hide_banner_on_plugin_page', 'adsense-plugin/adsense-plugin.php', '1.36' ),
       
   710 			array( 'vstrsnln_hide_banner_on_plugin_page', 'visitors-online/visitors-online.php', '0.2' ),
       
   711 			array( 'cstmsrch_hide_banner_on_plugin_page', 'custom-search-plugin/custom-search-plugin.php', '1.28' ),
       
   712 			array( 'prtfl_hide_banner_on_plugin_page', 'portfolio/portfolio.php', '2.33' ),
   960 			array( 'rlt_hide_banner_on_plugin_page', 'realty/realty.php', '1.0.0' ),
   713 			array( 'rlt_hide_banner_on_plugin_page', 'realty/realty.php', '1.0.0' ),
   961 			array( 'prmbr_hide_banner_on_plugin_page', 'promobar/promobar.php', '1.0.0' ),
   714 			array( 'prmbr_hide_banner_on_plugin_page', 'promobar/promobar.php', '1.0.0' ),
   962 			array( 'gglnltcs_hide_banner_on_plugin_page', 'bws-google-analytics/bws-google-analytics.php', '1.6.2' ),
   715 			array( 'gglnltcs_hide_banner_on_plugin_page', 'bws-google-analytics/bws-google-analytics.php', '1.6.2' ),
   963 			array( 'htccss_hide_banner_on_plugin_page', 'htaccess/htaccess.php', '1.6.3' ),
   716 			array( 'htccss_hide_banner_on_plugin_page', 'htaccess/htaccess.php', '1.6.3' ),
   964 			array( 'sbscrbr_hide_banner_on_plugin_page', 'subscriber/subscriber.php', '1.1.8' ),
   717 			array( 'sbscrbr_hide_banner_on_plugin_page', 'subscriber/subscriber.php', '1.1.8' ),
   976 			array( 'gglstmp_hide_banner_on_plugin_page', 'google-sitemap-plugin/google-sitemap-plugin.php', '2.8.4' ),
   729 			array( 'gglstmp_hide_banner_on_plugin_page', 'google-sitemap-plugin/google-sitemap-plugin.php', '2.8.4' ),
   977 			array( 'cntctfrmpr_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-pro/contact_form_pro.php', '1.14' ),
   730 			array( 'cntctfrmpr_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-pro/contact_form_pro.php', '1.14' ),
   978 			array( 'cntctfrm_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.47' ),
   731 			array( 'cntctfrm_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.47' ),
   979 			array( 'cptch_hide_banner_on_plugin_page', 'captcha/captcha.php', '3.8.4' ),
   732 			array( 'cptch_hide_banner_on_plugin_page', 'captcha/captcha.php', '3.8.4' ),
   980 			array( 'gllr_hide_banner_on_plugin_page', 'gallery-plugin/gallery-plugin.php', '3.9.1' ),
   733 			array( 'gllr_hide_banner_on_plugin_page', 'gallery-plugin/gallery-plugin.php', '3.9.1' ),
   981 			array( 'cntctfrm_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.62' ),
   734 			array( 'cntctfrm_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.62' )
   982 		);
   735 		);
   983 	}
   736 	}
   984 }
   737 }