PluginProbe
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin / 1.5
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin v1.5
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 +292 -935 1.7.5 → 1.5 View file →
@@ -1,523 +1,194 @@
1 1 <?php
2 2 /*
3 -* Function for displaying BestWebSoft menu
4 -* Version: 1.3.7
3 + Function for displaying BestWebSoft menu
5 4 */
6 -
7 5 if ( ! function_exists( 'bws_add_menu_render' ) ) {
8 6 function bws_add_menu_render() {
9 - global $wpdb, $wpmu, $wp_version, $bws_plugin_info;
10 - $error = $message = $bwsmn_form_email = '';
11 - $bws_donate_link = 'https://www.2checkout.com/checkout/purchase?sid=1430388&quantity=1&product_id=94';
12 -
13 - if ( ! function_exists( 'is_plugin_active_for_network' ) )
14 - require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
15 -
16 - $bws_plugins = array(
17 - 'captcha/captcha.php' => array(
18 - 'name' => 'Captcha',
19 - 'description' => 'Plugin intended to prove that the visitor is a human being and not a spam robot.',
20 - 'link' => 'http://bestwebsoft.com/plugin/captcha-plugin/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
21 - 'download' => 'http://bestwebsoft.com/plugin/captcha-plugin/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
22 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Captcha+bestwebsoft&plugin-search-input=Search+Plugins',
23 - 'settings' => 'admin.php?page=captcha.php',
24 - 'pro_version' => 'captcha-pro/captcha_pro.php'
25 - ),
26 - 'contact-form-plugin/contact_form.php' => array(
27 - 'name' => 'Contact form',
28 - 'description' => 'Add Contact Form to your WordPress website.',
29 - 'link' => 'http://bestwebsoft.com/plugin/contact-form/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
30 - 'download' => 'http://bestwebsoft.com/plugin/contact-form/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
31 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Contact+Form+bestwebsoft&plugin-search-input=Search+Plugins',
32 - 'settings' => 'admin.php?page=contact_form.php',
33 - 'pro_version' => 'contact-form-pro/contact_form_pro.php'
34 - ),
35 - 'facebook-button-plugin/facebook-button-plugin.php' => array(
36 - 'name' => 'Facebook Like Button',
37 - 'description' => 'Allows you to add the Follow and Like buttons the easiest way.',
38 - '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,
39 - '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',
40 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Facebook+Like+Button+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
41 - 'settings' => 'admin.php?page=facebook-button-plugin.php',
42 - 'pro_version' => 'facebook-button-pro/facebook-button-pro.php'
43 - ),
44 - 'twitter-plugin/twitter.php' => array(
45 - 'name' => 'Twitter',
46 - 'description' => 'Allows you to add the Twitter "Follow" and "Like" buttons the easiest way.',
47 - 'link' => 'http://bestwebsoft.com/plugin/twitter-plugin/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
48 - 'download' => 'http://bestwebsoft.com/plugin/twitter-plugin/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
49 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Twitter+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
50 - 'settings' => 'admin.php?page=twitter.php',
51 - 'pro_version' => 'twitter-pro/twitter-pro.php'
52 - ),
53 - 'portfolio/portfolio.php' => array(
54 - 'name' => 'Portfolio',
55 - 'description' => 'Allows you to create a page with the information about your past projects.',
56 - 'link' => 'http://bestwebsoft.com/plugin/portfolio-plugin/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
57 - 'download' => 'http://bestwebsoft.com/plugin/portfolio-plugin/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
58 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Portfolio+bestwebsoft&plugin-search-input=Search+Plugins',
59 - 'settings' => 'admin.php?page=portfolio.php'
60 - ),
61 - 'gallery-plugin/gallery-plugin.php' => array(
62 - 'name' => 'Gallery',
63 - 'description' => 'Allows you to implement a Gallery page into your website.',
64 - 'link' => 'http://bestwebsoft.com/plugin/gallery-plugin/?k=2da21c0a64eec7ebf16337fa134c5f78&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
65 - 'download' => 'http://bestwebsoft.com/plugin/gallery-plugin/?k=2da21c0a64eec7ebf16337fa134c5f78&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
66 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Gallery+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
67 - 'settings' => 'admin.php?page=gallery-plugin.php',
68 - 'pro_version' => 'gallery-plugin-pro/gallery-plugin-pro.php'
69 - ),
70 - 'adsense-plugin/adsense-plugin.php'=> array(
71 - 'name' => 'Google AdSense',
72 - 'description' => 'Allows Google AdSense implementation to your website.',
73 - 'link' => 'http://bestwebsoft.com/plugin/google-adsense-plugin/?k=60e3979921e354feb0347e88e7d7b73d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
74 - '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',
75 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Adsense+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
76 - 'settings' => 'admin.php?page=adsense-plugin.php'
77 - ),
78 - 'custom-search-plugin/custom-search-plugin.php'=> array(
79 - 'name' => 'Custom Search',
80 - 'description' => 'Allows to extend your website search functionality by adding a custom post type.',
81 - 'link' => 'http://bestwebsoft.com/plugin/custom-search-plugin/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
82 - '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',
83 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Search+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
84 - 'settings' => 'admin.php?page=custom_search.php'
85 - ),
86 - 'quotes-and-tips/quotes-and-tips.php'=> array(
87 - 'name' => 'Quotes and Tips',
88 - 'description' => 'Allows you to implement quotes & tips block into your web site.',
89 - 'link' => 'http://bestwebsoft.com/plugin/quotes-and-tips/?k=5738a4e85a798c4a5162240c6515098d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
90 - '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',
91 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Quotes+and+Tips+bestwebsoft&plugin-search-input=Search+Plugins',
92 - 'settings' => 'admin.php?page=quotes-and-tips.php'
93 - ),
94 - 'google-sitemap-plugin/google-sitemap-plugin.php'=> array(
95 - 'name' => 'Google Sitemap',
96 - 'description' => 'Allows you to add sitemap file to Google Webmaster Tools.',
97 - 'link' => 'http://bestwebsoft.com/plugin/google-sitemap-plugin/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
98 - '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',
99 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+sitemap+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
100 - 'settings' => 'admin.php?page=google-sitemap-plugin.php',
101 - 'pro_version' => 'google-sitemap-pro/google-sitemap-pro.php'
102 - ),
103 - 'updater/updater.php'=> array(
104 - 'name' => 'Updater',
105 - 'description' => 'Allows you to update plugins and WP core.',
106 - 'link' => 'http://bestwebsoft.com/plugin/updater-plugin/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
107 - 'download' => 'http://bestwebsoft.com/plugin/updater-plugin/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
108 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=updater+bestwebsoft&plugin-search-input=Search+Plugins',
109 - 'settings' => 'admin.php?page=updater-options',
110 - 'pro_version' => 'updater-pro/updater_pro.php'
111 - ),
112 - 'custom-fields-search/custom-fields-search.php'=> array(
113 - 'name' => 'Custom Fields Search',
114 - 'description' => 'Allows you to add website search any existing custom fields.',
115 - 'link' => 'http://bestwebsoft.com/plugin/custom-fields-search/?k=f3f8285bb069250c42c6ffac95ed3284&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
116 - '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',
117 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Fields+Search+bestwebsoft&plugin-search-input=Search+Plugins',
118 - 'settings' => 'admin.php?page=custom_fields_search.php'
119 - ),
120 - 'google-one/google-plus-one.php' => array(
121 - 'name' => 'Google +1',
122 - '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.',
123 - 'link' => 'http://bestwebsoft.com/plugin/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
124 - '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',
125 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins',
126 - 'settings' => 'admin.php?page=google-plus-one.php',
127 - 'pro_version' => 'google-one-pro/google-plus-one-pro.php'
128 - ),
129 - 'relevant/related-posts-plugin.php' => array(
130 - 'name' => 'Relevant - Related Posts',
131 - 'description' => 'Allows you to display related posts with similar words in category, tags, title or by adding special meta key for posts.',
132 - 'link' => 'http://bestwebsoft.com/plugin/related-posts-plugin/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
133 - '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',
134 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Related+Posts+Plugin+Bestwebsoft&plugin-search-input=Search+Plugins',
135 - 'settings' => 'admin.php?page=related-posts-plugin.php'
136 - ),
137 - 'contact-form-to-db/contact_form_to_db.php' => array(
138 - 'name' => 'Contact Form To DB',
139 - 'description' => 'Allows you to manage the messages that have been sent from your site.',
140 - '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,
141 - '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',
142 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Contact+Form+to+DB+bestwebsoft&plugin-search-input=Search+Plugins',
143 - 'settings' => 'admin.php?page=cntctfrmtdb_settings',
144 - 'pro_version' => 'contact-form-to-db-pro/contact_form_to_db_pro.php'
145 - ),
146 - 'pdf-print/pdf-print.php' => array(
147 - 'name' => 'PDF & Print',
148 - 'description' => 'Allows you to create PDF and Print page with adding appropriate buttons to the content.',
149 - 'link' => 'http://bestwebsoft.com/plugin/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
150 - 'download' => 'http://bestwebsoft.com/plugin/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
151 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=PDF+Print+Bestwebsoft&plugin-search-input=Search+Plugins',
152 - 'settings' => 'admin.php?page=pdf-print.php',
153 - 'pro_version' => 'pdf-print-pro/pdf-print-pro.php'
154 - ),
155 - 'donate-button/donate.php' => array(
156 - 'name' => 'Donate',
157 - 'description' => 'Makes it possible to place donation buttons of various payment systems on your web page.',
158 - 'link' => 'http://bestwebsoft.com/plugin/donate/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
159 - 'download' => 'http://bestwebsoft.com/plugin/donate/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
160 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Donate+Bestwebsoft&plugin-search-input=Search+Plugins',
161 - 'settings' => 'admin.php?page=donate.php'
162 - ),
163 - 'post-to-csv/post-to-csv.php' => array(
164 - 'name' => 'Post To CSV',
165 - 'description' => 'The plugin allows to export posts of any types to a csv file.',
166 - 'link' => 'http://bestwebsoft.com/plugin/post-to-csv/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
167 - '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',
168 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Post+To+CSV+Bestwebsoft&plugin-search-input=Search+Plugins',
169 - 'settings' => 'admin.php?page=post-to-csv.php'
170 - ),
171 - 'google-shortlink/google-shortlink.php' => array(
172 - 'name' => 'Google Shortlink',
173 - 'description' => 'Allows you to get short links from goo.gl servise without leaving your site.',
174 - 'link' => 'http://bestwebsoft.com/plugin/google-shortlink/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
175 - 'download' => 'http://bestwebsoft.com/plugin/google-shortlink/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
176 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Google+Shortlink+Bestwebsoft&plugin-search-input=Search+Plugins',
177 - 'settings' => 'admin.php?page=gglshrtlnk_options'
178 - ),
179 - 'htaccess/htaccess.php' => array(
180 - 'name' => 'Htaccess',
181 - 'description' => 'Allows controlling access to your website using the directives Allow and Deny.',
182 - 'link' => 'http://bestwebsoft.com/plugin/htaccess/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
183 - 'download' => 'http://bestwebsoft.com/plugin/htaccess/?k=2b865fcd56a935d22c5c4f1bba52ed46&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=Htaccess+Bestwebsoft&plugin-search-input=Search+Plugins',
185 - 'settings' => 'admin.php?page=htaccess.php'
186 - ),
187 - 'google-captcha/google-captcha.php' => array(
188 - 'name' => 'Google Captcha (reCAPTCHA)',
189 - 'description' => 'Plugin intended to prove that the visitor is a human being and not a spam robot.',
190 - 'link' => 'http://bestwebsoft.com/plugin/google-captcha/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
191 - 'download' => 'http://bestwebsoft.com/plugin/google-captcha/?k=7b59fbe542acf950b29f3e020d5ad735&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=Google+Captcha+Bestwebsoft&plugin-search-input=Search+Plugins',
193 - 'settings' => 'admin.php?page=google-captcha.php'
194 - ),
195 - 'sender/sender.php' => array(
196 - 'name' => 'Sender',
197 - 'description' => 'You can send mails to all users or to certain categories of users.',
198 - 'link' => 'http://bestwebsoft.com/plugin/sender/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
199 - 'download' => 'http://bestwebsoft.com/plugin/sender/?k=89c297d14ba85a8417a0f2fc05e089c7&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=Sender+Bestwebsoft&plugin-search-input=Search+Plugins',
201 - 'settings' => 'admin.php?page=sndr_settings',
202 - 'pro_version' => 'sender-pro/sender-pro.php'
203 - ),
204 - 'subscriber/subscriber.php' => array(
205 - 'name' => 'Subscriber',
206 - 'description' => 'This plugin allows you to subscribe users for newsletters from your website.',
207 - 'link' => 'http://bestwebsoft.com/plugin/subscriber/?k=a4ecc1b7800bae7329fbe8b4b04e9c88&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
208 - 'download' => 'http://bestwebsoft.com/plugin/subscriber/?k=a4ecc1b7800bae7329fbe8b4b04e9c88&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
209 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Subscriber+Bestwebsoft&plugin-search-input=Search+Plugins',
210 - 'settings' => 'admin.php?page=sbscrbr_settings_page'
211 - ),
212 - 'contact-form-multi/contact-form-multi.php' => array(
213 - 'name' => 'Contact Form Multi',
214 - 'description' => 'This plugin allows you to subscribe users for newsletters from your website.',
215 - 'link' => 'http://bestwebsoft.com/plugin/contact-form-multi/?k=83cdd9e72a9f4061122ad28a67293c72&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
216 - 'download' => 'http://bestwebsoft.com/plugin/contact-form-multi/?k=83cdd9e72a9f4061122ad28a67293c72&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
217 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Contact+Form+Multi+Bestwebsoft&plugin-search-input=Search+Plugins',
218 - 'settings' => '',
219 - 'pro_version' => 'contact-form-multi-pro/contact-form-multi-pro.php'
220 - ),
221 - 'bws-google-maps/bws-google-maps.php' => array(
222 - 'name' => 'BestWebSoft Google Maps',
223 - 'description' => 'Easy to set up and insert Google Maps to your website.',
224 - 'link' => 'http://bestwebsoft.com/plugin/bws-google-maps/?k=d8fac412d7359ebaa4ff53b46572f9f7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
225 - 'download' => 'http://bestwebsoft.com/plugin/bws-google-maps/?k=d8fac412d7359ebaa4ff53b46572f9f7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
226 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=BestWebSoft+Google+Maps&plugin-search-input=Search+Plugins',
227 - 'settings' => 'admin.php?page=bws-google-maps.php',
228 - 'pro_version' => 'bws-google-maps-pro/bws-google-maps-pro.php'
229 - ),
230 - 'bws-google-analytics/bws-google-analytics.php' => array(
231 - 'name' => 'BestWebSoft Google Analytics',
232 - 'description' => 'Allows you to retrieve basic stats from Google Analytics account and add the tracking code to your blog.',
233 - 'link' => 'http://bestwebsoft.com/plugin/bws-google-analytics/?k=261c74cad753fb279cdf5a5db63fbd43&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
234 - 'download' => 'http://bestwebsoft.com/plugin/bws-google-analytics/?k=261c74cad753fb279cdf5a5db63fbd43&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
235 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=BestWebSoft+Google+Analytics&plugin-search-input=Search+Plugins',
236 - 'settings' => 'admin.php?page=bws-google-analytics.php'
237 - ),
238 - 'db-manager/db-manager.php' => array(
239 - 'name' => 'DB manager',
240 - 'description' => 'Allows you to download the latest version of PhpMyadmin and Dumper and manage your site.',
241 - 'link' => 'http://bestwebsoft.com/plugin/db-manager/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
242 - 'download' => 'http://bestwebsoft.com/plugin/db-manager/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
243 - 'wp_install' => 'http://bestwebsoft.com/plugin/db-manager/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
244 - 'settings' => 'admin.php?page=db-manager.php'
245 - ),
246 - 'user-role/user-role.php' => array(
247 - 'name' => 'User Role',
248 - 'description' => 'Allows to change wordpress user role capabilities.',
249 - 'link' => 'http://bestwebsoft.com/plugin/user-role/?k=dfe2244835c6fbf601523964b3f34ccc&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
250 - 'download' => 'http://bestwebsoft.com/plugin/user-role/?k=dfe2244835c6fbf601523964b3f34ccc&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
251 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=User+Role+BestWebSoft&plugin-search-input=Search+Plugins',
252 - 'settings' => 'admin.php?page=user-role.php',
253 - 'pro_version' => 'user-role-pro/user-role-pro.php'
254 - ),
255 - 'email-queue/email-queue.php' => array(
256 - 'name' => 'Email Queue',
257 - 'description' => 'Allows to manage email massages sent by BestWebSoft plugins.',
258 - 'link' => 'http://bestwebsoft.com/plugin/email-queue/?k=e345e1b6623f0dca119bc2d9433b130b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
259 - 'download' => 'http://bestwebsoft.com/plugin/email-queue/?k=e345e1b6623f0dca119bc2d9433b130b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
260 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Email+Queue+BestWebSoft&plugin-search-input=Search+Plugins',
261 - 'settings' => 'admin.php?page=mlq_settings'
262 - ),
263 - 'limit-attempts/limit-attempts.php' => array(
264 - 'name' => 'Limit Attempts',
265 - 'description' => 'Allows you to limit rate of login attempts by the ip, and create whitelist and blacklist.',
266 - 'link' => 'http://bestwebsoft.com/plugin/limit-attempts/?k=b14e1697ee4d008abcd4bd34d492573a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
267 - 'download' => 'http://bestwebsoft.com/plugin/limit-attempts/?k=b14e1697ee4d008abcd4bd34d492573a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
268 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Limit+Attempts+BestWebSoft&plugin-search-input=Search+Plugins',
269 - 'settings' => 'admin.php?page=limit-attempts.php',
270 - 'pro_version' => 'limit-attempts-pro/limit-attempts-pro.php'
271 - ),
272 - 'job-board/job-board.php' => array(
273 - 'name' => 'Job board',
274 - 'description' => 'Allows to create a job-board page on your site.',
275 - 'link' => 'http://bestwebsoft.com/plugin/job-board/?k=b0c504c9ce6edd6692e04222af3fed6f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
276 - 'download' => 'http://bestwebsoft.com/plugin/job-board/?k=b0c504c9ce6edd6692e04222af3fed6f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
277 - 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Job+board+BestWebSoft&plugin-search-input=Search+Plugins',
278 - 'settings' => 'admin.php?page=job-board.php'
279 - )
280 - );
281 - $bws_plugins_pro = array(
282 - 'gallery-plugin-pro/gallery-plugin-pro.php' => array(
283 - 'name' => 'Gallery Pro',
284 - 'description' => 'Allows you to implement as many galleries as you want into your website.',
285 - 'link' => 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
286 - 'purchase' => 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
287 - 'settings' => 'admin.php?page=gallery-plugin-pro.php'
288 - ),
289 - 'contact-form-pro/contact_form_pro.php' => array(
290 - 'name' => 'Contact form Pro',
291 - 'description' => 'Allows you to implement a feedback form to a web-page or a post in no time.',
292 - 'link' => 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
293 - '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',
294 - 'settings' => 'admin.php?page=contact_form_pro.php'
295 - ),
296 - 'captcha-pro/captcha_pro.php' => array(
297 - 'name' => 'Captcha Pro',
298 - 'description' => 'Allows you to implement a super security captcha form into web forms.',
299 - 'link' => 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
300 - 'purchase' => 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
301 - 'settings' => 'admin.php?page=captcha_pro.php'
302 - ),
303 - 'updater-pro/updater_pro.php' => array(
304 - 'name' => 'Updater Pro',
305 - 'description' => 'Allows you to update plugins and WordPress core on your website.',
306 - 'link' => 'http://bestwebsoft.com/plugin/updater-pro/?k=cf633acbefbdff78545347fe08a3aecb&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
307 - 'purchase' => 'http://bestwebsoft.com/plugin/updater-pro?k=cf633acbefbdff78545347fe08a3aecb&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
308 - 'settings' => 'admin.php?page=updater-pro-options'
309 - ),
310 - 'contact-form-to-db-pro/contact_form_to_db_pro.php' => array(
311 - 'name' => 'Contact form to DB Pro',
312 - 'description' => 'The plugin provides a unique opportunity to manage messages sent from your site via the contact form.',
313 - '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,
314 - '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',
315 - 'settings' => 'admin.php?page=cntctfrmtdbpr_settings'
316 - ),
317 - 'google-sitemap-pro/google-sitemap-pro.php'=> array(
318 - 'name' => 'Google Sitemap Pro',
319 - 'description' => 'Allows you to add sitemap file to Google Webmaster Tools.',
320 - 'link' => 'http://bestwebsoft.com/plugin/google-sitemap-pro/?k=7ea384a5cc36cb4c22741caa20dcd56d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
321 - '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',
322 - 'settings' => 'admin.php?page=google-sitemap-pro.php'
323 - ),
324 - 'twitter-pro/twitter-pro.php' => array(
325 - 'name' => 'Twitter Pro',
326 - 'description' => 'Allows you to add the Twitter "Follow" and "Like" buttons the easiest way.',
327 - 'link' => 'http://bestwebsoft.com/plugin/twitter-pro/?k=63ecbf0cc9cebf060b5a3c9362299700&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
328 - 'purchase' => 'http://bestwebsoft.com/plugin/twitter-pro?k=63ecbf0cc9cebf060b5a3c9362299700&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
329 - 'settings' => 'admin.php?page=twitter-pro.php'
330 - ),
331 - 'google-one-pro/google-plus-one-pro.php' => array(
332 - 'name' => 'Google +1 Pro',
333 - '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.',
334 - '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,
335 - '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',
336 - 'settings' => 'admin.php?page=google-plus-one-pro.php'
337 - ),
338 - 'facebook-button-pro/facebook-button-pro.php' => array(
339 - 'name' => 'Facebook Like Button Pro',
340 - 'description' => 'Allows you to add the Follow and Like buttons the easiest way.',
341 - '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,
342 - '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',
343 - 'settings' => 'admin.php?page=facebook-button-pro.php'
344 - ),
345 - 'pdf-print-pro/pdf-print-pro.php' => array(
346 - 'name' => 'PDF & Print Pro',
347 - 'description' => 'Allows you to create PDF and Print page with adding appropriate buttons to the content.',
348 - 'link' => 'http://bestwebsoft.com/plugin/pdf-print-pro/?k=fd43a0e659ddc170a9060027cbfdcc3a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
349 - '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',
350 - 'settings' => 'admin.php?page=pdf-print-pro.php'
351 - ),
352 - 'bws-google-maps-pro/bws-google-maps-pro.php' => array(
353 - 'name' => 'BestWebSoft Google Maps Pro',
354 - 'description' => 'Easy to set up and insert Google Maps to your website.',
355 - 'link' => 'http://bestwebsoft.com/plugin/bws-google-maps-pro/?k=117c3f9fc17f2c83ef430a8a9dc06f56&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
356 - 'purchase' => 'http://bestwebsoft.com/plugin/bws-google-maps-pro/?k=117c3f9fc17f2c83ef430a8a9dc06f56&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
357 - 'settings' => 'admin.php?page=bws-google-maps-pro.php'
358 - ),
359 - 'contact-form-multi-pro/contact-form-multi-pro.php' => array(
360 - 'name' => 'Contact Form Multi Pro',
361 - 'description' => 'This plugin is an exclusive add-on to the Contact Form Pro. Allows to create multiple contact forms.',
362 - 'link' => 'http://bestwebsoft.com/plugin/contact-form-multi-pro/?k=fde3a18581c143654f060c398b07e8ac&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
363 - 'purchase' => 'http://bestwebsoft.com/plugin/contact-form-multi-pro/?k=fde3a18581c143654f060c398b07e8ac&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
364 - 'settings' => ''
365 - ),
366 - 'user-role-pro/user-role-pro.php' => array(
367 - 'name' => 'User Role Pro',
368 - 'description' => 'Allows to change wordpress user role capabilities.',
369 - 'link' => 'http://bestwebsoft.com/plugin/user-role-pro/?k=cfa9cea6613fb3d7c0a3622fa2faaf46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
370 - 'purchase' => 'http://bestwebsoft.com/plugin/user-role-pro/?k=cfa9cea6613fb3d7c0a3622fa2faaf46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
371 - 'settings' => 'admin.php?page=user-role-pro.php'
372 - ),
373 - 'sender-pro/sender-pro.php' => array(
374 - 'name' => 'Sender Pro',
375 - 'description' => 'You can send mails to all users or to certain categories of users.',
376 - 'link' => 'http://bestwebsoft.com/plugin/sender-pro/?k=dc5d1a87bdc8aeab2de40ffb99b38054&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
377 - 'purchase' => 'http://bestwebsoft.com/plugin/sender-pro/?k=dc5d1a87bdc8aeab2de40ffb99b38054&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
378 - 'settings' => 'admin.php?page=sndrpr_settings'
379 - ),
380 - 'limit-attempts-pro/limit-attempts-pro.php' => array(
381 - 'name' => 'Limit Attempts Pro',
382 - 'description' => 'Allows you to limit rate of login attempts by the ip, and create whitelist and blacklist.',
383 - 'link' => 'http://bestwebsoft.com/plugin/limit-attempts-pro/?k=9d42cdf22c7fce2c4b6b447e6a2856e0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
384 - 'purchase' => 'http://bestwebsoft.com/plugin/limit-attempts-pro/?k=9d42cdf22c7fce2c4b6b447e6a2856e0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
385 - 'settings' => 'admin.php?page=limit-attempts-pro.php',
386 - )
387 - );
388 -
7 + global $wpdb, $wp_version, $title;
389 8 $all_plugins = get_plugins();
9 + $error = '';
10 + $message = '';
11 + $bwsmn_form_email = '';
390 12 $active_plugins = get_option( 'active_plugins' );
391 13
392 - $recommend_plugins = array_diff_key( $bws_plugins, $all_plugins );
393 -
394 - foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
395 - if ( ! isset( $all_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
396 - unset( $recommend_plugins[ $key_plugin ] );
14 + $array_activate = array();
15 + $array_install = array();
16 + $array_recomend = array();
17 + $count_activate = $count_install = $count_recomend = 0;
18 + $array_plugins = array(
19 + array( 'captcha\/captcha.php', 'Captcha', 'http://bestwebsoft.com/plugin/captcha-plugin/', 'http://bestwebsoft.com/plugin/captcha-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Captcha+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=captcha.php' ),
20 + array( 'contact-form-plugin\/contact_form.php', 'Contact Form', 'http://bestwebsoft.com/plugin/contact-form/', 'http://bestwebsoft.com/plugin/contact-form/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Contact+Form+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=contact_form.php' ),
21 + array( 'facebook-button-plugin\/facebook-button-plugin.php', 'Facebook Like Button Plugin', 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/', 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Facebook+Like+Button+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=facebook-button-plugin.php' ),
22 + array( 'twitter-plugin\/twitter.php', 'Twitter Plugin', 'http://bestwebsoft.com/plugin/twitter-plugin/', 'http://bestwebsoft.com/plugin/twitter-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Twitter+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=twitter.php' ),
23 + array( 'portfolio\/portfolio.php', 'Portfolio', 'http://bestwebsoft.com/plugin/portfolio-plugin/', 'http://bestwebsoft.com/plugin/portfolio-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Portfolio+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=portfolio.php' ),
24 + array( 'gallery-plugin\/gallery-plugin.php', 'Gallery', 'http://bestwebsoft.com/plugin/gallery-plugin/', 'http://bestwebsoft.com/plugin/gallery-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Gallery+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=gallery-plugin.php' ),
25 + array( 'adsense-plugin\/adsense-plugin.php', 'Google AdSense Plugin', 'http://bestwebsoft.com/plugin/google-adsense-plugin/', 'http://bestwebsoft.com/plugin/google-adsense-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Adsense+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=adsense-plugin.php' ),
26 + array( 'custom-search-plugin\/custom-search-plugin.php', 'Custom Search Plugin', 'http://bestwebsoft.com/plugin/custom-search-plugin/', 'http://bestwebsoft.com/plugin/custom-search-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Search+plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=custom_search.php' ),
27 + array( 'quotes-and-tips\/quotes-and-tips.php', 'Quotes and Tips', 'http://bestwebsoft.com/plugin/quotes-and-tips/', 'http://bestwebsoft.com/plugin/quotes-and-tips/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Quotes+and+Tips+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=quotes-and-tips.php' ),
28 + array( 'google-sitemap-plugin\/google-sitemap-plugin.php', 'Google sitemap plugin', 'http://bestwebsoft.com/plugin/google-sitemap-plugin/', 'http://bestwebsoft.com/plugin/google-sitemap-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+sitemap+plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=google-sitemap-plugin.php' ),
29 + array( 'updater\/updater.php', 'Updater', 'http://bestwebsoft.com/plugin/updater-plugin/', 'http://bestwebsoft.com/plugin/updater-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=updater+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=updater-options' ),
30 + array( 'custom-fields-search\/custom-fields-search.php', 'Custom Fields Search', 'http://bestwebsoft.com/plugin/custom-fields-search/', 'http://bestwebsoft.com/plugin/custom-fields-search/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Fields+Search+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=custom_fields_search.php' ),
31 + array( 'google-one\/google-plus-one.php', 'Google +1', 'http://bestwebsoft.com/plugin/google-plus-one/', 'http://bestwebsoft.com/plugin/google-plus-one/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=google-plus-one.php' ),
32 + array( 'relevant\/related-posts-plugin.php', 'Related Posts Plugin', 'http://bestwebsoft.com/plugin/related-posts-plugin/', 'http://bestwebsoft.com/plugin/related-posts-plugin/#download', '/wp-admin/plugin-install.php?tab=search&s=Related+Posts+Plugin+Bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=related-posts-plugin.php' ),
33 + array( 'contact-form-to-db\/contact_form_to_db.php', 'Contact Form to DB', 'http://bestwebsoft.com/plugin/contact-form-to-db/', 'http://bestwebsoft.com/plugin/contact-form-to-db/#download', '/wp-admin/plugin-install.php?tab=search&s=Contact+Form+to+DB+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=cntctfrmtdb_settings' ),
34 + array( 'pdf-print\/pdf-print.php', 'PDF & Print', 'http://bestwebsoft.com/plugin/pdf-print/', 'http://bestwebsoft.com/plugin/pdf-print/#download', '/wp-admin/plugin-install.php?tab=search&s=PDF+Print+Bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=pdf-print.php' )
35 + );
36 + foreach ( $array_plugins as $plugins ) {
37 + if ( 0 < count( preg_grep( "/" . $plugins[0] . "/", $active_plugins ) ) || is_plugin_active_for_network( str_replace( '\\', '', $plugins[0] ) ) ) {
38 + $array_activate[ $count_activate ]["title"] = $plugins[1];
39 + $array_activate[ $count_activate ]["link"] = $plugins[2];
40 + $array_activate[ $count_activate ]["href"] = $plugins[3];
41 + $array_activate[ $count_activate ]["url"] = $plugins[5];
42 + $count_activate++;
43 + } else if ( array_key_exists( str_replace( "\\", "", $plugins[0] ), $all_plugins ) ) {
44 + $array_install[ $count_install ]["title"] = $plugins[1];
45 + $array_install[ $count_install ]["link"] = $plugins[2];
46 + $array_install[ $count_install ]["href"] = $plugins[3];
47 + $count_install++;
48 + } else {
49 + $array_recomend[ $count_recomend ]["title"] = $plugins[1];
50 + $array_recomend[ $count_recomend ]["link"] = $plugins[2];
51 + $array_recomend[ $count_recomend ]["href"] = $plugins[3];
52 + $array_recomend[ $count_recomend ]["slug"] = $plugins[4];
53 + $count_recomend++;
397 54 }
398 55 }
399 -
400 - foreach ( $all_plugins as $key_plugin => $value_plugin ) {
401 - if ( ! isset( $bws_plugins[ $key_plugin ] ) && ! isset( $bws_plugins_pro[ $key_plugin ] ) )
402 - unset( $all_plugins[ $key_plugin ] );
403 -
404 - if ( isset( $bws_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
405 - unset( $all_plugins[ $key_plugin ] );
56 + $array_activate_pro = array();
57 + $array_install_pro = array();
58 + $array_recomend_pro = array();
59 + $count_activate_pro = $count_install_pro = $count_recomend_pro = 0;
60 + $array_plugins_pro = array(
61 + array( 'gallery-plugin-pro\/gallery-plugin-pro.php', 'Gallery Pro', 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0', 'http://bestwebsoft.com/plugin/gallery-pro/?k=382e5ce7c96a6391f5ffa5e116b37fe0#purchase', 'admin.php?page=gallery-plugin-pro.php' ),
62 + array( 'contact-form-pro\/contact_form_pro.php', 'Contact Form Pro', 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71', 'http://bestwebsoft.com/plugin/contact-form-pro/?k=773dc97bb3551975db0e32edca1a6d71#purchase', 'admin.php?page=contact_form_pro.php' ),
63 + array( 'captcha-pro\/captcha_pro.php', 'Captcha Pro', 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e', 'http://bestwebsoft.com/plugin/captcha-pro/?k=ff7d65e55e5e7f98f219be9ed711094e#purchase', 'admin.php?page=captcha_pro.php' ),
64 + array( 'updater-pro\/updater_pro.php', 'Updater Pro', 'http://bestwebsoft.com/plugin/updater-pro/?k=cf633acbefbdff78545347fe08a3aecb', 'http://bestwebsoft.com/plugin/updater-pro?k=cf633acbefbdff78545347fe08a3aecb#purchase', 'admin.php?page=updater-pro-options' ),
65 + array( 'contact-form-to-db-pro\/contact_form_to_db_pro.php', 'Contact Form to DB Pro', 'http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ce5f4a9006ec906e4db643669246c6a', 'http://bestwebsoft.com/plugin/contact-form-to-db-pro/?k=6ce5f4a9006ec906e4db643669246c6a#purchase', 'admin.php?page=cntctfrmtdbpr_settings' )
66 + );
67 + foreach ( $array_plugins_pro as $plugins ) {
68 + if ( 0 < count( preg_grep( "/" . $plugins[0] . "/", $active_plugins ) ) || is_plugin_active_for_network( str_replace( '\\', '', $plugins[0] ) ) ) {
69 + $array_activate_pro[ $count_activate_pro ]["title"] = $plugins[1];
70 + $array_activate_pro[ $count_activate_pro ]["link"] = $plugins[2];
71 + $array_activate_pro[ $count_activate_pro ]["href"] = $plugins[3];
72 + $array_activate_pro[ $count_activate_pro ]["url"] = $plugins[4];
73 + $count_activate_pro++;
74 + } else if ( array_key_exists( str_replace( "\\", "", $plugins[0]), $all_plugins ) ) {
75 + $array_install_pro[ $count_install_pro ]["title"] = $plugins[1];
76 + $array_install_pro[ $count_install_pro ]["link"] = $plugins[2];
77 + $array_install_pro[ $count_install_pro ]["href"] = $plugins[3];
78 + $count_install_pro++;
79 + } else {
80 + $array_recomend_pro[ $count_recomend_pro ]["title"] = $plugins[1];
81 + $array_recomend_pro[ $count_recomend_pro ]["link"] = $plugins[2];
82 + $array_recomend_pro[ $count_recomend_pro ]["href"] = $plugins[3];
83 + $count_recomend_pro++;
406 84 }
407 85 }
86 + $sql_version = $wpdb->get_var( "SELECT VERSION() AS version" );
87 + $mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
88 + if ( is_array( $mysql_info) )
89 + $sql_mode = $mysql_info[0]->Value;
90 + if ( empty( $sql_mode ) )
91 + $sql_mode = __( 'Not set', 'bestwebsoft' );
92 + if ( ini_get( 'safe_mode' ) )
93 + $safe_mode = __( 'On', 'bestwebsoft' );
94 + else
95 + $safe_mode = __( 'Off', 'bestwebsoft' );
96 + if ( ini_get( 'allow_url_fopen' ) )
97 + $allow_url_fopen = __( 'On', 'bestwebsoft' );
98 + else
99 + $allow_url_fopen = __( 'Off', 'bestwebsoft' );
100 + if ( ini_get( 'upload_max_filesize' ) )
101 + $upload_max_filesize = ini_get( 'upload_max_filesize' );
102 + else
103 + $upload_max_filesize = __( 'N/A', 'bestwebsoft' );
104 + if ( ini_get('post_max_size') )
105 + $post_max_size = ini_get('post_max_size');
106 + else
107 + $post_max_size = __( 'N/A', 'bestwebsoft' );
108 + if ( ini_get( 'max_execution_time' ) )
109 + $max_execution_time = ini_get( 'max_execution_time' );
110 + else
111 + $max_execution_time = __( 'N/A', 'bestwebsoft' );
112 + if ( ini_get( 'memory_limit' ) )
113 + $memory_limit = ini_get( 'memory_limit' );
114 + else
115 + $memory_limit = __( 'N/A', 'bestwebsoft' );
116 + if ( function_exists( 'memory_get_usage' ) )
117 + $memory_usage = round( memory_get_usage() / 1024 / 1024, 2 ) . __( ' Mb', 'bestwebsoft' );
118 + else
119 + $memory_usage = __( 'N/A', 'bestwebsoft' );
120 + if ( is_callable( 'exif_read_data' ) )
121 + $exif_read_data = __( 'Yes', 'bestwebsoft' ) . " ( V" . substr( phpversion( 'exif' ), 0,4 ) . ")" ;
122 + else
123 + $exif_read_data = __( 'No', 'bestwebsoft' );
124 + if ( is_callable( 'iptcparse' ) )
125 + $iptcparse = __( 'Yes', 'bestwebsoft' );
126 + else
127 + $iptcparse = __( 'No', 'bestwebsoft' );
128 + if ( is_callable( 'xml_parser_create' ) )
129 + $xml_parser_create = __( 'Yes', 'bestwebsoft' );
130 + else
131 + $xml_parser_create = __( 'No', 'bestwebsoft' );
408 132
409 - if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) {
410 - $all_plugins = get_plugins();
411 - $active_plugins = get_option( 'active_plugins' );
412 - $sql_version = $wpdb->get_var( "SELECT VERSION() AS version" );
413 - $mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
414 - if ( is_array( $mysql_info) )
415 - $sql_mode = $mysql_info[0]->Value;
416 - if ( empty( $sql_mode ) )
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' );
133 + if ( function_exists( 'wp_get_theme' ) )
134 + $theme = wp_get_theme();
135 + else
136 + $theme = get_theme( get_current_theme() );
458 137
459 - if ( function_exists( 'wp_get_theme' ) )
460 - $theme = wp_get_theme();
461 - else
462 - $theme = get_theme( get_current_theme() );
138 + if ( function_exists( 'is_multisite' ) ) {
139 + if ( is_multisite() ) {
140 + $multisite = __( 'Yes', 'bestwebsoft' );
141 + } else {
142 + $multisite = __( 'No', 'bestwebsoft' );
143 + }
144 + } else
145 + $multisite = __( 'N/A', 'bestwebsoft' );
463 146
464 - if ( function_exists( 'is_multisite' ) ) {
465 - if ( is_multisite() ) {
466 - $multisite = __( 'Yes', 'bestwebsoft' );
467 - } else {
468 - $multisite = __( 'No', 'bestwebsoft' );
469 - }
470 - } else
471 - $multisite = __( 'N/A', 'bestwebsoft' );
147 + $site_url = get_option( 'siteurl' );
148 + $home_url = get_option( 'home' );
149 + $db_version = get_option( 'db_version' );
150 + $system_info = array(
151 + 'system_info' => '',
152 + 'active_plugins' => '',
153 + 'inactive_plugins' => ''
154 + );
155 + $system_info['system_info'] = array(
156 + __( 'Operating System', 'bestwebsoft' ) => PHP_OS,
157 + __( 'Server', 'bestwebsoft' ) => $_SERVER["SERVER_SOFTWARE"],
158 + __( 'Memory usage', 'bestwebsoft' ) => $memory_usage,
159 + __( 'MYSQL Version', 'bestwebsoft' ) => $sql_version,
160 + __( 'SQL Mode', 'bestwebsoft' ) => $sql_mode,
161 + __( 'PHP Version', 'bestwebsoft' ) => PHP_VERSION,
162 + __( 'PHP Safe Mode', 'bestwebsoft' ) => $safe_mode,
163 + __( 'PHP Allow URL fopen', 'bestwebsoft' ) => $allow_url_fopen,
164 + __( 'PHP Memory Limit', 'bestwebsoft' ) => $memory_limit,
165 + __( 'PHP Max Upload Size', 'bestwebsoft' ) => $upload_max_filesize,
166 + __( 'PHP Max Post Size', 'bestwebsoft' ) => $post_max_size,
167 + __( 'PHP Max Script Execute Time', 'bestwebsoft' ) => $max_execution_time,
168 + __( 'PHP Exif support', 'bestwebsoft' ) => $exif_read_data,
169 + __( 'PHP IPTC support', 'bestwebsoft' ) => $iptcparse,
170 + __( 'PHP XML support', 'bestwebsoft' ) => $xml_parser_create,
171 + __( 'Site URL', 'bestwebsoft' ) => $site_url,
172 + __( 'Home URL', 'bestwebsoft' ) => $home_url,
173 + __( 'WordPress Version', 'bestwebsoft' ) => $wp_version,
174 + __( 'WordPress DB Version', 'bestwebsoft' ) => $db_version,
175 + __( 'Multisite', 'bestwebsoft' ) => $multisite,
176 + __( 'Active Theme', 'bestwebsoft' ) => $theme['Name'] . ' ' . $theme['Version']
177 + );
178 + foreach ( $all_plugins as $path => $plugin ) {
179 + if ( is_plugin_active( $path ) ) {
180 + $system_info['active_plugins'][ $plugin['Name'] ] = $plugin['Version'];
181 + } else {
182 + $system_info['inactive_plugins'][ $plugin['Name'] ] = $plugin['Version'];
183 + }
184 + }
472 185
473 - $site_url = get_option( 'siteurl' );
474 - $home_url = get_option( 'home' );
475 - $db_version = get_option( 'db_version' );
476 - $system_info = array(
477 - 'system_info' => '',
478 - 'active_plugins' => '',
479 - 'inactive_plugins' => ''
480 - );
481 - $system_info['system_info'] = array(
482 - __( 'Operating System', 'bestwebsoft' ) => PHP_OS,
483 - __( 'Server', 'bestwebsoft' ) => $_SERVER["SERVER_SOFTWARE"],
484 - __( 'Memory usage', 'bestwebsoft' ) => $memory_usage,
485 - __( 'MYSQL Version', 'bestwebsoft' ) => $sql_version,
486 - __( 'SQL Mode', 'bestwebsoft' ) => $sql_mode,
487 - __( 'PHP Version', 'bestwebsoft' ) => PHP_VERSION,
488 - __( 'PHP Safe Mode', 'bestwebsoft' ) => $safe_mode,
489 - __( 'PHP Allow URL fopen', 'bestwebsoft' ) => $allow_url_fopen,
490 - __( 'PHP Memory Limit', 'bestwebsoft' ) => $memory_limit,
491 - __( 'PHP Max Upload Size', 'bestwebsoft' ) => $upload_max_filesize,
492 - __( 'PHP Max Post Size', 'bestwebsoft' ) => $post_max_size,
493 - __( 'PHP Max Script Execute Time', 'bestwebsoft' ) => $max_execution_time,
494 - __( 'PHP Exif support', 'bestwebsoft' ) => $exif_read_data,
495 - __( 'PHP IPTC support', 'bestwebsoft' ) => $iptcparse,
496 - __( 'PHP XML support', 'bestwebsoft' ) => $xml_parser_create,
497 - __( 'Site URL', 'bestwebsoft' ) => $site_url,
498 - __( 'Home URL', 'bestwebsoft' ) => $home_url,
499 - '$_SERVER[HTTP_HOST]' => $_SERVER['HTTP_HOST'],
500 - '$_SERVER[SERVER_NAME]' => $_SERVER['SERVER_NAME'],
501 - __( 'WordPress Version', 'bestwebsoft' ) => $wp_version,
502 - __( 'WordPress DB Version', 'bestwebsoft' ) => $db_version,
503 - __( 'Multisite', 'bestwebsoft' ) => $multisite,
504 - __( 'Active Theme', 'bestwebsoft' ) => $theme['Name'] . ' ' . $theme['Version']
505 - );
506 - foreach ( $all_plugins as $path => $plugin ) {
507 - if ( is_plugin_active( $path ) ) {
508 - $system_info['active_plugins'][ $plugin['Name'] ] = $plugin['Version'];
509 - } else {
510 - $system_info['inactive_plugins'][ $plugin['Name'] ] = $plugin['Version'];
511 - }
512 - }
513 - }
514 -
515 186 if ( ( isset( $_REQUEST['bwsmn_form_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ) ) ||
516 187 ( isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ) ) ) {
517 188 if ( isset( $_REQUEST['bwsmn_form_email'] ) ) {
518 - $bwsmn_form_email = esc_html( trim( $_REQUEST['bwsmn_form_email'] ) );
519 - if ( $bwsmn_form_email == "" || ! is_email( $bwsmn_form_email ) ) {
189 + $bwsmn_form_email = trim( $_REQUEST['bwsmn_form_email'] );
190 + 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 ) ) {
520 191 $error = __( "Please enter a valid email address.", 'bestwebsoft' );
521 192 } else {
522 193 $email = $bwsmn_form_email;
523 194 $bwsmn_form_email = '';
@@ -537,458 +208,144 @@
537 208 <table>';
538 209 foreach ( $system_info['system_info'] as $key => $value ) {
539 210 $message_text .= '<tr><td>'. $key .'</td><td>'. $value .'</td></tr>';
540 211 }
541 - $message_text .= '</table>';
542 - if ( ! empty( $system_info['active_plugins'] ) ) {
543 - $message_text .= '<h4>Active Plugins</h4>
544 - <table>';
545 - foreach ( $system_info['active_plugins'] as $key => $value ) {
546 - $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
547 - }
548 - $message_text .= '</table>';
212 + $message_text .= '</table>
213 + <h4>Active Plugins</h4>
214 + <table>';
215 + foreach ( $system_info['active_plugins'] as $key => $value ) {
216 + $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
549 217 }
550 - if ( ! empty( $system_info['inactive_plugins'] ) ) {
551 - $message_text .= '<h4>Inactive Plugins</h4>
552 - <table>';
553 - foreach ( $system_info['inactive_plugins'] as $key => $value ) {
554 - $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
555 - }
556 - $message_text .= '</table>';
218 + $message_text .= '</table>
219 + <h4>Inactive Plugins</h4>
220 + <table>';
221 + foreach ( $system_info['inactive_plugins'] as $key => $value ) {
222 + $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
557 223 }
558 - $message_text .= '</body></html>';
224 + $message_text .= '</table></body></html>';
559 225 $result = wp_mail( $email, 'System Info From ' . $home_url, $message_text, $headers );
560 226 if ( $result != true )
561 227 $error = __( "Sorry, email message could not be delivered.", 'bestwebsoft' );
562 228 }
563 - } ?>
564 - <div class="wrap">
229 + }
230 + ?><div class="wrap">
565 231 <div class="icon32 icon32-bws" id="icon-options-general"></div>
566 - <h2>BestWebSoft</h2>
567 - <h2 class="nav-tab-wrapper">
568 - <a class="nav-tab<?php if ( !isset( $_GET['action'] ) ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
569 - <?php if ( $wp_version >= '3.4' ) { ?>
570 - <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>
232 + <h2><?php echo $title; ?></h2>
233 + <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>
234 + <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
235 + <h3 style="color: blue;"><?php _e( 'Pro plugins', 'bestwebsoft' ); ?></h3>
236 + <?php if ( 0 < $count_activate_pro ) { ?>
237 + <div style="padding-left:15px;">
238 + <h4><?php _e( 'Activated plugins', 'bestwebsoft' ); ?></h4>
239 + <?php foreach ( $array_activate_pro as $activate_plugin ) { ?>
240 + <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>
571 241 <?php } ?>
572 - <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>
573 - </h2>
574 - <?php if ( !isset( $_GET['action'] ) ) { ?>
575 - <ul class="subsubsub">
576 - <li><a <?php if ( !isset( $_GET['sub'] ) ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins"><?php _e( 'All', 'bestwebsoft' ); ?></a></li> |
577 - <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> |
578 - <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>
579 - </ul>
580 - <div class="clear"></div>
581 - <?php if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
582 - <h4 class="bws_installed"><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
583 - <?php foreach ( $all_plugins as $key_plugin => $value_plugin ) {
584 - if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) {
585 - $key_plugin_explode = explode( '-plugin-pro/', $key_plugin );
586 - if ( isset( $key_plugin_explode[1] ) )
587 - $icon = $key_plugin_explode[0];
588 - else {
589 - $key_plugin_explode = explode( '-pro/', $key_plugin );
590 - $icon = $key_plugin_explode[0];
591 - }
592 - } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) {
593 - $key_plugin_explode = explode( '-plugin/', $key_plugin );
594 - if ( isset( $key_plugin_explode[1] ) )
595 - $icon = $key_plugin_explode[0];
596 - else {
597 - $key_plugin_explode = explode( '/', $key_plugin );
598 - $icon = $key_plugin_explode[0];
599 - }
600 - }
601 -
602 - if ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) { ?>
603 - <?php if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) { ?>
604 - <div class="bws_product_box bws_exist_overlay">
605 - <div class="bws_product">
606 - <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
607 - <div class="bws_product_content">
608 - <div class="bws_product_icon">
609 - <div class="bws_product_icon_pro">PRO</div>
610 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
611 - </div>
612 - <div class="bws_product_description"><?php echo $value_plugin["Description"]; ?></div>
613 - </div>
614 - <div class="clear"></div>
615 - </div>
616 - <div class="bws_product_links">
617 - <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
618 - <?php if ( '' != $bws_plugins_pro[ $key_plugin ]["settings"] ) { ?>
619 - <span> | </span>
620 - <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
621 - <?php } ?>
622 - </div>
623 - </div>
624 - <?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
625 - <div class="bws_product_box bws_product_free">
626 - <div class="bws_product">
627 - <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
628 - <div class="bws_product_content">
629 - <div class="bws_product_icon">
630 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
631 - </div>
632 - <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
633 - </div>
634 - <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
635 - <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["purchase"]; ?>" target="_blank">
636 - <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
637 - </a>
638 - <?php } else { ?>
639 - <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
640 - <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
641 - </a>
642 - <?php } ?>
643 - <div class="clear"></div>
644 - </div>
645 - <div class="bws_product_links">
646 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
647 - <?php if ( '' != $bws_plugins[ $key_plugin ]["settings"] ) { ?>
648 - <span> | </span>
649 - <a href="<?php echo $bws_plugins[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
650 - <?php } ?>
651 - </div>
652 - </div>
653 - <?php }
654 - } else {
655 - if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) { ?>
656 - <div class="bws_product_box bws_product_deactivated">
657 - <div class="bws_product">
658 - <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
659 - <div class="bws_product_content">
660 - <div class="bws_product_icon">
661 - <div class="bws_product_icon_pro">PRO</div>
662 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
663 - </div>
664 - <div class="bws_product_description"><?php echo $bws_plugins_pro[ $key_plugin ]["description"]; ?></div>
665 - </div>
666 - <div class="clear"></div>
667 - </div>
668 - <div class="bws_product_links">
669 - <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
670 - <span> | </span>
671 - <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
672 - </div>
673 - </div>
674 - <?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
675 - <div class="bws_product_box bws_product_deactivated bws_product_free">
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 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
681 - </div>
682 - <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
683 - </div>
684 - <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
685 - <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["purchase"]; ?>" target="_blank">
686 - <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
687 - </a>
688 - <?php } else { ?>
689 - <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
690 - <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
691 - </a>
692 - <?php } ?>
693 - <div class="clear"></div>
694 - </div>
695 - <div class="bws_product_links">
696 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
697 - <span> | </span>
698 - <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
699 - </div>
700 - </div>
701 - <?php }
702 - }
703 - }
704 - } ?>
705 - <div class="clear"></div>
706 - <?php if ( ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
707 - <h4 class="bws_recommended"><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
708 - <?php foreach ( $recommend_plugins as $key_plugin => $value_plugin ) {
709 -
710 - if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) {
711 - $key_plugin_explode = explode( '-plugin-pro/', $key_plugin );
712 - if ( isset( $key_plugin_explode[1] ) )
713 - $icon = $key_plugin_explode[0];
714 - else {
715 - $key_plugin_explode = explode( '-pro/', $key_plugin );
716 - $icon = $key_plugin_explode[0];
717 - }
718 - } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) {
719 - $key_plugin_explode = explode( '-plugin/', $key_plugin );
720 - if ( isset( $key_plugin_explode[1] ) )
721 - $icon = $key_plugin_explode[0];
722 - else {
723 - $key_plugin_explode = explode( '/', $key_plugin );
724 - $icon = $key_plugin_explode[0];
725 - }
726 - } ?>
727 - <div class="bws_product_box">
728 - <div class="bws_product">
729 - <div class="bws_product_title"><?php echo $value_plugin["name"]; ?></div>
730 - <div class="bws_product_content">
731 - <div class="bws_product_icon">
732 - <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
733 - <div class="bws_product_icon_pro">PRO</div>
734 - <?php } ?>
735 - <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
736 - </div>
737 - <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
738 - </div>
739 - <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
740 - <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["link"]; ?>" target="_blank">
741 - <?php echo _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
742 - </a>
743 - <?php } else { ?>
744 - <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
745 - <strong><?php echo _e( 'DONATE', 'bestwebsoft' );?></strong>
746 - </a>
747 - <?php } ?>
748 - </div>
749 - <div class="clear"></div>
750 - <div class="bws_product_links">
751 - <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php echo __( "Learn more", 'bestwebsoft' ); ?></a>
752 - <span> | </span>
753 - <a href="<?php echo $bws_plugins[ $key_plugin ]["wp_install"]; ?>" target="_blank"><?php echo __( "Install now", 'bestwebsoft' ); ?></a>
754 - </div>
755 - </div>
756 - <?php }
757 - } ?>
758 - <?php } elseif ( 'themes' == $_GET['action'] ) { ?>
759 - <div id="availablethemes">
760 - <?php global $tabs, $tab, $paged, $type, $theme_field_defaults;
761 - include( ABSPATH . 'wp-admin/includes/theme-install.php' );
762 - include( ABSPATH . 'wp-admin/includes/class-wp-themes-list-table.php' );
763 - include( ABSPATH . 'wp-admin/includes/class-wp-theme-install-list-table.php' );
764 -
765 - $theme_class = new WP_Theme_Install_List_Table();
766 - $paged = $theme_class->get_pagenum();
767 - $per_page = 36;
768 - $args = array( 'page' => $paged, 'per_page' => $per_page, 'fields' => $theme_field_defaults );
769 - $args['author'] = 'bestwebsoft';
770 - $args = apply_filters( 'install_themes_table_api_args_search', $args );
771 - $api = themes_api( 'query_themes', $args );
772 -
773 - if ( is_wp_error( $api ) )
774 - wp_die( $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try again' ) . '</a>' );
775 -
776 - $theme_class->items = $api->themes;
777 - $theme_class->set_pagination_args( array(
778 - 'total_items' => $api->info['results'],
779 - 'per_page' => $per_page,
780 - 'infinite_scroll' => true,
781 - ) );
782 - $themes = $theme_class->items;
783 - if ( $wp_version < '3.9' ) {
784 - foreach ( $themes as $theme ) { ?>
785 - <div class="available-theme installable-theme"><?php
786 - global $themes_allowedtags;
787 - if ( empty( $theme ) )
788 - return;
789 -
790 - $name = wp_kses( $theme->name, $themes_allowedtags );
791 - $author = wp_kses( $theme->author, $themes_allowedtags );
792 - $preview_title = sprintf( __('Preview &#8220;%s&#8221;'), $name );
793 - $preview_url = add_query_arg( array(
794 - 'tab' => 'theme-information',
795 - 'theme' => $theme->slug,
796 - ), self_admin_url( 'theme-install.php' ) );
797 -
798 - $actions = array();
799 -
800 - $install_url = add_query_arg( array(
801 - 'action' => 'install-theme',
802 - 'theme' => $theme->slug,
803 - ), self_admin_url( 'update.php' ) );
804 -
805 - $update_url = add_query_arg( array(
806 - 'action' => 'upgrade-theme',
807 - 'theme' => $theme->slug,
808 - ), self_admin_url( 'update.php' ) );
809 -
810 - $status = 'install';
811 - $installed_theme = wp_get_theme( $theme->slug );
812 - if ( $installed_theme->exists() ) {
813 - if ( version_compare( $installed_theme->get('Version'), $theme->version, '=' ) )
814 - $status = 'latest_installed';
815 - elseif ( version_compare( $installed_theme->get('Version'), $theme->version, '>' ) )
816 - $status = 'newer_installed';
817 - else
818 - $status = 'update_available';
819 - }
820 - switch ( $status ) {
821 - default:
822 - case 'install':
823 - $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>';
824 - break;
825 - case 'update_available':
826 - $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>';
827 - break;
828 - case 'newer_installed':
829 - case 'latest_installed':
830 - $actions[] = '<span class="install-now" title="' . esc_attr__( 'This theme is already installed and is up to date' ) . '">' . _x( 'Installed', 'theme' ) . '</span>';
831 - break;
832 - }
833 - $actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s' ), $name ) ) . '">' . __( 'Preview' ) . '</a>';
834 - $actions = apply_filters( 'theme_install_actions', $actions, $theme ); ?>
835 - <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
836 - <img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' />
837 - </a>
838 - <h3><?php echo $name; ?></h3>
839 - <div class="theme-author"><?php printf( __( 'By %s' ), $author ); ?></div>
840 - <div class="action-links">
841 - <ul>
842 - <?php foreach ( $actions as $action ): ?>
843 - <li><?php echo $action; ?></li>
844 - <?php endforeach; ?>
845 - <li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e('Details') ?></a></li>
846 - </ul>
847 - </div>
848 - <?php $theme_class->install_theme_info( $theme ); ?>
849 - </div>
850 - <?php }
851 - // end foreach $theme_names
852 - $theme_class->theme_installer();
853 - } else { ?>
854 - <div class="theme-browser">
855 - <div class="themes">
856 - <?php foreach ( $themes as $key => $theme ) {
857 - $installed_theme = wp_get_theme( $theme->slug );
858 - if ( $installed_theme->exists() )
859 - $theme->installed = true;
860 - else
861 - $theme->installed = false;
862 - ?>
863 - <div class="theme" tabindex="0">
864 - <?php if ( $theme->screenshot_url ) { ?>
865 - <div class="theme-screenshot">
866 - <img src="<?php echo $theme->screenshot_url; ?>" alt="" />
867 - </div>
868 - <?php } else { ?>
869 - <div class="theme-screenshot blank"></div>
870 - <?php } ?>
871 - <div class="theme-author"><?php printf( __( 'By %s' ), $theme->author ); ?></div>
872 - <h3 class="theme-name"><?php echo $theme->name; ?></h3>
873 - <div class="theme-actions">
874 - <a class="button button-secondary preview install-theme-preview" href="theme-install.php?theme=<?php echo $theme->slug ?>"><?php esc_html_e( 'Learn More' ); ?></a>
875 - </div>
876 - <?php if ( $theme->installed ) { ?>
877 - <div class="theme-installed"><?php _e( 'Already Installed' ); ?></div>
878 - <?php } ?>
879 - </div>
880 - <?php } ?>
881 - <br class="clear" />
882 - </div>
883 - </div>
884 - <div class="theme-overlay"></div>
885 - <?php } ?>
886 - </div>
887 - <?php } elseif ( 'system_status' == $_GET['action'] ) { ?>
888 - <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>
889 - <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
890 - <h3><?php _e( 'System status', 'bestwebsoft' ); ?></h3>
891 - <div class="inside">
892 - <table class="bws_system_info">
893 - <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
894 - <tbody>
895 - <?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
896 - <tr>
897 - <td scope="row"><?php echo $key; ?></td>
898 - <td scope="row"><?php echo $value; ?></td>
899 - </tr>
900 - <?php } ?>
901 - </tbody>
902 - </table>
903 - <table class="bws_system_info">
904 - <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
905 - <tbody>
906 - <?php if ( ! empty( $system_info['active_plugins'] ) ) {
907 - foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
242 + </div>
243 + <?php } ?>
244 + <?php if ( 0 < $count_install_pro ) { ?>
245 + <div style="padding-left:15px;">
246 + <h4><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
247 + <?php foreach ( $array_install_pro as $install_plugin) { ?>
248 + <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>
249 + <?php } ?>
250 + </div>
251 + <?php } ?>
252 + <?php if ( 0 < $count_recomend_pro ) { ?>
253 + <div style="padding-left:15px;">
254 + <h4><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
255 + <?php foreach ( $array_recomend_pro as $recomend_plugin ) { ?>
256 + <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>
257 + <?php } ?>
258 + </div>
259 + <?php } ?>
260 + <br />
261 + <h3 style="color: green"><?php _e( 'Free plugins', 'bestwebsoft' ); ?></h3>
262 + <?php if ( 0 < $count_activate ) { ?>
263 + <div style="padding-left:15px;">
264 + <h4><?php _e( 'Activated plugins', 'bestwebsoft' ); ?></h4>
265 + <?php foreach ( $array_activate as $activate_plugin ) { ?>
266 + <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>
267 + <?php } ?>
268 + </div>
269 + <?php } ?>
270 + <?php if ( 0 < $count_install ) { ?>
271 + <div style="padding-left:15px;">
272 + <h4><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
273 + <?php foreach ( $array_install as $install_plugin ) { ?>
274 + <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>
275 + <?php } ?>
276 + </div>
277 + <?php } ?>
278 + <?php if ( 0 < $count_recomend ) { ?>
279 + <div style="padding-left:15px;">
280 + <h4><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
281 + <?php foreach ( $array_recomend as $recomend_plugin ) { ?>
282 + <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>
283 + <?php } ?>
284 + </div>
285 + <?php } ?>
286 + <br />
287 + <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>
288 + <div id="poststuff" class="bws_system_info_meta_box">
289 + <div class="postbox">
290 + <div class="handlediv" title="Click to toggle">
291 + <br>
292 + </div>
293 + <h3 class="hndle">
294 + <span><?php _e( 'System status', 'bestwebsoft' ); ?></span>
295 + </h3>
296 + <div class="inside">
297 + <table class="bws_system_info">
298 + <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
299 + <tbody>
300 + <?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
908 301 <tr>
909 302 <td scope="row"><?php echo $key; ?></td>
910 303 <td scope="row"><?php echo $value; ?></td>
911 304 </tr>
912 - <?php }
913 - } ?>
914 - </tbody>
915 - </table>
916 - <table class="bws_system_info">
917 - <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
918 - <tbody>
919 - <?php if ( ! empty( $system_info['inactive_plugins'] ) ) {
920 - foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
305 + <?php } ?>
306 + </tbody>
307 + </table>
308 + <table class="bws_system_info">
309 + <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
310 + <tbody>
311 + <?php foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
921 312 <tr>
922 313 <td scope="row"><?php echo $key; ?></td>
923 314 <td scope="row"><?php echo $value; ?></td>
924 315 </tr>
925 - <?php }
926 - } ?>
927 - </tbody>
928 - </table>
929 - <div class="clear"></div>
930 - <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
931 - <p>
932 - <input type="hidden" name="bwsmn_form_submit" value="submit" />
933 - <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
934 - <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
935 - </p>
936 - </form>
937 - <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
938 - <p>
939 - <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
940 - <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
941 - <input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
942 - <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
943 - </p>
944 - </form>
316 + <?php } ?>
317 + </tbody>
318 + </table>
319 + <table class="bws_system_info">
320 + <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
321 + <tbody>
322 + <?php foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
323 + <tr>
324 + <td scope="row"><?php echo $key; ?></td>
325 + <td scope="row"><?php echo $value; ?></td>
326 + </tr>
327 + <?php } ?>
328 + </tbody>
329 + </table>
330 + <div class="clear"></div>
331 + <form method="post" action="admin.php?page=bws_plugins">
332 + <p>
333 + <input type="hidden" name="bwsmn_form_submit" value="submit" />
334 + <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
335 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
336 + </p>
337 + </form>
338 + <form method="post" action="admin.php?page=bws_plugins">
339 + <p>
340 + <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
341 + <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
342 + <input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
343 + <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
344 + </p>
345 + </form>
346 + </div>
945 347 </div>
946 - <?php } ?>
348 + </div>
947 349 </div>
948 350 <?php }
949 -}
950 -
951 -if ( ! function_exists ( 'bws_plugin_init' ) ) {
952 - function bws_plugin_init() {
953 - // Internationalization, first(!)
954 - load_plugin_textdomain( 'bestwebsoft', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
955 - }
956 -}
957 -
958 -if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) ) {
959 - function bws_admin_enqueue_scripts() {
960 - global $wp_version;
961 - if ( $wp_version < 3.8 )
962 - wp_enqueue_style( 'bws-admin-stylesheet', plugins_url( 'css/general_style_wp_before_3.8.css', __FILE__ ) );
963 - else
964 - wp_enqueue_style( 'bws-admin-stylesheet', plugins_url( 'css/general_style.css', __FILE__ ) );
965 -
966 - if ( isset( $_GET['page'] ) && $_GET['page'] == "bws_plugins" ) {
967 - wp_enqueue_style( 'bws_menu_style', plugins_url( 'css/style.css', __FILE__ ) );
968 - wp_enqueue_script( 'bws_menu_script', plugins_url( 'js/bws_menu.js' , __FILE__ ) );
969 - if ( $wp_version >= '3.8' )
970 - wp_enqueue_script( 'theme-install' );
971 - elseif ( $wp_version >= '3.4' )
972 - wp_enqueue_script( 'theme' );
973 - }
974 - }
975 -}
976 -
977 -if ( ! function_exists ( 'bws_admin_head' ) ) {
978 - function bws_admin_head() {
979 - if ( isset( $_GET['page'] ) && $_GET['page'] == "bws_plugins" ) { ?>
980 - <noscript>
981 - <style type="text/css">
982 - .bws_product_button {
983 - display: inline-block;
984 - }
985 - </style>
986 - </noscript>
987 - <?php }
988 - }
989 -}
990 -
991 -add_action( 'admin_init', 'bws_plugin_init' );
992 -add_action( 'admin_enqueue_scripts', 'bws_admin_enqueue_scripts' );
993 -add_action( 'admin_head', 'bws_admin_head' );
994 -?>
351 +} ?>