PluginProbe
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin / 1.7.1
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin v1.7.1
trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.1 All 71 releases
← All changes | bws_menu/bws_menu.php +803 -728 1.8.6 → 1.7.1 View file →
@@ -1,531 +1,479 @@
1 1 <?php
2 2 /*
3 -* Function for displaying BestWebSoft menu
4 -* Version: 1.8.0
3 + Function for displaying BestWebSoft menu
5 4 */
5 +if ( ! function_exists( 'bws_add_menu_render' ) ) {
6 + function bws_add_menu_render() {
7 + global $wpdb, $wpmu, $wp_version, $bws_plugin_info;
8 + $error = '';
9 + $message = '';
10 + $bwsmn_form_email = '';
11 + $bws_donate_link = 'https://www.2checkout.com/checkout/purchase?sid=1430388&quantity=10&product_id=13';
6 12
7 -if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) )
8 - require_once( dirname( __FILE__ ) . '/bws_functions.php' );
13 + // install the option defaults
14 + if ( 1 == $wpmu ) {
15 + if ( !get_site_option( 'bstwbsftwppdtplgns_options' ) )
16 + add_site_option( 'bstwbsftwppdtplgns_options', array(), '', 'yes' );
17 + $bstwbsftwppdtplgns_options = get_site_option( 'bstwbsftwppdtplgns_options' );
18 + } else {
19 + if ( !get_option( 'bstwbsftwppdtplgns_options' ) )
20 + add_option( 'bstwbsftwppdtplgns_options', array(), '', 'yes' );
21 + $bstwbsftwppdtplgns_options = get_option( 'bstwbsftwppdtplgns_options' );
22 + }
23 + if ( !isset( $bstwbsftwppdtplgns_options['bws_menu_version'] ) ) {
24 + $bstwbsftwppdtplgns_options['bws_menu_version'] = '1.1';
25 + update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options, '', 'yes' );
26 + }
9 27
10 -if ( ! function_exists( 'bws_add_menu_render' ) ) {
11 - function bws_add_menu_render() {
12 - global $wpdb, $wp_version, $bws_plugin_info;
13 - $error = $message = $bwsmn_form_email = '';
14 - $bws_donate_link = 'http://bestwebsoft.com/donate/';
28 + if ( isset( $_REQUEST['bwsmn_form_submit_switch'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit_switch' ) ) {
29 + if ( $bstwbsftwppdtplgns_options['bws_menu_version'] == '1.1' )
30 + $bstwbsftwppdtplgns_options['bws_menu_version'] = 'old';
31 + else
32 + $bstwbsftwppdtplgns_options['bws_menu_version'] = '1.1';
33 + $bstwbsftwppdtplgns_options['bws_menu_time'] = strtotime('now');
34 + update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options, '', 'yes' );
35 + }
15 36
16 37 if ( ! function_exists( 'is_plugin_active_for_network' ) )
17 - require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
38 + require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
18 39
19 - if ( function_exists( 'is_multisite' ) )
20 - $admin_url = ( ! is_multisite() ) ? admin_url( '/' ) : network_admin_url( '/' );
21 - else
22 - $admin_url = admin_url( '/' );
23 -
24 40 $bws_plugins = array(
25 41 'captcha/captcha.php' => array(
26 42 'name' => 'Captcha',
27 43 'description' => 'Plugin intended to prove that the visitor is a human being and not a spam robot.',
28 - 'link' => 'http://bestwebsoft.com/products/captcha/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
29 - 'download' => 'http://bestwebsoft.com/products/captcha/download/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
30 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Captcha+bestwebsoft&plugin-search-input=Search+Plugins',
44 + 'link' => 'http://bestwebsoft.com/plugin/captcha-plugin/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
45 + 'download' => 'http://bestwebsoft.com/plugin/captcha-plugin/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
46 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Captcha+bestwebsoft&plugin-search-input=Search+Plugins',
31 47 'settings' => 'admin.php?page=captcha.php',
32 - 'pro_version' => 'captcha-pro/captcha_pro.php',
33 - 'purchase' => 'http://bestwebsoft.com/products/captcha/buy/?k=ff7d65e55e5e7f98f219be9ed711094e&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
34 - 'pro_settings' => 'admin.php?page=captcha_pro.php'
48 + 'pro_version' => 'captcha-pro/captcha_pro.php'
35 49 ),
36 50 'contact-form-plugin/contact_form.php' => array(
37 - 'name' => 'Contact Form',
51 + 'name' => 'Contact form',
38 52 'description' => 'Add Contact Form to your WordPress website.',
39 - 'link' => 'http://bestwebsoft.com/products/contact-form/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
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,
41 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Contact+Form+bestwebsoft&plugin-search-input=Search+Plugins',
53 + 'link' => 'http://bestwebsoft.com/plugin/contact-form/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
54 + 'download' => 'http://bestwebsoft.com/plugin/contact-form/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
55 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Contact+Form+bestwebsoft&plugin-search-input=Search+Plugins',
42 56 'settings' => 'admin.php?page=contact_form.php',
43 - 'pro_version' => 'contact-form-pro/contact_form_pro.php',
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,
45 - 'pro_settings' => 'admin.php?page=contact_form_pro.php'
46 - ),
57 + 'pro_version' => 'contact-form-pro/contact_form_pro.php'
58 + ),
47 59 'facebook-button-plugin/facebook-button-plugin.php' => array(
48 60 'name' => 'Facebook Like Button',
49 61 'description' => 'Allows you to add the Follow and Like buttons the easiest way.',
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,
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,
52 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Facebook+Like+Button+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
62 + 'link' => 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
63 + 'download' => 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
64 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Facebook+Like+Button+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
53 65 'settings' => 'admin.php?page=facebook-button-plugin.php',
54 - 'pro_version' => 'facebook-button-pro/facebook-button-pro.php',
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,
56 - 'pro_settings' => 'admin.php?page=facebook-button-pro.php'
66 + 'pro_version' => 'facebook-button-pro/facebook-button-pro.php'
57 67 ),
58 68 'twitter-plugin/twitter.php' => array(
59 69 'name' => 'Twitter',
60 70 'description' => 'Allows you to add the Twitter "Follow" and "Like" buttons the easiest way.',
61 - 'link' => 'http://bestwebsoft.com/products/twitter/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
62 - 'download' => 'http://bestwebsoft.com/products/twitter/download/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
63 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Twitter+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
71 + 'link' => 'http://bestwebsoft.com/plugin/twitter-plugin/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
72 + 'download' => 'http://bestwebsoft.com/plugin/twitter-plugin/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
73 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Twitter+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
64 74 'settings' => 'admin.php?page=twitter.php',
65 - 'pro_version' => 'twitter-pro/twitter-pro.php',
66 - 'purchase' => 'http://bestwebsoft.com/products/twitter/buy/?k=63ecbf0cc9cebf060b5a3c9362299700&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
67 - 'pro_settings' => 'admin.php?page=twitter-pro.php'
68 - ),
75 + 'pro_version' => 'twitter-pro/twitter-pro.php'
76 + ),
69 77 'portfolio/portfolio.php' => array(
70 78 'name' => 'Portfolio',
71 79 'description' => 'Allows you to create a page with the information about your past projects.',
72 - 'link' => 'http://bestwebsoft.com/products/portfolio/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
73 - 'download' => 'http://bestwebsoft.com/products/portfolio/download/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
74 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Portfolio+bestwebsoft&plugin-search-input=Search+Plugins',
75 - 'settings' => 'admin.php?page=portfolio.php',
76 - 'pro_version' => 'portfolio-pro/portfolio-pro.php',
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'
80 + 'link' => 'http://bestwebsoft.com/plugin/portfolio-plugin/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
81 + 'download' => 'http://bestwebsoft.com/plugin/portfolio-plugin/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
82 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Portfolio+bestwebsoft&plugin-search-input=Search+Plugins',
83 + 'settings' => 'admin.php?page=portfolio.php'
79 84 ),
80 85 'gallery-plugin/gallery-plugin.php' => array(
81 86 'name' => 'Gallery',
82 87 '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',
88 + 'link' => 'http://bestwebsoft.com/plugin/gallery-plugin/?k=2da21c0a64eec7ebf16337fa134c5f78&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
89 + 'download' => 'http://bestwebsoft.com/plugin/gallery-plugin/?k=2da21c0a64eec7ebf16337fa134c5f78&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
90 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Gallery+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
86 91 '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'
92 + 'pro_version' => 'gallery-plugin-pro/gallery-plugin-pro.php'
90 93 ),
91 94 'adsense-plugin/adsense-plugin.php'=> array(
92 95 'name' => 'Google AdSense',
93 96 '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 - 'pro_version' => 'adsense-pro/adsense-pro.php',
99 - 'purchase' => 'http://bestwebsoft.com/products/google-adsense/buy/?k=c23889b293d62aa1ad2c96513405f0e1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
100 - 'pro_settings' => 'admin.php?page=adsense-pro.php'
97 + 'link' => 'http://bestwebsoft.com/plugin/google-adsense-plugin/?k=60e3979921e354feb0347e88e7d7b73d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
98 + 'download' => 'http://bestwebsoft.com/plugin/google-adsense-plugin/?k=60e3979921e354feb0347e88e7d7b73d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
99 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Adsense+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
100 + 'settings' => 'admin.php?page=adsense-plugin.php'
101 101 ),
102 102 'custom-search-plugin/custom-search-plugin.php'=> array(
103 103 'name' => 'Custom Search',
104 104 'description' => 'Allows to extend your website search functionality by adding a custom post type.',
105 - 'link' => 'http://bestwebsoft.com/products/custom-search/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
106 - 'download' => 'http://bestwebsoft.com/products/custom-search/download/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
107 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Custom+Search+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
108 - 'settings' => 'admin.php?page=custom_search.php',
109 - 'pro_version' => 'custom-search-pro/custom-search-pro.php',
110 - 'purchase' => 'http://bestwebsoft.com/products/custom-search/buy/?k=062b652ac6ac8ba863c9f30fc21d62c6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
111 - 'pro_settings' => 'admin.php?page=custom_search_pro.php'
105 + 'link' => 'http://bestwebsoft.com/plugin/custom-search-plugin/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
106 + 'download' => 'http://bestwebsoft.com/plugin/custom-search-plugin/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
107 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Search+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
108 + 'settings' => 'admin.php?page=custom_search.php'
112 109 ),
113 110 'quotes-and-tips/quotes-and-tips.php'=> array(
114 111 'name' => 'Quotes and Tips',
115 112 'description' => 'Allows you to implement quotes & tips block into your web site.',
116 - 'link' => 'http://bestwebsoft.com/products/quotes-and-tips/?k=5738a4e85a798c4a5162240c6515098d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
117 - '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,
118 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Quotes+and+Tips+bestwebsoft&plugin-search-input=Search+Plugins',
113 + 'link' => 'http://bestwebsoft.com/plugin/quotes-and-tips/?k=5738a4e85a798c4a5162240c6515098d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
114 + 'download' => 'http://bestwebsoft.com/plugin/quotes-and-tips/?k=5738a4e85a798c4a5162240c6515098d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
115 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Quotes+and+Tips+bestwebsoft&plugin-search-input=Search+Plugins',
119 116 'settings' => 'admin.php?page=quotes-and-tips.php'
120 117 ),
121 118 'google-sitemap-plugin/google-sitemap-plugin.php'=> array(
122 119 'name' => 'Google Sitemap',
123 120 'description' => 'Allows you to add sitemap file to Google Webmaster Tools.',
124 - 'link' => 'http://bestwebsoft.com/products/google-sitemap/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
125 - 'download' => 'http://bestwebsoft.com/products/google-sitemap/download/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
126 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Google+sitemap+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
121 + 'link' => 'http://bestwebsoft.com/plugin/google-sitemap-plugin/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
122 + 'download' => 'http://bestwebsoft.com/plugin/google-sitemap-plugin/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
123 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+sitemap+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
127 124 'settings' => 'admin.php?page=google-sitemap-plugin.php',
128 - 'pro_version' => 'google-sitemap-pro/google-sitemap-pro.php',
129 - 'purchase' => 'http://bestwebsoft.com/products/google-sitemap/buy/?k=7ea384a5cc36cb4c22741caa20dcd56d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
130 - 'pro_settings' => 'admin.php?page=google-sitemap-pro.php'
125 + 'pro_version' => 'google-sitemap-pro/google-sitemap-pro.php'
131 126 ),
132 127 'updater/updater.php'=> array(
133 128 'name' => 'Updater',
134 129 'description' => 'Allows you to update plugins and WP core.',
135 - 'link' => 'http://bestwebsoft.com/products/updater/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
136 - 'download' => 'http://bestwebsoft.com/products/updater/download/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
137 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=updater+bestwebsoft&plugin-search-input=Search+Plugins',
130 + 'link' => 'http://bestwebsoft.com/plugin/updater-plugin/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
131 + 'download' => 'http://bestwebsoft.com/plugin/updater-plugin/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
132 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=updater+bestwebsoft&plugin-search-input=Search+Plugins',
138 133 'settings' => 'admin.php?page=updater-options',
139 - 'pro_version' => 'updater-pro/updater_pro.php',
140 - 'purchase' => 'http://bestwebsoft.com/products/updater/buy/?k=cf633acbefbdff78545347fe08a3aecb&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
141 - 'pro_settings' => 'admin.php?page=updater-pro-options'
134 + 'pro_version' => 'updater-pro/updater_pro.php'
142 135 ),
143 136 'custom-fields-search/custom-fields-search.php'=> array(
144 137 'name' => 'Custom Fields Search',
145 138 'description' => 'Allows you to add website search any existing custom fields.',
146 - 'link' => 'http://bestwebsoft.com/products/custom-fields-search/?k=f3f8285bb069250c42c6ffac95ed3284&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
147 - '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,
148 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Custom+Fields+Search+bestwebsoft&plugin-search-input=Search+Plugins',
139 + 'link' => 'http://bestwebsoft.com/plugin/custom-fields-search/?k=f3f8285bb069250c42c6ffac95ed3284&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
140 + 'download' => 'http://bestwebsoft.com/plugin/custom-fields-search/?k=f3f8285bb069250c42c6ffac95ed3284&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
141 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Fields+Search+bestwebsoft&plugin-search-input=Search+Plugins',
149 142 'settings' => 'admin.php?page=custom_fields_search.php'
150 143 ),
151 144 'google-one/google-plus-one.php' => array(
152 145 'name' => 'Google +1',
153 - '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.',
154 - 'link' => 'http://bestwebsoft.com/products/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
155 - '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,
156 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins',
146 + 'description' => 'Allows you to celebrate liked the article.',
147 + 'link' => 'http://bestwebsoft.com/plugin/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
148 + 'download' => 'http://bestwebsoft.com/plugin/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
149 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins',
157 150 'settings' => 'admin.php?page=google-plus-one.php',
158 - 'pro_version' => 'google-one-pro/google-plus-one-pro.php',
159 - '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,
160 - 'pro_settings' => 'admin.php?page=google-plus-one-pro.php'
151 + 'pro_version' => 'google-one-pro/google-plus-one-pro.php'
161 152 ),
162 153 'relevant/related-posts-plugin.php' => array(
163 154 'name' => 'Relevant - Related Posts',
164 155 'description' => 'Allows you to display related posts with similar words in category, tags, title or by adding special meta key for posts.',
165 - 'link' => 'http://bestwebsoft.com/products/related-posts/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
166 - 'download' => 'http://bestwebsoft.com/products/related-posts/download/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
167 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Related+Posts+Plugin+Bestwebsoft&plugin-search-input=Search+Plugins',
156 + 'link' => 'http://bestwebsoft.com/plugin/related-posts-plugin/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
157 + 'download' => 'http://bestwebsoft.com/plugin/related-posts-plugin/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
158 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Related+Posts+Plugin+Bestwebsoft&plugin-search-input=Search+Plugins',
168 159 'settings' => 'admin.php?page=related-posts-plugin.php'
169 160 ),
170 161 'contact-form-to-db/contact_form_to_db.php' => array(
171 - 'name' => 'Contact Form to DB',
162 + 'name' => 'Contact Form To DB',
172 163 'description' => 'Allows you to manage the messages that have been sent from your site.',
173 - '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,
174 - '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,
175 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Contact+Form+to+DB+bestwebsoft&plugin-search-input=Search+Plugins',
164 + 'link' => 'http://bestwebsoft.com/plugin/contact-form-to-db/?k=ba3747d317c2692e4136ca096a8989d6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
165 + 'download' => 'http://bestwebsoft.com/plugin/contact-form-to-db/?k=ba3747d317c2692e4136ca096a8989d6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
166 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Contact+Form+to+DB+bestwebsoft&plugin-search-input=Search+Plugins',
176 167 'settings' => 'admin.php?page=cntctfrmtdb_settings',
177 - 'pro_version' => 'contact-form-to-db-pro/contact_form_to_db_pro.php',
178 - '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,
179 - 'pro_settings' => 'admin.php?page=cntctfrmtdbpr_settings'
168 + 'pro_version' => 'contact-form-to-db-pro/contact_form_to_db_pro.php'
180 169 ),
181 170 'pdf-print/pdf-print.php' => array(
182 171 'name' => 'PDF & Print',
183 172 'description' => 'Allows you to create PDF and Print page with adding appropriate buttons to the content.',
184 - 'link' => 'http://bestwebsoft.com/products/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
185 - 'download' => 'http://bestwebsoft.com/products/pdf-print/download/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
186 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=PDF+Print+Bestwebsoft&plugin-search-input=Search+Plugins',
173 + 'link' => 'http://bestwebsoft.com/plugin/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
174 + 'download' => 'http://bestwebsoft.com/plugin/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
175 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=PDF+Print+Bestwebsoft&plugin-search-input=Search+Plugins',
187 176 'settings' => 'admin.php?page=pdf-print.php',
188 - 'pro_version' => 'pdf-print-pro/pdf-print-pro.php',
189 - 'purchase' => 'http://bestwebsoft.com/products/pdf-print/buy/?k=fd43a0e659ddc170a9060027cbfdcc3a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
190 - 'pro_settings' => 'admin.php?page=pdf-print-pro.php'
177 + 'pro_version' => 'pdf-print-pro/pdf-print-pro.php'
191 178 ),
192 179 'donate-button/donate.php' => array(
193 180 'name' => 'Donate',
194 181 'description' => 'Makes it possible to place donation buttons of various payment systems on your web page.',
195 - 'link' => 'http://bestwebsoft.com/products/donate/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
196 - 'download' => 'http://bestwebsoft.com/products/donate/download/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
197 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Donate+Bestwebsoft&plugin-search-input=Search+Plugins',
182 + 'link' => 'http://bestwebsoft.com/plugin/donate/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
183 + 'download' => 'http://bestwebsoft.com/plugin/donate/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
184 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Donate+Bestwebsoft&plugin-search-input=Search+Plugins',
198 185 'settings' => 'admin.php?page=donate.php'
199 186 ),
200 187 'post-to-csv/post-to-csv.php' => array(
201 - 'name' => 'Post to CSV',
188 + 'name' => 'Post To CSV',
202 189 'description' => 'The plugin allows to export posts of any types to a csv file.',
203 - 'link' => 'http://bestwebsoft.com/products/post-to-csv/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
204 - '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,
205 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Post+To+CSV+Bestwebsoft&plugin-search-input=Search+Plugins',
190 + 'link' => 'http://bestwebsoft.com/plugin/post-to-csv/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
191 + 'download' => 'http://bestwebsoft.com/plugin/post-to-csv/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
192 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Post+To+CSV+Bestwebsoft&plugin-search-input=Search+Plugins',
206 193 'settings' => 'admin.php?page=post-to-csv.php'
207 194 ),
208 195 'google-shortlink/google-shortlink.php' => array(
209 196 'name' => 'Google Shortlink',
210 197 'description' => 'Allows you to get short links from goo.gl servise without leaving your site.',
211 - 'link' => 'http://bestwebsoft.com/products/google-shortlink/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
212 - 'download' => 'http://bestwebsoft.com/products/google-shortlink/download/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
213 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Google+Shortlink+Bestwebsoft&plugin-search-input=Search+Plugins',
198 + 'link' => 'http://bestwebsoft.com/plugin/google-shortlink/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
199 + 'download' => 'http://bestwebsoft.com/plugin/google-shortlink/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
200 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Google+Shortlink+Bestwebsoft&plugin-search-input=Search+Plugins',
214 201 'settings' => 'admin.php?page=gglshrtlnk_options'
215 202 ),
216 203 'htaccess/htaccess.php' => array(
217 204 'name' => 'Htaccess',
218 205 'description' => 'Allows controlling access to your website using the directives Allow and Deny.',
219 - 'link' => 'http://bestwebsoft.com/products/htaccess/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
220 - 'download' => 'http://bestwebsoft.com/products/htaccess/download/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
221 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Htaccess+Bestwebsoft&plugin-search-input=Search+Plugins',
222 - 'settings' => 'admin.php?page=htaccess.php',
223 - 'pro_version' => 'htaccess-pro/htaccess-pro.php',
224 - 'purchase' => 'http://bestwebsoft.com/products/htaccess/buy/?k=59e9209a32864be534fda77d5e591c15&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
225 - 'pro_settings' => 'admin.php?page=htaccess-pro.php'
206 + 'link' => 'http://bestwebsoft.com/plugin/htaccess/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
207 + 'download' => 'http://bestwebsoft.com/plugin/htaccess/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
208 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Htaccess+Bestwebsoft&plugin-search-input=Search+Plugins',
209 + 'settings' => 'admin.php?page=htaccess.php'
226 210 ),
227 211 'google-captcha/google-captcha.php' => array(
228 212 'name' => 'Google Captcha (reCAPTCHA)',
229 213 'description' => 'Plugin intended to prove that the visitor is a human being and not a spam robot.',
230 - 'link' => 'http://bestwebsoft.com/products/google-captcha/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
231 - 'download' => 'http://bestwebsoft.com/products/google-captcha/download/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
232 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Google+Captcha+Bestwebsoft&plugin-search-input=Search+Plugins',
233 - 'settings' => 'admin.php?page=google-captcha.php',
234 - 'pro_version' => 'google-captcha-pro/google-captcha-pro.php',
235 - 'purchase' => 'http://bestwebsoft.com/products/google-captcha/buy/?k=773d30149acf1edc32e5c0766b96c134&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
236 - 'pro_settings' => 'admin.php?page=google-captcha-pro.php'
214 + 'link' => 'http://bestwebsoft.com/plugin/google-captcha/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
215 + 'download' => 'http://bestwebsoft.com/plugin/google-captcha/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
216 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Google+Captcha+Bestwebsoft&plugin-search-input=Search+Plugins',
217 + 'settings' => 'admin.php?page=google-captcha.php'
237 218 ),
238 219 'sender/sender.php' => array(
239 220 'name' => 'Sender',
240 221 'description' => 'You can send mails to all users or to certain categories of users.',
241 - 'link' => 'http://bestwebsoft.com/products/sender/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
242 - 'download' => 'http://bestwebsoft.com/products/sender/download/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
243 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Sender+Bestwebsoft&plugin-search-input=Search+Plugins',
244 - 'settings' => 'admin.php?page=sndr_settings',
245 - 'pro_version' => 'sender-pro/sender-pro.php',
246 - 'purchase' => 'http://bestwebsoft.com/products/sender/buy/?k=dc5d1a87bdc8aeab2de40ffb99b38054&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
247 - 'pro_settings' => 'admin.php?page=sndrpr_settings'
222 + 'link' => 'http://bestwebsoft.com/plugin/sender/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
223 + 'download' => 'http://bestwebsoft.com/plugin/sender/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
224 + 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Sender+Bestwebsoft&plugin-search-input=Search+Plugins',
225 + 'settings' => 'admin.php?page=sndr_settings'
226 + )
227 + );
228 + $bws_plugins_pro = array(
229 + 'gallery-plugin-pro/gallery-plugin-pro.php' => array(
230 + 'name' => 'Gallery Pro',
231 + 'description' => 'Allows you to implement as many galleries as you want into your website.',
232 + 'link' => 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
233 + 'purchase' => 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
234 + 'settings' => 'admin.php?page=gallery-plugin-pro.php'
248 235 ),
249 - 'subscriber/subscriber.php' => array(
250 - 'name' => 'Subscriber',
251 - 'description' => 'This plugin allows you to subscribe users for newsletters from your website.',
252 - 'link' => 'http://bestwebsoft.com/products/subscriber/?k=a4ecc1b7800bae7329fbe8b4b04e9c88&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
253 - 'download' => 'http://bestwebsoft.com/products/subscriber/download/?k=a4ecc1b7800bae7329fbe8b4b04e9c88&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
254 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Subscriber+Bestwebsoft&plugin-search-input=Search+Plugins',
255 - 'settings' => 'admin.php?page=sbscrbr_settings_page',
256 - 'pro_version' => 'subscriber-pro/subscriber-pro.php',
257 - 'purchase' => 'http://bestwebsoft.com/products/subscriber/buy/?k=02dbb8b549925d9b74e70adc2a7282e4&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
258 - 'pro_settings' => 'admin.php?page=sbscrbrpr_settings_page'
236 + 'contact-form-pro/contact_form_pro.php' => array(
237 + 'name' => 'Contact form Pro',
238 + 'description' => 'Allows you to implement a feedback form to a web-page or a post in no time.',
239 + 'link' => 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
240 + 'purchase' => 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
241 + 'settings' => 'admin.php?page=contact_form_pro.php'
259 242 ),
260 - 'contact-form-multi/contact-form-multi.php' => array(
261 - 'name' => 'Contact Form Multi',
262 - 'description' => 'Add-on to the Contact Form plugin that allows to create and implement multiple contact forms.',
263 - 'link' => 'http://bestwebsoft.com/products/contact-form-multi/?k=83cdd9e72a9f4061122ad28a67293c72&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
264 - '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,
265 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Contact+Form+Multi+Bestwebsoft&plugin-search-input=Search+Plugins',
266 - 'settings' => '',
267 - 'pro_version' => 'contact-form-multi-pro/contact-form-multi-pro.php',
268 - '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,
269 - 'pro_settings' => ''
243 + 'captcha-pro/captcha_pro.php' => array(
244 + 'name' => 'Captcha Pro',
245 + 'description' => 'Allows you to implement a super security captcha form into web forms.',
246 + 'link' => 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
247 + 'purchase' => 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
248 + 'settings' => 'admin.php?page=captcha_pro.php'
270 249 ),
271 - 'bws-google-maps/bws-google-maps.php' => array(
272 - 'name' => 'Google Maps',
273 - 'description' => 'Easy to set up and insert Google Maps to your website.',
274 - 'link' => 'http://bestwebsoft.com/products/bws-google-maps/?k=d8fac412d7359ebaa4ff53b46572f9f7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
275 - '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,
276 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Google+Maps+Bestwebsoft&plugin-search-input=Search+Plugins',
277 - 'settings' => 'admin.php?page=bws-google-maps.php',
278 - 'pro_version' => 'bws-google-maps-pro/bws-google-maps-pro.php',
279 - '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,
280 - 'pro_settings' => 'admin.php?page=bws-google-maps-pro.php'
250 + 'updater-pro/updater_pro.php' => array(
251 + 'name' => 'Updater Pro',
252 + 'description' => 'Allows you to update plugins and WordPress core on your website.',
253 + 'link' => 'http://bestwebsoft.com/plugin/updater-pro/?k=cf633acbefbdff78545347fe08a3aecb&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
254 + 'purchase' => 'http://bestwebsoft.com/plugin/updater-pro?k=cf633acbefbdff78545347fe08a3aecb&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
255 + 'settings' => 'admin.php?page=updater-pro-options'
281 256 ),
282 - 'bws-google-analytics/bws-google-analytics.php' => array(
283 - 'name' => 'Google Analytics',
284 - 'description' => 'Allows you to retrieve basic stats from Google Analytics account and add the tracking code to your blog.',
285 - 'link' => 'http://bestwebsoft.com/products/bws-google-analytics/?k=261c74cad753fb279cdf5a5db63fbd43&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
286 - '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,
287 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Google+Analytics+Bestwebsoft&plugin-search-input=Search+Plugins',
288 - 'settings' => 'admin.php?page=bws-google-analytics.php',
289 - 'pro_version' => 'bws-google-analytics-pro/bws-google-analytics-pro.php',
290 - '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,
291 - 'pro_settings' => 'admin.php?page=bws-google-analytics-pro.php'
257 + 'contact-form-to-db-pro/contact_form_to_db_pro.php' => array(
258 + 'name' => 'Contact form to DB Pro',
259 + 'description' => 'The plugin provides a unique opportunity to manage messages sent from your site via the contact form.',
260 + 'link' => 'http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ce5f4a9006ec906e4db643669246c6a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
261 + 'purchase' => 'http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ce5f4a9006ec906e4db643669246c6a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
262 + 'settings' => 'admin.php?page=cntctfrmtdbpr_settings'
292 263 ),
293 - 'db-manager/db-manager.php' => array(
294 - 'name' => 'DB Manager',
295 - 'description' => 'Allows you to download the latest version of PhpMyadmin and Dumper and manage your site.',
296 - 'link' => 'http://bestwebsoft.com/products/db-manager/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
297 - 'download' => 'http://bestwebsoft.com/products/db-manager/download/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
298 - '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,
299 - 'settings' => 'admin.php?page=db-manager.php'
264 + 'google-sitemap-pro/google-sitemap-pro.php'=> array(
265 + 'name' => 'Google Sitemap Pro',
266 + 'description' => 'Allows you to add sitemap file to Google Webmaster Tools.',
267 + 'link' => 'http://bestwebsoft.com/plugin/google-sitemap-pro/?k=7ea384a5cc36cb4c22741caa20dcd56d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
268 + 'purchase' => 'http://bestwebsoft.com/plugin/google-sitemap-pro/?k=7ea384a5cc36cb4c22741caa20dcd56d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
269 + 'settings' => 'admin.php?page=google-sitemap-pro.php'
300 270 ),
301 - 'user-role/user-role.php' => array(
302 - 'name' => 'User Role',
303 - 'description' => 'Allows to change wordpress user role capabilities.',
304 - 'link' => 'http://bestwebsoft.com/products/user-role/?k=dfe2244835c6fbf601523964b3f34ccc&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
305 - 'download' => 'http://bestwebsoft.com/products/user-role/download/?k=dfe2244835c6fbf601523964b3f34ccc&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
306 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=User+Role+BestWebSoft&plugin-search-input=Search+Plugins',
307 - 'settings' => 'admin.php?page=user-role.php',
308 - 'pro_version' => 'user-role-pro/user-role-pro.php',
309 - 'purchase' => 'http://bestwebsoft.com/products/user-role/buy/?k=cfa9cea6613fb3d7c0a3622fa2faaf46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
310 - 'pro_settings' => 'admin.php?page=user-role-pro.php'
271 + 'twitter-pro/twitter-pro.php' => array(
272 + 'name' => 'Twitter Pro',
273 + 'description' => 'Allows you to add the Twitter "Follow" and "Like" buttons the easiest way.',
274 + 'link' => 'http://bestwebsoft.com/plugin/twitter-pro/?k=63ecbf0cc9cebf060b5a3c9362299700&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
275 + 'purchase' => 'http://bestwebsoft.com/plugin/twitter-pro?k=63ecbf0cc9cebf060b5a3c9362299700&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
276 + 'settings' => 'admin.php?page=twitter-pro.php'
311 277 ),
312 - 'email-queue/email-queue.php' => array(
313 - 'name' => 'Email Queue',
314 - 'description' => 'Allows to manage email massages sent by BestWebSoft plugins.',
315 - 'link' => 'http://bestwebsoft.com/products/email-queue/?k=e345e1b6623f0dca119bc2d9433b130b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
316 - 'download' => 'http://bestwebsoft.com/products/email-queue/download/?k=e345e1b6623f0dca119bc2d9433b130b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
317 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Email+Queue+BestWebSoft&plugin-search-input=Search+Plugins',
318 - 'settings' => 'admin.php?page=mlq_settings'
278 + 'google-one-pro/google-plus-one-pro.php' => array(
279 + 'name' => 'Google +1 Pro',
280 + 'description' => 'Allows you to celebrate liked the article.',
281 + 'link' => 'http://bestwebsoft.com/plugin/google-plus-one-pro/?k=f4b0a62d155c9df9601a0531ad5bd832&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
282 + 'purchase' => 'http://bestwebsoft.com/plugin/google-plus-one-pro?k=f4b0a62d155c9df9601a0531ad5bd832&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
283 + 'settings' => 'admin.php?page=google-plus-one-pro.php'
319 284 ),
320 - 'limit-attempts/limit-attempts.php' => array(
321 - 'name' => 'Limit Attempts',
322 - 'description' => 'Allows you to limit rate of login attempts by the ip, and create whitelist and blacklist.',
323 - 'link' => 'http://bestwebsoft.com/products/limit-attempts/?k=b14e1697ee4d008abcd4bd34d492573a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
324 - 'download' => 'http://bestwebsoft.com/products/limit-attempts/download/?k=b14e1697ee4d008abcd4bd34d492573a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
325 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&s=Limit+Attempts+BestWebSoft&plugin-search-input=Search+Plugins',
326 - 'settings' => 'admin.php?page=limit-attempts.php',
327 - 'pro_version' => 'limit-attempts-pro/limit-attempts-pro.php',
328 - 'purchase' => 'http://bestwebsoft.com/products/limit-attempts/buy/?k=9d42cdf22c7fce2c4b6b447e6a2856e0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
329 - 'pro_settings' => 'admin.php?page=limit-attempts-pro.php'
285 + 'facebook-button-pro/facebook-button-pro.php' => array(
286 + 'name' => 'Facebook Like Button Pro',
287 + 'description' => 'Allows you to add the Follow and Like buttons the easiest way.',
288 + 'link' => 'http://bestwebsoft.com/plugin/facebook-like-button-pro/?k=8da168e60a831cfb3525417c333ad275&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
289 + 'purchase' => 'http://bestwebsoft.com/plugin/facebook-like-button-pro?k=8da168e60a831cfb3525417c333ad275&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
290 + 'settings' => 'admin.php?page=facebook-button-pro.php'
330 291 ),
331 - 'job-board/job-board.php' => array(
332 - 'name' => 'Job Board',
333 - 'description' => 'Allows to create a job-board page on your site.',
334 - 'link' => 'http://bestwebsoft.com/products/job-board/?k=b0c504c9ce6edd6692e04222af3fed6f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
335 - 'download' => 'http://bestwebsoft.com/products/job-board/download/?k=b0c504c9ce6edd6692e04222af3fed6f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
336 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Job+board+BestWebSoft&plugin-search-input=Search+Plugins',
337 - 'settings' => 'admin.php?page=job-board.php'
338 - ),
339 - 'multilanguage/multilanguage.php' => array(
340 - 'name' => 'Multilanguage',
341 - 'description' => 'Allows to create content on a Wordpress site in different languages.',
342 - 'link' => 'http://bestwebsoft.com/products/multilanguage/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
343 - 'download' => 'http://bestwebsoft.com/products/multilanguage/download/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
344 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Multilanguage+BestWebSoft&plugin-search-input=Search+Plugins',
345 - 'settings' => 'admin.php?page=mltlngg_settings',
346 - 'pro_version' => 'multilanguage-pro/multilanguage-pro.php',
347 - 'purchase' => 'http://bestwebsoft.com/products/multilanguage/buy/?k=2d1121cd9a5ced583fc29eefd51bdf57&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
348 - 'pro_settings' => 'admin.php?page=mltlnggpr_settings'
349 - ),
350 - 'bws-popular-posts/bws-popular-posts.php' => array(
351 - 'name' => 'Popular Posts',
352 - 'description' => 'This plugin will help you can display the most popular posts on your blog in the widget.',
353 - 'link' => 'http://bestwebsoft.com/products/popular-posts/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
354 - 'download' => 'http://bestwebsoft.com/products/popular-posts/download/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
355 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Popular+Posts+BestWebSoft&plugin-search-input=Search+Plugins',
356 - 'settings' => 'admin.php?page=popular-posts.php'
357 - ),
358 - 'bws-testimonials/bws-testimonials.php' => array(
359 - 'name' => 'Testimonials',
360 - 'description' => 'Allows creating and displaying a Testimonial on your website.',
361 - 'link' => 'http://bestwebsoft.com/products/testimonials/?k=3fe4bb89dc901c98e43a113e08f8db73&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
362 - 'download' => 'http://bestwebsoft.com/products/testimonials/download/?k=3fe4bb89dc901c98e43a113e08f8db73&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
363 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Testimonials+BestWebSoft&plugin-search-input=Search+Plugins',
364 - 'settings' => 'admin.php?page=testimonials.php'
365 - ),
366 - 'bws-featured-posts/bws-featured-posts.php' => array(
367 - 'name' => 'Featured Posts',
368 - 'description' => 'Displays featured posts randomly on any website page.',
369 - 'link' => 'http://bestwebsoft.com/products/featured-posts/?k=f0afb31185ba7c7d6d598528d69f6d97&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
370 - 'download' => 'http://bestwebsoft.com/products/featured-posts/download/?k=f0afb31185ba7c7d6d598528d69f6d97&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
371 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Featured+Posts+BestWebSoft&plugin-search-input=Search+Plugins',
372 - 'settings' => 'admin.php?page=featured-posts.php'
373 - ),
374 - 'gallery-categories/gallery-categories.php' => array(
375 - 'name' => 'Gallery Categories',
376 - 'description' => 'Add-on for Gallery Plugin by BestWebSoft',
377 - 'link' => 'http://bestwebsoft.com/products/gallery-categories/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
378 - 'download' => 'http://bestwebsoft.com/products/gallery-categories/download/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
379 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Gallery+Categories+BestWebSoft&plugin-search-input=Search+Plugins',
380 - 'settings' => ''
381 - ),
382 - 're-attacher/re-attacher.php' => array(
383 - 'name' => 'Re-attacher',
384 - 'description' => 'This plugin allows to attach, unattach or reattach media item in different post.',
385 - 'link' => 'http://bestwebsoft.com/products/re-attacher/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
386 - 'download' => 'http://bestwebsoft.com/products/re-attacher/download/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
387 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Re-attacher+BestWebSoft&plugin-search-input=Search+Plugins',
388 - 'settings' => 'admin.php?page=re-attacher.php'
389 - ),
390 - 'bws-smtp/bws-smtp.php' => array(
391 - 'name' => 'SMTP',
392 - 'description' => 'This plugin introduces an easy way to configure sending email messages via SMTP.',
393 - 'link' => 'http://bestwebsoft.com/products/bws-smtp/?k=0546419f962704429ad2d9b88567752f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
394 - 'download' => 'http://bestwebsoft.com/products/bws-smtp/download/?k=0546419f962704429ad2d9b88567752f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
395 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=SMTP+BestWebSoft&plugin-search-input=Search+Plugins',
396 - 'settings' => 'admin.php?page=bwssmtp_settings'
397 - ),
398 - 'promobar/promobar.php' => array(
399 - 'name' => 'PromoBar',
400 - 'description' => 'This plugin allows placing banners with any data on your website.',
401 - 'link' => 'http://bestwebsoft.com/products/promobar/?k=619eac2232d9cfa382c4e678c3b14766&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
402 - 'download' => 'http://bestwebsoft.com/products/promobar/download/?k=619eac2232d9cfa382c4e678c3b14766&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
403 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=PromoBar+BestWebSoft&plugin-search-input=Search+Plugins',
404 - 'settings' => 'admin.php?page=promobar.php',
405 - 'pro_version' => 'promobar-pro/promobar-pro.php',
406 - 'purchase' => 'http://bestwebsoft.com/products/promobar/buy/?k=a9b09708502f12a1483532ba12fe2103&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
407 - 'pro_settings' => 'admin.php?page=promobar-pro.php'
408 - ),
409 - 'realty/realty.php' => array(
410 - 'name' => 'Realty',
411 - 'description' => 'A convenient plugin that adds Real Estate functionality.',
412 - 'link' => 'http://bestwebsoft.com/products/realty/?k=d55de979dbbbb7af0b2ff1d7f43884fa&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
413 - 'download' => 'http://bestwebsoft.com/products/realty/download/?k=d55de979dbbbb7af0b2ff1d7f43884fa&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
414 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Realty+BestWebSoft&plugin-search-input=Search+Plugins',
415 - 'settings' => 'admin.php?page=realty_settings',
416 - 'pro_version' => 'realty-pro/realty-pro.php',
417 - 'purchase' => 'http://bestwebsoft.com/products/realty/buy/?k=c7791f0a72acfb36f564a614dbccb474&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
418 - 'pro_settings' => 'admin.php?page=realty_pro_settings'
419 - ),
420 - 'zendesk-help-center/zendesk-help-center.php' => array(
421 - 'name' => 'Zendesk Help Center Backup',
422 - 'description' => 'This plugin allows to backup Zendesk Help Center.',
423 - 'link' => 'http://bestwebsoft.com/products/zendesk-help-center/?k=2a5fd2f4b2f4bde46f2ca44b8d15846d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
424 - '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,
425 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Zendesk+Help+Center+Backup+BestWebSoft&plugin-search-input=Search+Plugins',
426 - 'settings' => 'admin.php?page=zendesk_hc.php&tab=settings'
427 - ),
428 - 'social-buttons-pack/social-buttons-pack.php' => array(
429 - 'name' => 'Social Buttons Pack',
430 - 'description' => 'Add Social buttons to your WordPress website.',
431 - 'link' => 'http://bestwebsoft.com/products/social-buttons-pack/?k=b6440fad9f54274429e536b0c61b42da&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
432 - '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,
433 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Social+Buttons+Pack+BestWebSoft&plugin-search-input=Search+Plugins',
434 - 'settings' => 'admin.php?page=social-buttons.php'
435 - ),
436 - 'pagination/pagination.php' => array(
437 - 'name' => 'Pagination',
438 - 'description' => 'Add pagination block to your WordPress website.',
439 - 'link' => 'http://bestwebsoft.com/products/pagination/?k=22adb940256f149559ba8fedcd728ac8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
440 - 'download' => 'http://bestwebsoft.com/products/pagination/download/?k=22adb940256f149559ba8fedcd728ac8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
441 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Pagination+BestWebSoft&plugin-search-input=Search+Plugins',
442 - 'settings' => 'admin.php?page=pagination.php'
443 - ),
444 - 'visitors-online/visitors-online.php' => array(
445 - 'name' => 'Visitors Online',
446 - 'description' => 'See how many users, guests and bots are online at the website.',
447 - 'link' => 'http://bestwebsoft.com/products/visitors-online/?k=93c28013a4f830671b3bba9502ed5177&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
448 - 'download' => 'http://bestwebsoft.com/products/visitors-online/download/?k=93c28013a4f830671b3bba9502ed5177&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
449 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Visitors+online+BestWebSoft&plugin-search-input=Search+Plugins',
450 - 'settings' => 'admin.php?page=visitors-online.php',
451 - 'pro_version' => 'visitors-online-pro/visitors-online-pro.php',
452 - 'purchase' => 'http://bestwebsoft.com/products/visitors-online/buy/?k=f9a746075ff8a0a6cb192cb46526afd2&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
453 - 'pro_settings' => 'admin.php?page=visitors-online-pro.php'
454 - ),
455 - 'profile-extra-fields/profile-extra-fields.php' => array(
456 - 'name' => 'Profile Extra Fields',
457 - 'description' => "Add additional fields on the user's profile page",
458 - 'link' => 'http://bestwebsoft.com/products/profile-extra-fields/?k=fe3b6c3dbc80bd4b1cf9a27a2f339820&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
459 - 'download' => 'http://bestwebsoft.com/products/profile-extra-fields/download/?k=fe3b6c3dbc80bd4b1cf9a27a2f339820&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
460 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Profile+Extra+Fields+BestWebSoft&plugin-search-input=Search+Plugins',
461 - 'settings' => 'admin.php?page=profile-extra-fields.php'
462 - ),
463 - 'error-log-viewer/error-log-viewer.php' => array(
464 - 'name' => 'Error Log Viewer',
465 - 'description' => "Work with log files and folders on the WordPress server",
466 - 'link' => 'http://bestwebsoft.com/products/error-log-viewer/?k=da0de8bd2c7a0b2fea5df64d55a368b3&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
467 - 'download' => 'http://bestwebsoft.com/products/error-log-viewer/download/?k=da0de8bd2c7a0b2fea5df64d55a368b3&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
468 - 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Error+Log+Viewer+BestWebSoft&plugin-search-input=Search+Plugins',
469 - 'settings' => 'admin.php?page=rrrlgvwr.php&tab=settings'
470 - )
292 + 'pdf-print-pro/pdf-print-pro.php' => array(
293 + 'name' => 'PDF & Print Pro',
294 + 'description' => 'Allows you to create PDF and Print page with adding appropriate buttons to the content.',
295 + 'link' => 'http://bestwebsoft.com/plugin/pdf-print-pro/?k=fd43a0e659ddc170a9060027cbfdcc3a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
296 + 'purchase' => 'http://bestwebsoft.com/plugin/pdf-print-pro?k=fd43a0e659ddc170a9060027cbfdcc3a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
297 + 'settings' => 'admin.php?page=pdf-print-pro.php'
298 + )
471 299 );
472 -
300 +
473 301 $all_plugins = get_plugins();
474 302 $active_plugins = get_option( 'active_plugins' );
475 - $recommend_plugins = array_diff_key( $bws_plugins, $all_plugins );
476 - $bws_plugins_pro = array();
477 303
478 - foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
479 - if ( ! isset( $all_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
480 - unset( $recommend_plugins[ $key_plugin ] );
304 + if ( '1.1' == $bstwbsftwppdtplgns_options['bws_menu_version'] ) {
305 +
306 + $recommend_plugins = array_diff_key( $bws_plugins, $all_plugins );
307 +
308 + foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
309 + if ( ! isset( $all_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
310 + unset( $recommend_plugins[ $key_plugin ] );
311 + }
481 312 }
482 - }
483 313
484 - foreach ( $all_plugins as $key_plugin => $value_plugin ) {
485 - if ( isset( $value_plugin['Author'] ) && $value_plugin['Author'] != "BestWebSoft" )
486 - unset( $all_plugins[ $key_plugin ] );
487 - elseif ( '-plus.php' == substr( $key_plugin, -9, 9 ) )
488 - unset( $all_plugins[ $key_plugin ] );
489 - else {
490 - foreach ( $bws_plugins as $key => $value ) {
491 - if ( isset( $value['pro_version'] ) && $value['pro_version'] == $key_plugin ) {
492 - $bws_plugins_pro[ $key_plugin ] = $key;
493 - unset( $all_plugins[ $key ] );
314 + foreach ( $all_plugins as $key_plugin => $value_plugin ) {
315 + if ( ! isset( $bws_plugins[ $key_plugin ] ) && ! isset( $bws_plugins_pro[ $key_plugin ] ) )
316 + unset( $all_plugins[ $key_plugin ] );
317 +
318 + if ( isset( $bws_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
319 + unset( $all_plugins[ $key_plugin ] );
320 + }
321 + }
322 + } else {
323 +
324 + $array_activate = array();
325 + $array_install = array();
326 + $array_recomend = array();
327 + $count_activate = $count_install = $count_recomend = 0;
328 +
329 + foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
330 + if ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) {
331 + $array_activate[ $count_activate ]["title"] = $value_plugin['name'];
332 + $array_activate[ $count_activate ]["link"] = $value_plugin['link'];
333 + $array_activate[ $count_activate ]["href"] = $value_plugin['download'];
334 + $array_activate[ $count_activate ]["url"] = $value_plugin['settings'];
335 + $count_activate++;
336 + } else if ( array_key_exists( $key_plugin, $all_plugins ) ) {
337 + $array_install[ $count_install ]["title"] = $value_plugin['name'];
338 + $array_install[ $count_install ]["link"] = $value_plugin['link'];
339 + $array_install[ $count_install ]["href"] = $value_plugin['download'];
340 + $count_install++;
341 + } else {
342 + $array_recomend[ $count_recomend ]["title"] = $value_plugin['name'];
343 + $array_recomend[ $count_recomend ]["link"] = $value_plugin['link'];
344 + $array_recomend[ $count_recomend ]["href"] = $value_plugin['download'];
345 + $array_recomend[ $count_recomend ]["slug"] = $value_plugin['wp_install'];
346 + $count_recomend++;
347 + }
348 + }
349 +
350 + $array_activate_pro = array();
351 + $array_install_pro = array();
352 + $array_recomend_pro = array();
353 + $count_activate_pro = $count_install_pro = $count_recomend_pro = 0;
354 + foreach ( $bws_plugins_pro as $key_plugin => $value_plugin ) {
355 + if ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) {
356 + $array_activate_pro[ $count_activate_pro ]["title"] = $value_plugin['name'];
357 + $array_activate_pro[ $count_activate_pro ]["link"] = $value_plugin['link'];
358 + $array_activate_pro[ $count_activate_pro ]["href"] = $value_plugin['purchase'];
359 + $array_activate_pro[ $count_activate_pro ]["url"] = $value_plugin['settings'];
360 + $count_activate_pro++;
361 + } else if ( array_key_exists( $key_plugin, $all_plugins ) ) {
362 + $array_install_pro[ $count_install_pro ]["title"] = $value_plugin['name'];
363 + $array_install_pro[ $count_install_pro ]["link"] = $value_plugin['link'];
364 + $array_install_pro[ $count_install_pro ]["href"] = $value_plugin['purchase'];
365 + $count_install_pro++;
366 + } else {
367 + $array_recomend_pro[ $count_recomend_pro ]["title"] = $value_plugin['name'];
368 + $array_recomend_pro[ $count_recomend_pro ]["link"] = $value_plugin['link'];
369 + $array_recomend_pro[ $count_recomend_pro ]["href"] = $value_plugin['purchase'];
370 + $count_recomend_pro++;
371 + }
372 + }
373 + if ( $wp_version >= '3.4' ) {
374 + $wp_list_table = _get_list_table( 'WP_Themes_List_Table' );
375 + $wp_list_table->prepare_items();
376 + $current_theme = wp_get_theme();
377 + $array_activate_theme = array();
378 + $array_install_theme = array();
379 + $array_recomend_theme = array();
380 + $count_activate_theme = $count_install_theme = $count_recomend_theme = 0;
381 + $array_theme = array(
382 + array( 'central', 'Central', 'http://bestwebsoft.com/theme/central/?k=77c0199aabdb1f601a0504e312bee220&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/central/?k=77c0199aabdb1f601a0504e312bee220&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&s=Central&search=Search' ),
383 + array( 'simple-classic', 'Simple Classic', 'http://bestwebsoft.com/theme/simple-classic/?k=b3990bfc85125747f48ece9f011f4cde&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/simple-classic/?k=b3990bfc85125747f48ece9f011f4cde&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&type=term&s=Simple+Classic&search=Search' ),
384 + array( 'reddish', 'Reddish', 'http://bestwebsoft.com/theme/reddish/?k=1ea187e3fd401fd278e23a333abaf4f6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/reddish/?k=1ea187e3fd401fd278e23a333abaf4f6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&type=term&s=reddish&search=Search' ),
385 + array( 'wordpost', 'Wordpost', 'http://bestwebsoft.com/theme/wordpost/?k=f0fc8c98135c9657751224562aca7a55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/wordpost/?k=f0fc8c98135c9657751224562aca7a55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&type=term&s=Wordpost&search=Search' )
386 + );
387 + foreach ( $array_theme as $theme ) {
388 + if ( $current_theme->get( 'Name' ) == $theme[1] ) {
389 + $array_activate_theme[ $count_activate_theme ]["title"] = $theme[1];
390 + $array_activate_theme[ $count_activate_theme ]["link"] = $theme[2];
391 + $array_activate_theme[ $count_activate_theme ]["href"] = $theme[3];
392 + $count_activate_theme++;
393 + } elseif ( array_key_exists( $theme[0], $wp_list_table->items ) ) {
394 + $array_install_theme[ $count_install_theme ]["title"] = $theme[1];
395 + $array_install_theme[ $count_install_theme ]["link"] = $theme[2];
396 + $array_install_theme[ $count_install_theme ]["href"] = $theme[3];
397 + $count_install_theme++;
398 + } else {
399 + $array_recomend_theme[ $count_recomend_theme ]["title"] = $theme[1];
400 + $array_recomend_theme[ $count_recomend_theme ]["link"] = $theme[2];
401 + $array_recomend_theme[ $count_recomend_theme ]["href"] = $theme[3];
402 + $array_recomend_theme[ $count_recomend_theme ]["slug"] = $theme[4];
403 + $count_recomend_theme++;
494 404 }
495 405 }
496 406 }
497 407 }
498 408
499 - if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) {
409 + if ( ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) || 'old' == $bstwbsftwppdtplgns_options['bws_menu_version'] ) {
500 410 $all_plugins = get_plugins();
501 411 $active_plugins = get_option( 'active_plugins' );
412 + $sql_version = $wpdb->get_var( "SELECT VERSION() AS version" );
502 413 $mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
503 - if ( is_array( $mysql_info ) )
414 + if ( is_array( $mysql_info) )
504 415 $sql_mode = $mysql_info[0]->Value;
505 416 if ( empty( $sql_mode ) )
506 417 $sql_mode = __( 'Not set', 'bestwebsoft' );
418 + if ( ini_get( 'safe_mode' ) )
419 + $safe_mode = __( 'On', 'bestwebsoft' );
420 + else
421 + $safe_mode = __( 'Off', 'bestwebsoft' );
422 + if ( ini_get( 'allow_url_fopen' ) )
423 + $allow_url_fopen = __( 'On', 'bestwebsoft' );
424 + else
425 + $allow_url_fopen = __( 'Off', 'bestwebsoft' );
426 + if ( ini_get( 'upload_max_filesize' ) )
427 + $upload_max_filesize = ini_get( 'upload_max_filesize' );
428 + else
429 + $upload_max_filesize = __( 'N/A', 'bestwebsoft' );
430 + if ( ini_get('post_max_size') )
431 + $post_max_size = ini_get('post_max_size');
432 + else
433 + $post_max_size = __( 'N/A', 'bestwebsoft' );
434 + if ( ini_get( 'max_execution_time' ) )
435 + $max_execution_time = ini_get( 'max_execution_time' );
436 + else
437 + $max_execution_time = __( 'N/A', 'bestwebsoft' );
438 + if ( ini_get( 'memory_limit' ) )
439 + $memory_limit = ini_get( 'memory_limit' );
440 + else
441 + $memory_limit = __( 'N/A', 'bestwebsoft' );
442 + if ( function_exists( 'memory_get_usage' ) )
443 + $memory_usage = round( memory_get_usage() / 1024 / 1024, 2 ) . __( ' Mb', 'bestwebsoft' );
444 + else
445 + $memory_usage = __( 'N/A', 'bestwebsoft' );
446 + if ( is_callable( 'exif_read_data' ) )
447 + $exif_read_data = __( 'Yes', 'bestwebsoft' ) . " ( V" . substr( phpversion( 'exif' ), 0,4 ) . ")" ;
448 + else
449 + $exif_read_data = __( 'No', 'bestwebsoft' );
450 + if ( is_callable( 'iptcparse' ) )
451 + $iptcparse = __( 'Yes', 'bestwebsoft' );
452 + else
453 + $iptcparse = __( 'No', 'bestwebsoft' );
454 + if ( is_callable( 'xml_parser_create' ) )
455 + $xml_parser_create = __( 'Yes', 'bestwebsoft' );
456 + else
457 + $xml_parser_create = __( 'No', 'bestwebsoft' );
507 458
508 - $safe_mode = ( ini_get( 'safe_mode' ) ) ? __( 'On', 'bestwebsoft' ) : __( 'Off', 'bestwebsoft' );
509 - $allow_url_fopen = ( ini_get( 'allow_url_fopen' ) ) ? __( 'On', 'bestwebsoft' ) : __( 'Off', 'bestwebsoft' );
510 - $upload_max_filesize = ( ini_get( 'upload_max_filesize' ) )? ini_get( 'upload_max_filesize' ) : __( 'N/A', 'bestwebsoft' );
511 - $post_max_size = ( ini_get( 'post_max_size' ) ) ? ini_get( 'post_max_size' ) : __( 'N/A', 'bestwebsoft' );
512 - $max_execution_time = ( ini_get( 'max_execution_time' ) ) ? ini_get( 'max_execution_time' ) : __( 'N/A', 'bestwebsoft' );
513 - $memory_limit = ( ini_get( 'memory_limit' ) ) ? ini_get( 'memory_limit' ) : __( 'N/A', 'bestwebsoft' );
514 - $memory_usage = ( function_exists( 'memory_get_usage' ) ) ? round( memory_get_usage() / 1024 / 1024, 2 ) . __( ' Mb', 'bestwebsoft' ) : __( 'N/A', 'bestwebsoft' );
515 - $exif_read_data = ( is_callable( 'exif_read_data' ) ) ? __( 'Yes', 'bestwebsoft' ) . " ( V" . substr( phpversion( 'exif' ), 0,4 ) . ")" : __( 'No', 'bestwebsoft' );
516 - $iptcparse = ( is_callable( 'iptcparse' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
517 - $xml_parser_create = ( is_callable( 'xml_parser_create' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
518 - $theme = ( function_exists( 'wp_get_theme' ) ) ? wp_get_theme() : get_theme( get_current_theme() );
459 + if ( function_exists( 'wp_get_theme' ) )
460 + $theme = wp_get_theme();
461 + else
462 + $theme = get_theme( get_current_theme() );
519 463
520 464 if ( function_exists( 'is_multisite' ) ) {
521 - if ( is_multisite() )
465 + if ( is_multisite() ) {
522 466 $multisite = __( 'Yes', 'bestwebsoft' );
523 - else
467 + } else {
524 468 $multisite = __( 'No', 'bestwebsoft' );
469 + }
525 470 } else
526 471 $multisite = __( 'N/A', 'bestwebsoft' );
527 472
473 + $site_url = get_option( 'siteurl' );
474 + $home_url = get_option( 'home' );
475 + $db_version = get_option( 'db_version' );
528 476 $system_info = array(
529 477 'system_info' => '',
530 478 'active_plugins' => '',
531 479 'inactive_plugins' => ''
@@ -533,9 +481,9 @@
533 481 $system_info['system_info'] = array(
534 482 __( 'Operating System', 'bestwebsoft' ) => PHP_OS,
535 483 __( 'Server', 'bestwebsoft' ) => $_SERVER["SERVER_SOFTWARE"],
536 484 __( 'Memory usage', 'bestwebsoft' ) => $memory_usage,
537 - __( 'MYSQL Version', 'bestwebsoft' ) => $wpdb->get_var( "SELECT VERSION() AS version" ),
485 + __( 'MYSQL Version', 'bestwebsoft' ) => $sql_version,
538 486 __( 'SQL Mode', 'bestwebsoft' ) => $sql_mode,
539 487 __( 'PHP Version', 'bestwebsoft' ) => PHP_VERSION,
540 488 __( 'PHP Safe Mode', 'bestwebsoft' ) => $safe_mode,
541 489 __( 'PHP Allow URL fopen', 'bestwebsoft' ) => $allow_url_fopen,
@@ -545,35 +493,36 @@
545 493 __( 'PHP Max Script Execute Time', 'bestwebsoft' ) => $max_execution_time,
546 494 __( 'PHP Exif support', 'bestwebsoft' ) => $exif_read_data,
547 495 __( 'PHP IPTC support', 'bestwebsoft' ) => $iptcparse,
548 496 __( 'PHP XML support', 'bestwebsoft' ) => $xml_parser_create,
549 - __( 'Site URL', 'bestwebsoft' ) => get_option( 'siteurl' ),
550 - __( 'Home URL', 'bestwebsoft' ) => home_url(),
497 + __( 'Site URL', 'bestwebsoft' ) => $site_url,
498 + __( 'Home URL', 'bestwebsoft' ) => $home_url,
551 499 '$_SERVER[HTTP_HOST]' => $_SERVER['HTTP_HOST'],
552 500 '$_SERVER[SERVER_NAME]' => $_SERVER['SERVER_NAME'],
553 501 __( 'WordPress Version', 'bestwebsoft' ) => $wp_version,
554 - __( 'WordPress DB Version', 'bestwebsoft' ) => get_option( 'db_version' ),
502 + __( 'WordPress DB Version', 'bestwebsoft' ) => $db_version,
555 503 __( 'Multisite', 'bestwebsoft' ) => $multisite,
556 504 __( 'Active Theme', 'bestwebsoft' ) => $theme['Name'] . ' ' . $theme['Version']
557 505 );
558 506 foreach ( $all_plugins as $path => $plugin ) {
559 - if ( is_plugin_active( $path ) )
507 + if ( is_plugin_active( $path ) ) {
560 508 $system_info['active_plugins'][ $plugin['Name'] ] = $plugin['Version'];
561 - else
509 + } else {
562 510 $system_info['inactive_plugins'][ $plugin['Name'] ] = $plugin['Version'];
563 - }
511 + }
512 + }
564 513 }
565 514
566 515 if ( ( isset( $_REQUEST['bwsmn_form_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ) ) ||
567 516 ( isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ) ) ) {
568 517 if ( isset( $_REQUEST['bwsmn_form_email'] ) ) {
569 - $bwsmn_form_email = esc_html( trim( $_REQUEST['bwsmn_form_email'] ) );
570 - if ( $bwsmn_form_email == "" || ! is_email( $bwsmn_form_email ) ) {
518 + $bwsmn_form_email = trim( $_REQUEST['bwsmn_form_email'] );
519 + if ( $bwsmn_form_email == "" || !preg_match( "/^((?:[a-z0-9']+(?:[a-z0-9\-_\.']+)?@[a-z0-9]+(?:[a-z0-9\-\.]+)?\.[a-z]{2,5})[, ]*)+$/i", $bwsmn_form_email ) ) {
571 520 $error = __( "Please enter a valid email address.", 'bestwebsoft' );
572 521 } else {
573 522 $email = $bwsmn_form_email;
574 523 $bwsmn_form_email = '';
575 - $message = __( 'Email with system info is sent to ', 'bestwebsoft' ) . $email;
524 + $message = __( 'Email with system info is sent to ', 'bestwebsoft' ) . $email;
576 525 }
577 526 } else {
578 527 $email = '[email protected]';
579 528 $message = __( 'Thank you for contacting us.', 'bestwebsoft' );
@@ -582,248 +531,416 @@
582 531 if ( $error == '' ) {
583 532 $headers = 'MIME-Version: 1.0' . "\n";
584 533 $headers .= 'Content-type: text/html; charset=utf-8' . "\n";
585 534 $headers .= 'From: ' . get_option( 'admin_email' );
586 - $message_text = '<html><head><title>System Info From ' . home_url() . '</title></head><body>
535 + $message_text = '<html><head><title>System Info From ' . $home_url . '</title></head><body>
587 536 <h4>Environment</h4>
588 537 <table>';
589 538 foreach ( $system_info['system_info'] as $key => $value ) {
590 - $message_text .= '<tr><td>'. $key .'</td><td>'. $value .'</td></tr>';
539 + $message_text .= '<tr><td>'. $key .'</td><td>'. $value .'</td></tr>';
591 540 }
592 - $message_text .= '</table>';
593 - if ( ! empty( $system_info['active_plugins'] ) ) {
594 - $message_text .= '<h4>Active Plugins</h4>
595 - <table>';
596 - foreach ( $system_info['active_plugins'] as $key => $value ) {
597 - $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
598 - }
599 - $message_text .= '</table>';
541 + $message_text .= '</table>
542 + <h4>Active Plugins</h4>
543 + <table>';
544 + foreach ( $system_info['active_plugins'] as $key => $value ) {
545 + $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
600 546 }
601 - if ( ! empty( $system_info['inactive_plugins'] ) ) {
602 - $message_text .= '<h4>Inactive Plugins</h4>
603 - <table>';
604 - foreach ( $system_info['inactive_plugins'] as $key => $value ) {
605 - $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
606 - }
607 - $message_text .= '</table>';
547 + $message_text .= '</table>
548 + <h4>Inactive Plugins</h4>
549 + <table>';
550 + foreach ( $system_info['inactive_plugins'] as $key => $value ) {
551 + $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
608 552 }
609 - $message_text .= '</body></html>';
610 - $result = wp_mail( $email, 'System Info From ' . home_url(), $message_text, $headers );
553 + $message_text .= '</table></body></html>';
554 + $result = wp_mail( $email, 'System Info From ' . $home_url, $message_text, $headers );
611 555 if ( $result != true )
612 556 $error = __( "Sorry, email message could not be delivered.", 'bestwebsoft' );
613 557 }
614 - } ?>
558 + }
559 +
560 + ?>
615 561 <div class="wrap">
616 - <h1>
617 - <span class="bws_main title">BestWebSoft</span>
618 - <ul class="subsubsub bws_title_menu">
619 - <li><a href="<?php echo esc_url( 'http://support.bestwebsoft.com/home' ); ?>" target="_blank"><?php _e( 'Need help?', 'bestwebsoft' ); ?></a></li> |
620 - <li><a href="<?php echo esc_url( 'http://bestwebsoft.com/wp-login.php' ); ?>" target="_blank"><?php _e( 'Client area', 'bestwebsoft' ); ?></a></li>
621 - <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>
622 - </ul>
562 + <div class="icon32 icon32-bws" id="icon-options-general"></div>
563 + <h2>
564 + <span class="bws_main title">BestWebSoft</span>
565 + <?php if ( 'old' == $bstwbsftwppdtplgns_options['bws_menu_version'] && isset( $bstwbsftwppdtplgns_options['bws_menu_time'] ) && strtotime("-14 day") < $bstwbsftwppdtplgns_options['bws_menu_time'] ) { ?>
566 + <form method="post" action="admin.php?page=bws_plugins">
567 + <input type="hidden" name="bwsmn_form_submit_switch" value="submit" />
568 + <input type="submit" class="bws_switch_link" value="<?php _e( 'Switch to new interface', 'bestwebsoft' ) ?>" />
569 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_switch' ); ?>
570 + </form>
571 + </h2>
623 572 <div class="clear"></div>
624 - </h1>
625 - <h2 class="nav-tab-wrapper">
626 - <a class="nav-tab<?php if ( !isset( $_GET['action'] ) ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
627 - <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>
628 - </h2>
629 - <?php if ( ! isset( $_GET['action'] ) ) { ?>
630 - <ul class="subsubsub">
631 - <li><a <?php if ( !isset( $_GET['sub'] ) ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins"><?php _e( 'All', 'bestwebsoft' ); ?></a></li> |
632 - <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> |
633 - <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>
634 - </ul>
635 - <div class="clear"></div>
636 - <?php if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
637 - <h3 class="bws_installed"><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h3>
638 - <?php foreach ( $all_plugins as $key_plugin => $value_plugin ) {
639 - if ( isset( $bws_plugins_pro[ $key_plugin ] ) )
640 - $key_plugin = $bws_plugins_pro[ $key_plugin ];
573 + <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>
574 + <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
575 + <h3 style="color: blue;"><?php _e( 'Pro plugins', 'bestwebsoft' ); ?></h3>
576 + <?php if ( 0 < $count_activate_pro ) { ?>
577 + <div style="padding-left:15px;">
578 + <h4><?php _e( 'Activated plugins', 'bestwebsoft' ); ?></h4>
579 + <?php foreach ( $array_activate_pro as $activate_plugin ) { ?>
580 + <div style="float:left; width:200px;"><?php echo $activate_plugin["title"]; ?></div> <p><a href="<?php echo $activate_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $activate_plugin["url"]; ?>"><?php echo __( "Settings", 'bestwebsoft' ); ?></a></p>
581 + <?php } ?>
582 + </div>
583 + <?php } ?>
584 + <?php if ( 0 < $count_install_pro ) { ?>
585 + <div style="padding-left:15px;">
586 + <h4><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
587 + <?php foreach ( $array_install_pro as $install_plugin) { ?>
588 + <div style="float:left; width:200px;"><?php echo $install_plugin["title"]; ?></div> <p><a href="<?php echo $install_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a></p>
589 + <?php } ?>
590 + </div>
591 + <?php } ?>
592 + <?php if ( 0 < $count_recomend_pro ) { ?>
593 + <div style="padding-left:15px;">
594 + <h4><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
595 + <?php foreach ( $array_recomend_pro as $recomend_plugin ) { ?>
596 + <div style="float:left; width:200px;"><?php echo $recomend_plugin["title"]; ?></div> <p><a href="<?php echo $recomend_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $recomend_plugin["href"]; ?>" target="_blank"><?php echo __( "Purchase", 'bestwebsoft' ); ?></a></p>
597 + <?php } ?>
598 + </div>
599 + <?php } ?>
600 + <br />
601 + <h3 style="color: green"><?php _e( 'Free plugins', 'bestwebsoft' ); ?></h3>
602 + <?php if ( 0 < $count_activate ) { ?>
603 + <div style="padding-left:15px;">
604 + <h4><?php _e( 'Activated plugins', 'bestwebsoft' ); ?></h4>
605 + <?php foreach ( $array_activate as $activate_plugin ) { ?>
606 + <div style="float:left; width:200px;"><?php echo $activate_plugin["title"]; ?></div> <p><a href="<?php echo $activate_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $activate_plugin["url"]; ?>"><?php echo __( "Settings", 'bestwebsoft' ); ?></a></p>
607 + <?php } ?>
608 + </div>
609 + <?php } ?>
610 + <?php if ( 0 < $count_install ) { ?>
611 + <div style="padding-left:15px;">
612 + <h4><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
613 + <?php foreach ( $array_install as $install_plugin ) { ?>
614 + <div style="float:left; width:200px;"><?php echo $install_plugin["title"]; ?></div> <p><a href="<?php echo $install_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a></p>
615 + <?php } ?>
616 + </div>
617 + <?php } ?>
618 + <?php if ( 0 < $count_recomend ) { ?>
619 + <div style="padding-left:15px;">
620 + <h4><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
621 + <?php foreach ( $array_recomend as $recomend_plugin ) { ?>
622 + <div style="float:left; width:200px;"><?php echo $recomend_plugin["title"]; ?></div> <p><a href="<?php echo $recomend_plugin["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $recomend_plugin["href"]; ?>" target="_blank"><?php echo __( "Download", 'bestwebsoft' ); ?></a> <a class="install-now" href="<?php echo get_bloginfo( "url" ) . $recomend_plugin["slug"]; ?>" title="<?php esc_attr( sprintf( __( 'Install %s' ), $recomend_plugin["title"] ) ) ?>" target="_blank"><?php echo __( 'Install now from wordpress.org', 'bestwebsoft' ) ?></a></p>
623 + <?php } ?>
624 + </div>
625 + <?php } ?>
626 + <br />
627 + <?php if ( $wp_version >= '3.4' ) { ?>
628 + <h3 style="color: green"><?php _e( 'Free themes', 'bestwebsoft' ); ?></h3>
629 + <?php if ( 0 < $count_activate_theme ) { ?>
630 + <div style="padding-left:15px;">
631 + <h4><?php _e( 'Activated theme', 'bestwebsoft' ); ?></h4>
632 + <div style="float:left; width:200px;"><?php echo $array_activate_theme[0]["title"]; ?></div> <p><a href="<?php echo $array_activate_theme[0]["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo wp_customize_url(); ?>" title="<?php echo esc_attr( sprintf( __( 'Customize &#8220;%s&#8221;' ), $current_theme->display('Name') ) ); ?>"><?php _e( 'Customize' ); ?></a></p>
633 + </div>
634 + <?php } ?>
635 + <?php if ( 0 < $count_install_theme ) { ?>
636 + <div style="padding-left:15px;">
637 + <h4><?php _e( 'Installed themes', 'bestwebsoft' ); ?></h4>
638 + <?php foreach ( $array_install_theme as $install_theme ) { ?>
639 + <div style="float:left; width:200px;"><?php echo $install_theme["title"]; ?></div> <p><a href="<?php echo $install_theme["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a></p>
640 + <?php } ?>
641 + </div>
642 + <?php } ?>
643 + <?php if ( 0 < $count_recomend_theme ) { ?>
644 + <div style="padding-left:15px;">
645 + <h4><?php _e( 'Recommended themes', 'bestwebsoft' ); ?></h4>
646 + <?php foreach ( $array_recomend_theme as $recomend_theme ) { ?>
647 + <div style="float:left; width:200px;"><?php echo $recomend_theme["title"]; ?></div> <p><a href="<?php echo $recomend_theme["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $recomend_theme["href"]; ?>" target="_blank"><?php echo __( "Download", 'bestwebsoft' ); ?></a> <a class="install-now" href="<?php echo get_bloginfo( "url" ) . $recomend_theme["slug"]; ?>" title="<?php esc_attr( sprintf( __( 'Install %s' ), $recomend_theme["title"] ) ) ?>" target="_blank"><?php echo __( 'Install now from wordpress.org', 'bestwebsoft' ) ?></a></p>
648 + <?php } ?>
649 + </div>
650 + <?php } ?>
651 + <br />
652 + <?php } ?>
653 + <span style="color: rgb(136, 136, 136); font-size: 10px;"><?php _e( 'If you have any questions, please contact us via', 'bestwebsoft' ); ?> <a href="http://support.bestwebsoft.com">http://support.bestwebsoft.com</a></span>
654 + <div id="poststuff" class="bws_system_info_meta_box">
655 + <div class="postbox">
656 + <div class="handlediv" title="Click to toggle">
657 + <br>
658 + </div>
659 + <h3 class="hndle">
660 + <span><?php _e( 'System status', 'bestwebsoft' ); ?></span>
661 + </h3>
662 + <div class="inside">
663 + <table class="bws_system_info">
664 + <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
665 + <tbody>
666 + <?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
667 + <tr>
668 + <td scope="row"><?php echo $key; ?></td>
669 + <td scope="row"><?php echo $value; ?></td>
670 + </tr>
671 + <?php } ?>
672 + </tbody>
673 + </table>
674 + <table class="bws_system_info">
675 + <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
676 + <tbody>
677 + <?php foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
678 + <tr>
679 + <td scope="row"><?php echo $key; ?></td>
680 + <td scope="row"><?php echo $value; ?></td>
681 + </tr>
682 + <?php } ?>
683 + </tbody>
684 + </table>
685 + <table class="bws_system_info">
686 + <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
687 + <tbody>
688 + <?php
689 + if ( ! empty( $system_info['inactive_plugins'] ) ) {
690 + foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
691 + <tr>
692 + <td scope="row"><?php echo $key; ?></td>
693 + <td scope="row"><?php echo $value; ?></td>
694 + </tr>
695 + <?php }
696 + } ?>
697 + </tbody>
698 + </table>
699 + <div class="clear"></div>
700 + <form method="post" action="admin.php?page=bws_plugins">
701 + <p>
702 + <input type="hidden" name="bwsmn_form_submit" value="submit" />
703 + <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
704 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
705 + </p>
706 + </form>
707 + <form method="post" action="admin.php?page=bws_plugins">
708 + <p>
709 + <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
710 + <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
711 + <input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
712 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
713 + </p>
714 + </form>
715 + </div>
716 + </div>
717 + </div>
718 + <?php } else { ?>
719 + <form method="post" action="admin.php?page=bws_plugins">
720 + <input type="hidden" name="bwsmn_form_submit_switch" value="submit" />
721 + <input type="submit" class="bws_switch_link" value="<?php _e( 'Switch to old interface', 'bestwebsoft' ) ?>" />
722 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_switch' ); ?>
723 + </form>
724 + </h2>
725 + <div class="clear"></div>
726 + <h2 class="nav-tab-wrapper">
727 + <a class="nav-tab<?php if ( !isset( $_GET['action'] ) ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
728 + <?php if ( $wp_version >= '3.4' ) { ?>
729 + <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>
730 + <?php } ?>
731 + <a class="nav-tab<?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>
732 + </h2>
733 + <?php if ( !isset( $_GET['action'] ) ) { ?>
734 + <ul class="subsubsub">
735 + <li><a <?php if ( !isset( $_GET['sub'] ) ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins"><?php _e( 'All', 'bestwebsoft' ); ?></a></li> |
736 + <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> |
737 + <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>
738 + </ul>
739 + <div class="clear"></div>
740 + <?php if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
741 + <h4 class="bws_installed"><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
742 + <?php foreach ( $all_plugins as $key_plugin => $value_plugin ) {
641 743
642 - if ( isset( $bws_plugins[ $key_plugin ] ) ) {
643 - $key_plugin_explode = explode( '-plugin/', $key_plugin );
644 - if ( isset( $key_plugin_explode[1] ) )
645 - $icon = $key_plugin_explode[0];
646 - else {
647 - $key_plugin_explode = explode( '/', $key_plugin );
648 - $icon = $key_plugin_explode[0];
744 + if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) {
745 + $key_plugin_explode = explode( '-plugin-pro/', $key_plugin );
746 + if ( isset( $key_plugin_explode[1] ) )
747 + $icon = $key_plugin_explode[0];
748 + else {
749 + $key_plugin_explode = explode( '-pro/', $key_plugin );
750 + $icon = $key_plugin_explode[0];
751 + }
752 + } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) {
753 + $key_plugin_explode = explode( '-plugin/', $key_plugin );
754 + if ( isset( $key_plugin_explode[1] ) )
755 + $icon = $key_plugin_explode[0];
756 + else {
757 + $key_plugin_explode = explode( '/', $key_plugin );
758 + $icon = $key_plugin_explode[0];
759 + }
649 760 }
650 - }
651 761
652 - 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'] ) ) ) { ?>
653 - <div class="bws_product_box bws_exist_overlay">
654 - <div class="bws_product">
655 - <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
656 - <div class="bws_product_content">
657 - <div class="bws_product_icon">
658 - <div class="bws_product_icon_pro">PRO</div>
659 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
762 + if ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) { ?>
763 + <?php if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) { ?>
764 + <div class="bws_product_box bws_exist_overlay">
765 + <div class="bws_product">
766 + <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
767 + <div class="bws_product_content">
768 + <div class="bws_product_icon">
769 + <div class="bws_product_icon_pro"></div>
770 + <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
771 + </div>
772 + <div class="bws_product_description"><?php echo $value_plugin["Description"]; ?></div>
773 + </div>
774 + <div class="clear"></div>
660 775 </div>
661 - <div class="bws_product_description"><?php echo $value_plugin["Description"]; ?></div>
776 + <div class="bws_product_links">
777 + <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
778 + <span> | </span>
779 + <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
780 + </div>
662 781 </div>
663 - <div class="clear"></div>
664 - </div>
665 - <div class="bws_product_links">
666 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
667 - <?php if ( '' != $bws_plugins[ $key_plugin ]["pro_settings"] ) { ?>
668 - <span> | </span>
669 - <a href="<?php echo $bws_plugins[ $key_plugin ]["pro_settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
670 - <?php } ?>
671 - </div>
672 - </div>
673 - <?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) && ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) ) {
674 - if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
675 - <div class="bws_product_box bws_product_deactivated">
676 - <div class="bws_product">
677 - <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
678 - <div class="bws_product_content">
679 - <div class="bws_product_icon">
680 - <div class="bws_product_icon_pro">PRO</div>
681 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
782 + <?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
783 + <div class="bws_product_box bws_product_free">
784 + <div class="bws_product">
785 + <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
786 + <div class="bws_product_content">
787 + <div class="bws_product_icon">
788 + <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
789 + </div>
790 + <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
682 791 </div>
683 - <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
792 + <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
793 + <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["purchase"]; ?>" target="_blank">
794 + <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
795 + </a>
796 + <?php } else { ?>
797 + <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
798 + <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
799 + </a>
800 + <?php } ?>
801 + <div class="clear"></div>
802 + </div>
803 + <div class="bws_product_links">
804 + <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
805 + <span> | </span>
806 + <a href="<?php echo $bws_plugins[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
684 807 </div>
685 - <div class="clear"></div>
686 808 </div>
687 - <div class="bws_product_links">
688 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
689 - <span> | </span>
690 - <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
809 + <?php }
810 + } else {
811 + if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) { ?>
812 + <div class="bws_product_box bws_product_deactivated">
813 + <div class="bws_product">
814 + <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
815 + <div class="bws_product_content">
816 + <div class="bws_product_icon">
817 + <div class="bws_product_icon_pro"></div>
818 + <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
819 + </div>
820 + <div class="bws_product_description"><?php echo $bws_plugins_pro[ $key_plugin ]["description"]; ?></div>
821 + </div>
822 + <div class="clear"></div>
823 + </div>
824 + <div class="bws_product_links">
825 + <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
826 + <span> | </span>
827 + <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
828 + </div>
691 829 </div>
692 - </div>
693 - <?php } else { ?>
694 - <div class="bws_product_box bws_product_free">
695 - <div class="bws_product">
696 - <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
697 - <div class="bws_product_content">
698 - <div class="bws_product_icon">
699 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
830 + <?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
831 + <div class="bws_product_box bws_product_deactivated bws_product_free">
832 + <div class="bws_product">
833 + <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
834 + <div class="bws_product_content">
835 + <div class="bws_product_icon">
836 + <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
837 + </div>
838 + <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
700 839 </div>
701 - <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
840 + <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
841 + <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["purchase"]; ?>" target="_blank">
842 + <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
843 + </a>
844 + <?php } else { ?>
845 + <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
846 + <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
847 + </a>
848 + <?php } ?>
849 + <div class="clear"></div>
702 850 </div>
703 - <?php if ( isset( $bws_plugins[ $key_plugin ]["purchase"] ) ) { ?>
704 - <a class="bws_product_button" href="<?php echo $bws_plugins[ $key_plugin ]["purchase"]; ?>" target="_blank">
705 - <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
706 - </a>
707 - <?php } else { ?>
708 - <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
709 - <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
710 - </a>
711 - <?php } ?>
712 - <div class="clear"></div>
713 - </div>
714 - <div class="bws_product_links">
715 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
716 - <?php if ( '' != $bws_plugins[ $key_plugin ]["settings"] ) { ?>
851 + <div class="bws_product_links">
852 + <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
717 853 <span> | </span>
718 - <a href="<?php echo $bws_plugins[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
719 - <?php } ?>
854 + <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
855 + </div>
720 856 </div>
721 - </div>
722 - <?php }
723 - } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
724 - <div class="bws_product_box bws_product_deactivated bws_product_free">
725 - <div class="bws_product">
726 - <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
857 + <?php }
858 + }
859 + }
860 + } ?>
861 + <div class="clear"></div>
862 + <?php if ( ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
863 + <h4 class="bws_recommended"><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
864 + <?php foreach ( $recommend_plugins as $key_plugin => $value_plugin ) {
865 +
866 + if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) {
867 + $key_plugin_explode = explode( '-plugin-pro/', $key_plugin );
868 + if ( isset( $key_plugin_explode[1] ) )
869 + $icon = $key_plugin_explode[0];
870 + else {
871 + $key_plugin_explode = explode( '-pro/', $key_plugin );
872 + $icon = $key_plugin_explode[0];
873 + }
874 + } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) {
875 + $key_plugin_explode = explode( '-plugin/', $key_plugin );
876 + if ( isset( $key_plugin_explode[1] ) )
877 + $icon = $key_plugin_explode[0];
878 + else {
879 + $key_plugin_explode = explode( '/', $key_plugin );
880 + $icon = $key_plugin_explode[0];
881 + }
882 + }
883 + ?>
884 + <div class="bws_product_box">
885 + <div class="bws_product">
886 + <div class="bws_product_title"><?php echo $value_plugin["name"]; ?></div>
727 887 <div class="bws_product_content">
728 888 <div class="bws_product_icon">
889 + <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
890 + <div class="bws_product_icon_pro"></div>
891 + <?php } ?>
729 892 <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
730 893 </div>
731 894 <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
732 895 </div>
733 - <?php if ( isset( $bws_plugins[ $key_plugin ]["purchase"] ) ) { ?>
734 - <a class="bws_product_button" href="<?php echo $bws_plugins[ $key_plugin ]["purchase"]; ?>" target="_blank">
735 - <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
736 - </a>
896 + <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
897 + <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["link"]; ?>" target="_blank">
898 + <?php echo _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
899 + </a>
737 900 <?php } else { ?>
738 901 <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
739 - <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
902 + <strong><?php echo _e( 'DONATE', 'bestwebsoft' );?></strong>
740 903 </a>
741 904 <?php } ?>
742 - <div class="clear"></div>
743 905 </div>
744 - <div class="bws_product_links">
745 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
906 + <div class="clear"></div>
907 + <div class="bws_product_links">
908 + <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php echo __( "Learn more", 'bestwebsoft' ); ?></a>
746 909 <span> | </span>
747 - <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
910 + <a href="<?php echo $bws_plugins[ $key_plugin ]["wp_install"]; ?>" target="_blank"><?php echo __( "Install now", 'bestwebsoft' ); ?></a>
748 911 </div>
749 912 </div>
750 - <?php }
751 - }
752 - } ?>
753 - <div class="clear"></div>
754 - <?php if ( ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
755 - <h3 class="bws_recommended"><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h3>
756 - <?php foreach ( $recommend_plugins as $key_plugin => $value_plugin ) {
913 + <?php }
914 + } ?>
915 + <?php } elseif ( 'themes' == $_GET['action'] ) { ?>
916 + <div id="availablethemes">
917 + <?php
918 + global $tabs, $tab, $paged, $type, $theme_field_defaults;
919 + include( ABSPATH . 'wp-admin/includes/theme-install.php' );
920 + include( ABSPATH . 'wp-admin/includes/class-wp-themes-list-table.php' );
921 + include( ABSPATH . 'wp-admin/includes/class-wp-theme-install-list-table.php' );
757 922
758 - if ( isset( $bws_plugins[ $key_plugin ] ) ) {
759 - $key_plugin_explode = explode( '-plugin/', $key_plugin );
760 - if ( isset( $key_plugin_explode[1] ) )
761 - $icon = $key_plugin_explode[0];
762 - else {
763 - $key_plugin_explode = explode( '/', $key_plugin );
764 - $icon = $key_plugin_explode[0];
765 - }
766 - } ?>
767 - <div class="bws_product_box">
768 - <div class="bws_product">
769 - <div class="bws_product_title"><?php echo $value_plugin["name"]; ?></div>
770 - <div class="bws_product_content">
771 - <div class="bws_product_icon">
772 - <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) ) { ?>
773 - <div class="bws_product_icon_pro">PRO</div>
774 - <?php } ?>
775 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
776 - </div>
777 - <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
778 - </div>
779 - <?php if ( isset( $bws_plugins[ $key_plugin ]["pro_version"] ) ) { ?>
780 - <a class="bws_product_button" href="<?php echo $bws_plugins[ $key_plugin ]["purchase"]; ?>" target="_blank">
781 - <?php _e( 'Go', 'bestwebsoft' ); ?> <strong>PRO</strong>
782 - </a>
783 - <?php } else { ?>
784 - <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
785 - <strong><?php _e( 'DONATE', 'bestwebsoft' ); ?></strong>
786 - </a>
787 - <?php } ?>
788 - </div>
789 - <div class="clear"></div>
790 - <div class="bws_product_links">
791 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
792 - <span> | </span>
793 - <a href="<?php echo $bws_plugins[ $key_plugin ]["wp_install"]; ?>" target="_blank"><?php _e( "Install now", 'bestwebsoft' ); ?></a>
794 - </div>
795 - </div>
796 - <?php }
797 - } ?>
798 - <?php } elseif ( 'themes' == $_GET['action'] ) { ?>
799 - <div id="availablethemes">
800 - <?php global $tabs, $tab, $paged, $type, $theme_field_defaults;
801 - include( ABSPATH . 'wp-admin/includes/theme-install.php' );
802 - include( ABSPATH . 'wp-admin/includes/class-wp-themes-list-table.php' );
803 - include( ABSPATH . 'wp-admin/includes/class-wp-theme-install-list-table.php' );
923 + $theme_class = new WP_Theme_Install_List_Table();
924 + $paged = $theme_class->get_pagenum();
925 + $per_page = 36;
926 + $args = array( 'page' => $paged, 'per_page' => $per_page, 'fields' => $theme_field_defaults );
927 + $args['author'] = 'bestwebsoft';
928 + $args = apply_filters( 'install_themes_table_api_args_search', $args );
929 + $api = themes_api( 'query_themes', $args );
804 930
805 - $theme_class = new WP_Theme_Install_List_Table();
806 - $paged = $theme_class->get_pagenum();
807 - $per_page = 36;
808 - $args = array( 'page' => $paged, 'per_page' => $per_page, 'fields' => $theme_field_defaults );
809 - $args['author'] = 'bestwebsoft';
810 - $args = apply_filters( 'install_themes_table_api_args_search', $args );
811 - $api = themes_api( 'query_themes', $args );
931 + if ( is_wp_error( $api ) )
932 + wp_die( $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try again' ) . '</a>' );
812 933
813 - if ( is_wp_error( $api ) )
814 - wp_die( $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try again', 'bestwebsoft' ) . '</a>' );
815 -
816 - $theme_class->items = $api->themes;
817 - $theme_class->set_pagination_args( array(
818 - 'total_items' => $api->info['results'],
819 - 'per_page' => $per_page,
820 - 'infinite_scroll' => true,
821 - ) );
822 - $themes = $theme_class->items;
823 - if ( $wp_version < '3.9' ) {
824 - foreach ( $themes as $theme ) { ?>
825 - <div class="available-theme installable-theme"><?php
934 + $theme_class->items = $api->themes;
935 + $theme_class->set_pagination_args( array(
936 + 'total_items' => $api->info['results'],
937 + 'per_page' => $per_page,
938 + 'infinite_scroll' => true,
939 + ) );
940 + $themes = $theme_class->items;
941 + foreach ( $themes as $theme ) {
942 + ?><div class="available-theme installable-theme"><?php
826 943 global $themes_allowedtags;
827 944 if ( empty( $theme ) )
828 945 return;
829 946
@@ -828,9 +945,9 @@
828 945 return;
829 946
830 947 $name = wp_kses( $theme->name, $themes_allowedtags );
831 948 $author = wp_kses( $theme->author, $themes_allowedtags );
832 - $preview_title = sprintf( __( 'Preview &#8220;%s&#8221;', 'bestwebsoft' ), $name );
949 + $preview_title = sprintf( __('Preview &#8220;%s&#8221;'), $name );
833 950 $preview_url = add_query_arg( array(
834 951 'tab' => 'theme-information',
835 952 'theme' => $theme->slug,
836 953 ), self_admin_url( 'theme-install.php' ) );
@@ -859,167 +976,125 @@
859 976 }
860 977 switch ( $status ) {
861 978 default:
862 979 case 'install':
863 - $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>';
980 + $actions[] = '<a class="install-now" href="' . esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Install %s' ), $name ) ) . '">' . __( 'Install Now' ) . '</a>';
864 981 break;
865 982 case 'update_available':
866 - $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>';
983 + $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' ), $theme->version ) ) . '">' . __( 'Update' ) . '</a>';
867 984 break;
868 985 case 'newer_installed':
869 986 case 'latest_installed':
870 - $actions[] = '<span class="install-now" title="' . esc_attr__( 'This theme is already installed and is up to date' ) . '">' . _x( 'Installed', 'theme', 'bestwebsoft' ) . '</span>';
987 + $actions[] = '<span class="install-now" title="' . esc_attr__( 'This theme is already installed and is up to date' ) . '">' . _x( 'Installed', 'theme' ) . '</span>';
871 988 break;
872 989 }
873 - $actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s', 'bestwebsoft' ), $name ) ) . '">' . __( 'Preview', 'bestwebsoft' ) . '</a>';
874 - $actions = apply_filters( 'theme_install_actions', $actions, $theme ); ?>
990 + $actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s' ), $name ) ) . '">' . __( 'Preview' ) . '</a>';
991 + $actions = apply_filters( 'theme_install_actions', $actions, $theme );
992 + ?>
875 993 <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
876 994 <img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' />
877 995 </a>
878 996 <h3><?php echo $name; ?></h3>
879 - <div class="theme-author"><?php printf( __( 'By %s', 'bestwebsoft' ), $author ); ?></div>
997 + <div class="theme-author"><?php printf( __( 'By %s' ), $author ); ?></div>
880 998 <div class="action-links">
881 999 <ul>
882 1000 <?php foreach ( $actions as $action ): ?>
883 1001 <li><?php echo $action; ?></li>
884 1002 <?php endforeach; ?>
885 - <li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e( 'Details', 'bestwebsoft' ) ?></a></li>
1003 + <li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e('Details') ?></a></li>
886 1004 </ul>
887 1005 </div>
888 - <?php $theme_class->install_theme_info( $theme ); ?>
889 - </div>
1006 + <?php $theme_class->install_theme_info( $theme );
1007 + ?></div>
890 1008 <?php }
891 1009 // end foreach $theme_names
892 1010 $theme_class->theme_installer();
893 - } else { ?>
894 - <div class="theme-browser">
895 - <div class="themes">
896 - <?php foreach ( $themes as $key => $theme ) {
897 - $installed_theme = wp_get_theme( $theme->slug );
898 - if ( $installed_theme->exists() )
899 - $theme->installed = true;
900 - else
901 - $theme->installed = false;
902 - ?>
903 - <div class="theme" tabindex="0">
904 - <?php if ( $theme->screenshot_url ) { ?>
905 - <div class="theme-screenshot">
906 - <img src="<?php echo $theme->screenshot_url; ?>" alt="" />
907 - </div>
908 - <?php } else { ?>
909 - <div class="theme-screenshot blank"></div>
910 - <?php } ?>
911 - <div class="theme-author"><?php printf( __( 'By %s', 'bestwebsoft' ), $theme->author ); ?></div>
912 - <h3 class="theme-name"><?php echo $theme->name; ?></h3>
913 - <div class="theme-actions">
914 - <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>
915 - </div>
916 - <?php if ( $theme->installed ) { ?>
917 - <div class="theme-installed"><?php _e( 'Already Installed', 'bestwebsoft' ); ?></div>
918 - <?php } ?>
919 - </div>
920 - <?php } ?>
921 - <br class="clear" />
922 - </div>
923 - </div>
924 - <div class="theme-overlay"></div>
925 - <?php } ?>
926 - </div>
927 - <?php } elseif ( 'system_status' == $_GET['action'] ) { ?>
928 - <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>
929 - <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
930 - <h3><?php _e( 'System status', 'bestwebsoft' ); ?></h3>
931 - <div class="inside">
932 - <table class="bws_system_info">
933 - <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
934 - <tbody>
935 - <?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
936 - <tr>
937 - <td scope="row"><?php echo $key; ?></td>
938 - <td scope="row"><?php echo $value; ?></td>
939 - </tr>
940 - <?php } ?>
941 - </tbody>
942 - </table>
943 - <table class="bws_system_info">
944 - <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
945 - <tbody>
946 - <?php if ( ! empty( $system_info['active_plugins'] ) ) {
947 - foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
1011 + ?>
1012 + </div>
1013 + <?php } elseif ( 'system_status' == $_GET['action'] ) { ?>
1014 + <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>
1015 + <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
1016 + <h3><?php _e( 'System status', 'bestwebsoft' ); ?></h3>
1017 + <div class="inside">
1018 + <table class="bws_system_info">
1019 + <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
1020 + <tbody>
1021 + <?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
948 1022 <tr>
949 1023 <td scope="row"><?php echo $key; ?></td>
950 1024 <td scope="row"><?php echo $value; ?></td>
951 - </tr>
952 - <?php }
953 - } ?>
954 - </tbody>
955 - </table>
956 - <table class="bws_system_info">
957 - <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
958 - <tbody>
959 - <?php if ( ! empty( $system_info['inactive_plugins'] ) ) {
960 - foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
1025 + </tr>
1026 + <?php } ?>
1027 + </tbody>
1028 + </table>
1029 + <table class="bws_system_info">
1030 + <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
1031 + <tbody>
1032 + <?php foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
961 1033 <tr>
962 1034 <td scope="row"><?php echo $key; ?></td>
963 1035 <td scope="row"><?php echo $value; ?></td>
964 - </tr>
965 - <?php }
966 - } ?>
967 - </tbody>
968 - </table>
969 - <div class="clear"></div>
970 - <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
971 - <p>
972 - <input type="hidden" name="bwsmn_form_submit" value="submit" />
973 - <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
974 - <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
975 - </p>
976 - </form>
977 - <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
978 - <p>
979 - <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
980 - <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
981 - <input type="text" maxlength="250" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
982 - <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
983 - </p>
984 - </form>
985 - </div>
986 - <?php } ?>
1036 + </tr>
1037 + <?php } ?>
1038 + </tbody>
1039 + </table>
1040 + <table class="bws_system_info">
1041 + <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
1042 + <tbody>
1043 + <?php
1044 + if ( ! empty( $system_info['inactive_plugins'] ) ) {
1045 + foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
1046 + <tr>
1047 + <td scope="row"><?php echo $key; ?></td>
1048 + <td scope="row"><?php echo $value; ?></td>
1049 + </tr>
1050 + <?php }
1051 + } ?>
1052 + </tbody>
1053 + </table>
1054 + <div class="clear"></div>
1055 + <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
1056 + <p>
1057 + <input type="hidden" name="bwsmn_form_submit" value="submit" />
1058 + <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
1059 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
1060 + </p>
1061 + </form>
1062 + <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
1063 + <p>
1064 + <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
1065 + <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
1066 + <input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
1067 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
1068 + </p>
1069 + </form>
1070 + </div>
1071 + <?php }
1072 + } ?>
987 1073 </div>
988 1074 <?php }
1075 +}
1076 +
1077 +if ( ! function_exists ( 'bws_plugin_init' ) ) {
1078 + function bws_plugin_init() {
1079 + // Internationalization, first(!)
1080 + load_plugin_textdomain( 'bestwebsoft', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
1081 + }
989 1082 }
990 1083
991 -if ( ! function_exists( 'bws_get_banner_array' ) ) {
992 - function bws_get_banner_array() {
993 - global $bstwbsftwppdtplgns_banner_array;
994 - $bstwbsftwppdtplgns_banner_array = array(
995 - array( 'gglcptch_hide_banner_on_plugin_page', 'google-captcha/google-captcha.php', '1.18' ),
996 - array( 'mltlngg_hide_banner_on_plugin_page', 'multilanguage/multilanguage.php', '1.1.1' ),
997 - array( 'adsns_hide_banner_on_plugin_page', 'adsense-plugin/adsense-plugin.php', '1.36' ),
998 - array( 'vstrsnln_hide_banner_on_plugin_page', 'visitors-online/visitors-online.php', '0.2' ),
999 - array( 'cstmsrch_hide_banner_on_plugin_page', 'custom-search-plugin/custom-search-plugin.php', '1.28' ),
1000 - array( 'prtfl_hide_banner_on_plugin_page', 'portfolio/portfolio.php', '2.33' ),
1001 - array( 'rlt_hide_banner_on_plugin_page', 'realty/realty.php', '1.0.0' ),
1002 - array( 'prmbr_hide_banner_on_plugin_page', 'promobar/promobar.php', '1.0.0' ),
1003 - array( 'gglnltcs_hide_banner_on_plugin_page', 'bws-google-analytics/bws-google-analytics.php', '1.6.2' ),
1004 - array( 'htccss_hide_banner_on_plugin_page', 'htaccess/htaccess.php', '1.6.3' ),
1005 - array( 'sbscrbr_hide_banner_on_plugin_page', 'subscriber/subscriber.php', '1.1.8' ),
1006 - array( 'lmtttmpts_hide_banner_on_plugin_page', 'limit-attempts/limit-attempts.php', '1.0.2' ),
1007 - array( 'sndr_hide_banner_on_plugin_page', 'sender/sender.php', '0.5' ),
1008 - array( 'srrl_hide_banner_on_plugin_page', 'user-role/user-role.php', '1.4' ),
1009 - array( 'pdtr_hide_banner_on_plugin_page', 'updater/updater.php', '1.12' ),
1010 - array( 'cntctfrmtdb_hide_banner_on_plugin_page', 'contact-form-to-db/contact_form_to_db.php', '1.2' ),
1011 - array( 'cntctfrmmlt_hide_banner_on_plugin_page', 'contact-form-multi/contact-form-multi.php', '1.0.7' ),
1012 - array( 'gglmps_hide_banner_on_plugin_page', 'bws-google-maps/bws-google-maps.php', '1.2' ),
1013 - array( 'fcbkbttn_hide_banner_on_plugin_page', 'facebook-button-plugin/facebook-button-plugin.php', '2.29' ),
1014 - array( 'twttr_hide_banner_on_plugin_page', 'twitter-plugin/twitter.php', '2.34' ),
1015 - array( 'pdfprnt_hide_banner_on_plugin_page', 'pdf-print/pdf-print.php', '1.7.1' ),
1016 - array( 'gglplsn_hide_banner_on_plugin_page', 'google-one/google-plus-one.php', '1.1.4' ),
1017 - array( 'gglstmp_hide_banner_on_plugin_page', 'google-sitemap-plugin/google-sitemap-plugin.php', '2.8.4' ),
1018 - array( 'cntctfrmpr_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-pro/contact_form_pro.php', '1.14' ),
1019 - array( 'cntctfrm_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.47' ),
1020 - array( 'cptch_hide_banner_on_plugin_page', 'captcha/captcha.php', '3.8.4' ),
1021 - array( 'gllr_hide_banner_on_plugin_page', 'gallery-plugin/gallery-plugin.php', '3.9.1' ),
1022 - array( 'cntctfrm_for_ctfrmtdb_hide_banner_on_plugin_page', 'contact-form-plugin/contact_form.php', '3.62' )
1023 - );
1084 +if ( ! function_exists ( 'bws_admin_head' ) ) {
1085 + function bws_admin_head() {
1086 + global $wp_version;
1087 + if ( isset( $_GET['page'] ) && $_GET['page'] == "bws_plugins" ) {
1088 + wp_enqueue_style( 'bws_menu_style', plugins_url( 'css/style.css', __FILE__ ) );
1089 + wp_enqueue_script( 'bws_menu_script', plugins_url( 'js/bws_menu.js' , __FILE__ ) );
1090 + if ( $wp_version >= '3.8' )
1091 + wp_enqueue_script( 'theme-install' );
1092 + elseif ( $wp_version >= '3.4' )
1093 + wp_enqueue_script( 'theme' );
1094 + }
1024 1095 }
1025 -}
1096 +}
1097 +
1098 +add_action( 'init', 'bws_plugin_init' );
1099 +add_action( 'admin_enqueue_scripts', 'bws_admin_head' );
1100 +?>