PluginProbe ʕ •ᴥ•ʔ
reCaptcha by BestWebSoft / 1.09
reCaptcha by BestWebSoft v1.09
1.79 1.80 1.82 1.83 1.84 1.85 1.86 1.87 trunk 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 1.31 1.32 1.33 1.34 1.35 1.36 1.37 1.38 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 1.48 1.49 1.50 1.51 1.52 1.53 1.54 1.55 1.56 1.57 1.58 1.59 1.60 1.61 1.62 1.63 1.64 1.65 1.66 1.67 1.68 1.70 1.71 1.72 1.73 1.74 1.75 1.78
google-captcha / bws_menu / bws_menu.php
google-captcha / bws_menu Last commit date
css 11 years ago icons 11 years ago images 11 years ago js 11 years ago languages 11 years ago bws_menu.php 11 years ago
bws_menu.php
882 lines
1 <?php
2 /*
3 * Function for displaying BestWebSoft menu
4 * Version: 1.3.9
5 */
6
7 if ( ! function_exists( 'bws_add_menu_render' ) ) {
8 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/products/captcha/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
21 'download' => 'http://bestwebsoft.com/products/captcha/download/?k=d678516c0990e781edfb6a6c874f0b8a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
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 'purchase' => 'http://bestwebsoft.com/products/captcha/buy/?k=ff7d65e55e5e7f98f219be9ed711094e&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
26 'pro_settings' => 'admin.php?page=captcha_pro.php'
27 ),
28 'contact-form-plugin/contact_form.php' => array(
29 'name' => 'Contact Form',
30 'description' => 'Add Contact Form to your WordPress website.',
31 'link' => 'http://bestwebsoft.com/products/contact-form/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
32 'download' => 'http://bestwebsoft.com/products/contact-form/download/?k=012327ef413e5b527883e031d43b088b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
33 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Contact+Form+bestwebsoft&plugin-search-input=Search+Plugins',
34 'settings' => 'admin.php?page=contact_form.php',
35 'pro_version' => 'contact-form-pro/contact_form_pro.php',
36 'purchase' => 'http://bestwebsoft.com/products/contact-form/buy/?k=773dc97bb3551975db0e32edca1a6d71&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
37 'pro_settings' => 'admin.php?page=contact_form_pro.php'
38 ),
39 'facebook-button-plugin/facebook-button-plugin.php' => array(
40 'name' => 'Facebook Like Button',
41 'description' => 'Allows you to add the Follow and Like buttons the easiest way.',
42 'link' => 'http://bestwebsoft.com/products/facebook-like-button/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
43 '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,
44 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Facebook+Like+Button+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
45 'settings' => 'admin.php?page=facebook-button-plugin.php',
46 'pro_version' => 'facebook-button-pro/facebook-button-pro.php',
47 '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,
48 'pro_settings' => 'admin.php?page=facebook-button-pro.php'
49 ),
50 'twitter-plugin/twitter.php' => array(
51 'name' => 'Twitter',
52 'description' => 'Allows you to add the Twitter "Follow" and "Like" buttons the easiest way.',
53 'link' => 'http://bestwebsoft.com/products/twitter/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
54 'download' => 'http://bestwebsoft.com/products/twitter/download/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
55 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Twitter+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
56 'settings' => 'admin.php?page=twitter.php',
57 'pro_version' => 'twitter-pro/twitter-pro.php',
58 'purchase' => 'http://bestwebsoft.com/products/twitter/buy/?k=63ecbf0cc9cebf060b5a3c9362299700&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
59 'pro_settings' => 'admin.php?page=twitter-pro.php'
60 ),
61 'portfolio/portfolio.php' => array(
62 'name' => 'Portfolio',
63 'description' => 'Allows you to create a page with the information about your past projects.',
64 'link' => 'http://bestwebsoft.com/products/portfolio/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
65 'download' => 'http://bestwebsoft.com/products/portfolio/download/?k=1249a890c5b7bba6bda3f528a94f768b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
66 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Portfolio+bestwebsoft&plugin-search-input=Search+Plugins',
67 'settings' => 'admin.php?page=portfolio.php'
68 ),
69 'gallery-plugin/gallery-plugin.php' => array(
70 'name' => 'Gallery',
71 'description' => 'Allows you to implement a Gallery page into your website.',
72 'link' => 'http://bestwebsoft.com/products/gallery/?k=2da21c0a64eec7ebf16337fa134c5f78&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
73 'download' => 'http://bestwebsoft.com/products/gallery/download/?k=2da21c0a64eec7ebf16337fa134c5f78&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
74 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Gallery+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
75 'settings' => 'admin.php?page=gallery-plugin.php',
76 'pro_version' => 'gallery-plugin-pro/gallery-plugin-pro.php',
77 'purchase' => 'http://bestwebsoft.com/products/gallery/buy/?k=382e5ce7c96a6391f5ffa5e116b37fe0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
78 'pro_settings' => 'admin.php?page=gallery-plugin-pro.php'
79 ),
80 'adsense-plugin/adsense-plugin.php'=> array(
81 'name' => 'Google AdSense',
82 'description' => 'Allows Google AdSense implementation to your website.',
83 'link' => 'http://bestwebsoft.com/products/google-adsense/?k=60e3979921e354feb0347e88e7d7b73d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
84 'download' => 'http://bestwebsoft.com/products/google-adsense/download/?k=60e3979921e354feb0347e88e7d7b73d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
85 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Adsense+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
86 'settings' => 'admin.php?page=adsense-plugin.php'
87 ),
88 'custom-search-plugin/custom-search-plugin.php'=> array(
89 'name' => 'Custom Search',
90 'description' => 'Allows to extend your website search functionality by adding a custom post type.',
91 'link' => 'http://bestwebsoft.com/products/custom-search/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
92 'download' => 'http://bestwebsoft.com/products/custom-search/download/?k=933be8f3a8b8719d95d1079d15443e29&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
93 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Search+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
94 'settings' => 'admin.php?page=custom_search.php'
95 ),
96 'quotes-and-tips/quotes-and-tips.php'=> array(
97 'name' => 'Quotes and Tips',
98 'description' => 'Allows you to implement quotes & tips block into your web site.',
99 'link' => 'http://bestwebsoft.com/products/quotes-and-tips/?k=5738a4e85a798c4a5162240c6515098d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
100 '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,
101 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Quotes+and+Tips+bestwebsoft&plugin-search-input=Search+Plugins',
102 'settings' => 'admin.php?page=quotes-and-tips.php'
103 ),
104 'google-sitemap-plugin/google-sitemap-plugin.php'=> array(
105 'name' => 'Google Sitemap',
106 'description' => 'Allows you to add sitemap file to Google Webmaster Tools.',
107 'link' => 'http://bestwebsoft.com/products/google-sitemap/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
108 'download' => 'http://bestwebsoft.com/products/google-sitemap/download/?k=5202b2f5ce2cf85daee5e5f79a51d806&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
109 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+sitemap+plugin+bestwebsoft&plugin-search-input=Search+Plugins',
110 'settings' => 'admin.php?page=google-sitemap-plugin.php',
111 'pro_version' => 'google-sitemap-pro/google-sitemap-pro.php',
112 'purchase' => 'http://bestwebsoft.com/products/google-sitemap/buy/?k=7ea384a5cc36cb4c22741caa20dcd56d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
113 'pro_settings' => 'admin.php?page=google-sitemap-pro.php'
114 ),
115 'updater/updater.php'=> array(
116 'name' => 'Updater',
117 'description' => 'Allows you to update plugins and WP core.',
118 'link' => 'http://bestwebsoft.com/products/updater/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
119 'download' => 'http://bestwebsoft.com/products/updater/download/?k=66f3ecd4c1912009d395c4bb30f779d1&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
120 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=updater+bestwebsoft&plugin-search-input=Search+Plugins',
121 'settings' => 'admin.php?page=updater-options',
122 'pro_version' => 'updater-pro/updater_pro.php',
123 'purchase' => 'http://bestwebsoft.com/products/updater/buy/?k=cf633acbefbdff78545347fe08a3aecb&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
124 'pro_settings' => 'admin.php?page=updater-pro-options'
125 ),
126 'custom-fields-search/custom-fields-search.php'=> array(
127 'name' => 'Custom Fields Search',
128 'description' => 'Allows you to add website search any existing custom fields.',
129 'link' => 'http://bestwebsoft.com/products/custom-fields-search/?k=f3f8285bb069250c42c6ffac95ed3284&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
130 '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,
131 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Fields+Search+bestwebsoft&plugin-search-input=Search+Plugins',
132 'settings' => 'admin.php?page=custom_fields_search.php'
133 ),
134 'google-one/google-plus-one.php' => array(
135 'name' => 'Google +1',
136 '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.',
137 'link' => 'http://bestwebsoft.com/products/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
138 '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,
139 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins',
140 'settings' => 'admin.php?page=google-plus-one.php',
141 'pro_version' => 'google-one-pro/google-plus-one-pro.php',
142 '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,
143 'pro_settings' => 'admin.php?page=google-plus-one-pro.php'
144 ),
145 'relevant/related-posts-plugin.php' => array(
146 'name' => 'Relevant - Related Posts',
147 'description' => 'Allows you to display related posts with similar words in category, tags, title or by adding special meta key for posts.',
148 'link' => 'http://bestwebsoft.com/products/related-posts/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
149 'download' => 'http://bestwebsoft.com/products/related-posts/download/?k=73fb737037f7141e66415ec259f7e426&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
150 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Related+Posts+Plugin+Bestwebsoft&plugin-search-input=Search+Plugins',
151 'settings' => 'admin.php?page=related-posts-plugin.php'
152 ),
153 'contact-form-to-db/contact_form_to_db.php' => array(
154 'name' => 'Contact Form To DB',
155 'description' => 'Allows you to manage the messages that have been sent from your site.',
156 '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,
157 '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,
158 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Contact+Form+to+DB+bestwebsoft&plugin-search-input=Search+Plugins',
159 'settings' => 'admin.php?page=cntctfrmtdb_settings',
160 'pro_version' => 'contact-form-to-db-pro/contact_form_to_db_pro.php',
161 '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,
162 'pro_settings' => 'admin.php?page=cntctfrmtdbpr_settings'
163 ),
164 'pdf-print/pdf-print.php' => array(
165 'name' => 'PDF & Print',
166 'description' => 'Allows you to create PDF and Print page with adding appropriate buttons to the content.',
167 'link' => 'http://bestwebsoft.com/products/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
168 'download' => 'http://bestwebsoft.com/products/pdf-print/download/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
169 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=PDF+Print+Bestwebsoft&plugin-search-input=Search+Plugins',
170 'settings' => 'admin.php?page=pdf-print.php',
171 'pro_version' => 'pdf-print-pro/pdf-print-pro.php',
172 'purchase' => 'http://bestwebsoft.com/products/pdf-print/buy/?k=fd43a0e659ddc170a9060027cbfdcc3a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
173 'pro_settings' => 'admin.php?page=pdf-print-pro.php'
174 ),
175 'donate-button/donate.php' => array(
176 'name' => 'Donate',
177 'description' => 'Makes it possible to place donation buttons of various payment systems on your web page.',
178 'link' => 'http://bestwebsoft.com/products/donate/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
179 'download' => 'http://bestwebsoft.com/products/donate/download/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
180 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Donate+Bestwebsoft&plugin-search-input=Search+Plugins',
181 'settings' => 'admin.php?page=donate.php'
182 ),
183 'post-to-csv/post-to-csv.php' => array(
184 'name' => 'Post To CSV',
185 'description' => 'The plugin allows to export posts of any types to a csv file.',
186 'link' => 'http://bestwebsoft.com/products/post-to-csv/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
187 '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,
188 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Post+To+CSV+Bestwebsoft&plugin-search-input=Search+Plugins',
189 'settings' => 'admin.php?page=post-to-csv.php'
190 ),
191 'google-shortlink/google-shortlink.php' => array(
192 'name' => 'Google Shortlink',
193 'description' => 'Allows you to get short links from goo.gl servise without leaving your site.',
194 'link' => 'http://bestwebsoft.com/products/google-shortlink/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
195 'download' => 'http://bestwebsoft.com/products/google-shortlink/download/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
196 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Google+Shortlink+Bestwebsoft&plugin-search-input=Search+Plugins',
197 'settings' => 'admin.php?page=gglshrtlnk_options'
198 ),
199 'htaccess/htaccess.php' => array(
200 'name' => 'Htaccess',
201 'description' => 'Allows controlling access to your website using the directives Allow and Deny.',
202 'link' => 'http://bestwebsoft.com/products/htaccess/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
203 'download' => 'http://bestwebsoft.com/products/htaccess/download/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
204 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Htaccess+Bestwebsoft&plugin-search-input=Search+Plugins',
205 'settings' => 'admin.php?page=htaccess.php'
206 ),
207 'google-captcha/google-captcha.php' => array(
208 'name' => 'Google Captcha (reCAPTCHA)',
209 'description' => 'Plugin intended to prove that the visitor is a human being and not a spam robot.',
210 'link' => 'http://bestwebsoft.com/products/google-captcha/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
211 'download' => 'http://bestwebsoft.com/products/google-captcha/download/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
212 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Google+Captcha+Bestwebsoft&plugin-search-input=Search+Plugins',
213 'settings' => 'admin.php?page=google-captcha.php'
214 ),
215 'sender/sender.php' => array(
216 'name' => 'Sender',
217 'description' => 'You can send mails to all users or to certain categories of users.',
218 'link' => 'http://bestwebsoft.com/products/sender/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
219 'download' => 'http://bestwebsoft.com/products/sender/download/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
220 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Sender+Bestwebsoft&plugin-search-input=Search+Plugins',
221 'settings' => 'admin.php?page=sndr_settings',
222 'pro_version' => 'sender-pro/sender-pro.php',
223 'purchase' => 'http://bestwebsoft.com/products/sender/buy/?k=dc5d1a87bdc8aeab2de40ffb99b38054&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
224 'pro_settings' => 'admin.php?page=sndrpr_settings'
225 ),
226 'subscriber/subscriber.php' => array(
227 'name' => 'Subscriber',
228 'description' => 'This plugin allows you to subscribe users for newsletters from your website.',
229 'link' => 'http://bestwebsoft.com/products/subscriber/?k=a4ecc1b7800bae7329fbe8b4b04e9c88&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
230 'download' => 'http://bestwebsoft.com/products/subscriber/download/?k=a4ecc1b7800bae7329fbe8b4b04e9c88&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
231 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Subscriber+Bestwebsoft&plugin-search-input=Search+Plugins',
232 'settings' => 'admin.php?page=sbscrbr_settings_page'
233 ),
234 'contact-form-multi/contact-form-multi.php' => array(
235 'name' => 'Contact Form Multi',
236 'description' => 'This plugin allows you to subscribe users for newsletters from your website.',
237 'link' => 'http://bestwebsoft.com/products/contact-form-multi/?k=83cdd9e72a9f4061122ad28a67293c72&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
238 '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,
239 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Contact+Form+Multi+Bestwebsoft&plugin-search-input=Search+Plugins',
240 'settings' => '',
241 'pro_version' => 'contact-form-multi-pro/contact-form-multi-pro.php',
242 '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,
243 'pro_settings' => ''
244 ),
245 'bws-google-maps/bws-google-maps.php' => array(
246 'name' => 'BestWebSoft Google Maps',
247 'description' => 'Easy to set up and insert Google Maps to your website.',
248 'link' => 'http://bestwebsoft.com/products/bws-google-maps/?k=d8fac412d7359ebaa4ff53b46572f9f7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
249 '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,
250 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=BestWebSoft+Google+Maps&plugin-search-input=Search+Plugins',
251 'settings' => 'admin.php?page=bws-google-maps.php',
252 'pro_version' => 'bws-google-maps-pro/bws-google-maps-pro.php',
253 '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,
254 'pro_settings' => 'admin.php?page=bws-google-maps-pro.php'
255 ),
256 'bws-google-analytics/bws-google-analytics.php' => array(
257 'name' => 'BestWebSoft Google Analytics',
258 'description' => 'Allows you to retrieve basic stats from Google Analytics account and add the tracking code to your blog.',
259 'link' => 'http://bestwebsoft.com/products/bws-google-analytics/?k=261c74cad753fb279cdf5a5db63fbd43&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
260 '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,
261 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=BestWebSoft+Google+Analytics&plugin-search-input=Search+Plugins',
262 'settings' => 'admin.php?page=bws-google-analytics.php'
263 ),
264 'db-manager/db-manager.php' => array(
265 'name' => 'DB manager',
266 'description' => 'Allows you to download the latest version of PhpMyadmin and Dumper and manage your site.',
267 'link' => 'http://bestwebsoft.com/products/db-manager/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
268 'download' => 'http://bestwebsoft.com/products/db-manager/download/?k=01ed9731780d87f85f5901064b7d76d8&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
269 '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,
270 'settings' => 'admin.php?page=db-manager.php'
271 ),
272 'user-role/user-role.php' => array(
273 'name' => 'User Role',
274 'description' => 'Allows to change wordpress user role capabilities.',
275 'link' => 'http://bestwebsoft.com/products/user-role/?k=dfe2244835c6fbf601523964b3f34ccc&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
276 'download' => 'http://bestwebsoft.com/products/user-role/download/?k=dfe2244835c6fbf601523964b3f34ccc&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
277 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=User+Role+BestWebSoft&plugin-search-input=Search+Plugins',
278 'settings' => 'admin.php?page=user-role.php',
279 'pro_version' => 'user-role-pro/user-role-pro.php',
280 'purchase' => 'http://bestwebsoft.com/products/user-role/buy/?k=cfa9cea6613fb3d7c0a3622fa2faaf46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
281 'pro_settings' => 'admin.php?page=user-role-pro.php'
282 ),
283 'email-queue/email-queue.php' => array(
284 'name' => 'Email Queue',
285 'description' => 'Allows to manage email massages sent by BestWebSoft plugins.',
286 'link' => 'http://bestwebsoft.com/products/email-queue/?k=e345e1b6623f0dca119bc2d9433b130b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
287 'download' => 'http://bestwebsoft.com/products/email-queue/download/?k=e345e1b6623f0dca119bc2d9433b130b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
288 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Email+Queue+BestWebSoft&plugin-search-input=Search+Plugins',
289 'settings' => 'admin.php?page=mlq_settings'
290 ),
291 'limit-attempts/limit-attempts.php' => array(
292 'name' => 'Limit Attempts',
293 'description' => 'Allows you to limit rate of login attempts by the ip, and create whitelist and blacklist.',
294 'link' => 'http://bestwebsoft.com/products/limit-attempts/?k=b14e1697ee4d008abcd4bd34d492573a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
295 'download' => 'http://bestwebsoft.com/products/limit-attempts/download/?k=b14e1697ee4d008abcd4bd34d492573a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
296 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Limit+Attempts+BestWebSoft&plugin-search-input=Search+Plugins',
297 'settings' => 'admin.php?page=limit-attempts.php',
298 'pro_version' => 'limit-attempts-pro/limit-attempts-pro.php',
299 'purchase' => 'http://bestwebsoft.com/products/limit-attempts/buy/?k=9d42cdf22c7fce2c4b6b447e6a2856e0&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
300 'pro_settings' => 'admin.php?page=limit-attempts-pro.php'
301 ),
302 'job-board/job-board.php' => array(
303 'name' => 'Job board',
304 'description' => 'Allows to create a job-board page on your site.',
305 'link' => 'http://bestwebsoft.com/products/job-board/?k=b0c504c9ce6edd6692e04222af3fed6f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
306 'download' => 'http://bestwebsoft.com/products/job-board/download/?k=b0c504c9ce6edd6692e04222af3fed6f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
307 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Job+board+BestWebSoft&plugin-search-input=Search+Plugins',
308 'settings' => 'admin.php?page=job-board.php'
309 ),
310 'multilanguage/multilanguage.php' => array(
311 'name' => 'Multilanguage',
312 'description' => 'Allows to create content on a Wordpress site in different languages.',
313 'link' => 'http://bestwebsoft.com/products/multilanguage/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
314 'download' => 'http://bestwebsoft.com/products/multilanguage/download/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
315 'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Multilanguage+BestWebSoft&plugin-search-input=Search+Plugins',
316 'settings' => 'admin.php?page=mltlngg_settings'
317 )
318 );
319
320 $all_plugins = get_plugins();
321 $active_plugins = get_option( 'active_plugins' );
322 $recommend_plugins = array_diff_key( $bws_plugins, $all_plugins );
323 $bws_plugins_pro = array();
324
325 foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
326 if ( ! isset( $all_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
327 unset( $recommend_plugins[ $key_plugin ] );
328 }
329 }
330
331 foreach ( $all_plugins as $key_plugin => $value_plugin ) {
332 if ( isset( $value_plugin['Author'] ) && $value_plugin['Author'] != "BestWebSoft" )
333 unset( $all_plugins[ $key_plugin ] );
334 else {
335 foreach ( $bws_plugins as $key => $value ) {
336 if ( isset( $value['pro_version'] ) && $value['pro_version'] == $key_plugin ) {
337 $bws_plugins_pro[ $key_plugin ] = $key;
338 unset( $all_plugins[ $key ] );
339 }
340 }
341 }
342 }
343
344 if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) {
345 $all_plugins = get_plugins();
346 $active_plugins = get_option( 'active_plugins' );
347 $mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
348 if ( is_array( $mysql_info ) )
349 $sql_mode = $mysql_info[0]->Value;
350 if ( empty( $sql_mode ) )
351 $sql_mode = __( 'Not set', 'bestwebsoft' );
352
353 $safe_mode = ( ini_get( 'safe_mode' ) ) ? __( 'On', 'bestwebsoft' ) : __( 'Off', 'bestwebsoft' );
354 $allow_url_fopen = ( ini_get( 'allow_url_fopen' ) ) ? __( 'On', 'bestwebsoft' ) : __( 'Off', 'bestwebsoft' );
355 $upload_max_filesize = ( ini_get( 'upload_max_filesize' ) )? ini_get( 'upload_max_filesize' ) : __( 'N/A', 'bestwebsoft' );
356 $post_max_size = ( ini_get( 'post_max_size' ) ) ? ini_get( 'post_max_size' ) : __( 'N/A', 'bestwebsoft' );
357 $max_execution_time = ( ini_get( 'max_execution_time' ) ) ? ini_get( 'max_execution_time' ) : __( 'N/A', 'bestwebsoft' );
358 $memory_limit = ( ini_get( 'memory_limit' ) ) ? ini_get( 'memory_limit' ) : __( 'N/A', 'bestwebsoft' );
359 $memory_usage = ( function_exists( 'memory_get_usage' ) ) ? round( memory_get_usage() / 1024 / 1024, 2 ) . __( ' Mb', 'bestwebsoft' ) : __( 'N/A', 'bestwebsoft' );
360 $exif_read_data = ( is_callable( 'exif_read_data' ) ) ? __( 'Yes', 'bestwebsoft' ) . " ( V" . substr( phpversion( 'exif' ), 0,4 ) . ")" : __( 'No', 'bestwebsoft' );
361 $iptcparse = ( is_callable( 'iptcparse' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
362 $xml_parser_create = ( is_callable( 'xml_parser_create' ) ) ? __( 'Yes', 'bestwebsoft' ) : __( 'No', 'bestwebsoft' );
363 $theme = ( function_exists( 'wp_get_theme' ) ) ? wp_get_theme() : get_theme( get_current_theme() );
364
365 if ( function_exists( 'is_multisite' ) ) {
366 if ( is_multisite() )
367 $multisite = __( 'Yes', 'bestwebsoft' );
368 else
369 $multisite = __( 'No', 'bestwebsoft' );
370 } else
371 $multisite = __( 'N/A', 'bestwebsoft' );
372
373 $system_info = array(
374 'system_info' => '',
375 'active_plugins' => '',
376 'inactive_plugins' => ''
377 );
378 $system_info['system_info'] = array(
379 __( 'Operating System', 'bestwebsoft' ) => PHP_OS,
380 __( 'Server', 'bestwebsoft' ) => $_SERVER["SERVER_SOFTWARE"],
381 __( 'Memory usage', 'bestwebsoft' ) => $memory_usage,
382 __( 'MYSQL Version', 'bestwebsoft' ) => $wpdb->get_var( "SELECT VERSION() AS version" ),
383 __( 'SQL Mode', 'bestwebsoft' ) => $sql_mode,
384 __( 'PHP Version', 'bestwebsoft' ) => PHP_VERSION,
385 __( 'PHP Safe Mode', 'bestwebsoft' ) => $safe_mode,
386 __( 'PHP Allow URL fopen', 'bestwebsoft' ) => $allow_url_fopen,
387 __( 'PHP Memory Limit', 'bestwebsoft' ) => $memory_limit,
388 __( 'PHP Max Upload Size', 'bestwebsoft' ) => $upload_max_filesize,
389 __( 'PHP Max Post Size', 'bestwebsoft' ) => $post_max_size,
390 __( 'PHP Max Script Execute Time', 'bestwebsoft' ) => $max_execution_time,
391 __( 'PHP Exif support', 'bestwebsoft' ) => $exif_read_data,
392 __( 'PHP IPTC support', 'bestwebsoft' ) => $iptcparse,
393 __( 'PHP XML support', 'bestwebsoft' ) => $xml_parser_create,
394 __( 'Site URL', 'bestwebsoft' ) => get_option( 'siteurl' ),
395 __( 'Home URL', 'bestwebsoft' ) => get_option( 'home' ),
396 '$_SERVER[HTTP_HOST]' => $_SERVER['HTTP_HOST'],
397 '$_SERVER[SERVER_NAME]' => $_SERVER['SERVER_NAME'],
398 __( 'WordPress Version', 'bestwebsoft' ) => $wp_version,
399 __( 'WordPress DB Version', 'bestwebsoft' ) => get_option( 'db_version' ),
400 __( 'Multisite', 'bestwebsoft' ) => $multisite,
401 __( 'Active Theme', 'bestwebsoft' ) => $theme['Name'] . ' ' . $theme['Version']
402 );
403 foreach ( $all_plugins as $path => $plugin ) {
404 if ( is_plugin_active( $path ) )
405 $system_info['active_plugins'][ $plugin['Name'] ] = $plugin['Version'];
406 else
407 $system_info['inactive_plugins'][ $plugin['Name'] ] = $plugin['Version'];
408 }
409 }
410
411 if ( ( isset( $_REQUEST['bwsmn_form_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ) ) ||
412 ( isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ) ) ) {
413 if ( isset( $_REQUEST['bwsmn_form_email'] ) ) {
414 $bwsmn_form_email = esc_html( trim( $_REQUEST['bwsmn_form_email'] ) );
415 if ( $bwsmn_form_email == "" || ! is_email( $bwsmn_form_email ) ) {
416 $error = __( "Please enter a valid email address.", 'bestwebsoft' );
417 } else {
418 $email = $bwsmn_form_email;
419 $bwsmn_form_email = '';
420 $message = __( 'Email with system info is sent to ', 'bestwebsoft' ) . $email;
421 }
422 } else {
423 $email = 'plugin_system_status@bestwebsoft.com';
424 $message = __( 'Thank you for contacting us.', 'bestwebsoft' );
425 }
426
427 if ( $error == '' ) {
428 $headers = 'MIME-Version: 1.0' . "\n";
429 $headers .= 'Content-type: text/html; charset=utf-8' . "\n";
430 $headers .= 'From: ' . get_option( 'admin_email' );
431 $message_text = '<html><head><title>System Info From ' . $home_url . '</title></head><body>
432 <h4>Environment</h4>
433 <table>';
434 foreach ( $system_info['system_info'] as $key => $value ) {
435 $message_text .= '<tr><td>'. $key .'</td><td>'. $value .'</td></tr>';
436 }
437 $message_text .= '</table>';
438 if ( ! empty( $system_info['active_plugins'] ) ) {
439 $message_text .= '<h4>Active Plugins</h4>
440 <table>';
441 foreach ( $system_info['active_plugins'] as $key => $value ) {
442 $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
443 }
444 $message_text .= '</table>';
445 }
446 if ( ! empty( $system_info['inactive_plugins'] ) ) {
447 $message_text .= '<h4>Inactive Plugins</h4>
448 <table>';
449 foreach ( $system_info['inactive_plugins'] as $key => $value ) {
450 $message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>';
451 }
452 $message_text .= '</table>';
453 }
454 $message_text .= '</body></html>';
455 $result = wp_mail( $email, 'System Info From ' . $home_url, $message_text, $headers );
456 if ( $result != true )
457 $error = __( "Sorry, email message could not be delivered.", 'bestwebsoft' );
458 }
459 } ?>
460 <div class="wrap">
461 <div class="icon32 icon32-bws" id="icon-options-general"></div>
462 <h2>
463 <span class="bws_main title">BestWebSoft</span>
464 <ul class="subsubsub bws_title_menu">
465 <li><a href="http://support.bestwebsoft.com/home" target="_blank"><?php _e( 'Need help?', 'bestwebsoft' ); ?></a></li> |
466 <li><a href="http://bestwebsoft.com/wp-login.php" target="_blank"><?php _e( 'Client area', 'bestwebsoft' ); ?></a></li>
467 <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>
468 </ul>
469 <div class="clear"></div>
470 </h2>
471 <h2 class="nav-tab-wrapper">
472 <a class="nav-tab<?php if ( !isset( $_GET['action'] ) ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
473 <?php if ( $wp_version >= '3.4' ) { ?>
474 <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>
475 <?php } ?>
476 </h2>
477 <?php if ( ! isset( $_GET['action'] ) ) { ?>
478 <ul class="subsubsub">
479 <li><a <?php if ( !isset( $_GET['sub'] ) ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins"><?php _e( 'All', 'bestwebsoft' ); ?></a></li> |
480 <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> |
481 <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>
482 </ul>
483 <div class="clear"></div>
484 <?php if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
485 <h4 class="bws_installed"><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
486 <?php foreach ( $all_plugins as $key_plugin => $value_plugin ) {
487 if ( isset( $bws_plugins_pro[ $key_plugin ] ) )
488 $key_plugin = $bws_plugins_pro[ $key_plugin ];
489
490 if ( isset( $bws_plugins[ $key_plugin ] ) ) {
491 $key_plugin_explode = explode( '-plugin/', $key_plugin );
492 if ( isset( $key_plugin_explode[1] ) )
493 $icon = $key_plugin_explode[0];
494 else {
495 $key_plugin_explode = explode( '/', $key_plugin );
496 $icon = $key_plugin_explode[0];
497 }
498 }
499
500 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'] ) ) ) { ?>
501 <div class="bws_product_box bws_exist_overlay">
502 <div class="bws_product">
503 <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
504 <div class="bws_product_content">
505 <div class="bws_product_icon">
506 <div class="bws_product_icon_pro">PRO</div>
507 <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
508 </div>
509 <div class="bws_product_description"><?php echo $value_plugin["Description"]; ?></div>
510 </div>
511 <div class="clear"></div>
512 </div>
513 <div class="bws_product_links">
514 <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
515 <?php if ( '' != $bws_plugins[ $key_plugin ]["pro_settings"] ) { ?>
516 <span> | </span>
517 <a href="<?php echo $bws_plugins[ $key_plugin ]["pro_settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
518 <?php } ?>
519 </div>
520 </div>
521 <?php } elseif ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) {
522 if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
523 <div class="bws_product_box bws_product_deactivated">
524 <div class="bws_product">
525 <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
526 <div class="bws_product_content">
527 <div class="bws_product_icon">
528 <div class="bws_product_icon_pro">PRO</div>
529 <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
530 </div>
531 <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
532 </div>
533 <div class="clear"></div>
534 </div>
535 <div class="bws_product_links">
536 <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
537 <span> | </span>
538 <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
539 </div>
540 </div>
541 <?php } else { ?>
542 <div class="bws_product_box bws_product_free">
543 <div class="bws_product">
544 <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
545 <div class="bws_product_content">
546 <div class="bws_product_icon">
547 <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
548 </div>
549 <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
550 </div>
551 <?php if ( isset( $bws_plugins[ $key_plugin ]["purchase"] ) ) { ?>
552 <a class="bws_product_button" href="<?php echo $bws_plugins[ $key_plugin ]["purchase"]; ?>" target="_blank">
553 <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
554 </a>
555 <?php } else { ?>
556 <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
557 <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
558 </a>
559 <?php } ?>
560 <div class="clear"></div>
561 </div>
562 <div class="bws_product_links">
563 <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
564 <?php if ( '' != $bws_plugins[ $key_plugin ]["settings"] ) { ?>
565 <span> | </span>
566 <a href="<?php echo $bws_plugins[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
567 <?php } ?>
568 </div>
569 </div>
570 <?php }
571 } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
572 <div class="bws_product_box bws_product_deactivated bws_product_free">
573 <div class="bws_product">
574 <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
575 <div class="bws_product_content">
576 <div class="bws_product_icon">
577 <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
578 </div>
579 <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
580 </div>
581 <?php if ( isset( $bws_plugins[ $key_plugin ]["purchase"] ) ) { ?>
582 <a class="bws_product_button" href="<?php echo $bws_plugins[ $key_plugin ]["purchase"]; ?>" target="_blank">
583 <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
584 </a>
585 <?php } else { ?>
586 <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
587 <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
588 </a>
589 <?php } ?>
590 <div class="clear"></div>
591 </div>
592 <div class="bws_product_links">
593 <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
594 <span> | </span>
595 <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
596 </div>
597 </div>
598 <?php }
599 }
600 } ?>
601 <div class="clear"></div>
602 <?php if ( ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
603 <h4 class="bws_recommended"><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
604 <?php foreach ( $recommend_plugins as $key_plugin => $value_plugin ) {
605
606 if ( isset( $bws_plugins[ $key_plugin ] ) ) {
607 $key_plugin_explode = explode( '-plugin/', $key_plugin );
608 if ( isset( $key_plugin_explode[1] ) )
609 $icon = $key_plugin_explode[0];
610 else {
611 $key_plugin_explode = explode( '/', $key_plugin );
612 $icon = $key_plugin_explode[0];
613 }
614 } ?>
615 <div class="bws_product_box">
616 <div class="bws_product">
617 <div class="bws_product_title"><?php echo $value_plugin["name"]; ?></div>
618 <div class="bws_product_content">
619 <div class="bws_product_icon">
620 <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) ) { ?>
621 <div class="bws_product_icon_pro">PRO</div>
622 <?php } ?>
623 <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
624 </div>
625 <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
626 </div>
627 <?php if ( isset( $bws_plugins[ $key_plugin ]["pro_version"] ) ) { ?>
628 <a class="bws_product_button" href="<?php echo $bws_plugins[ $key_plugin ]["purchase"]; ?>" target="_blank">
629 <?php _e( 'Go', 'bestwebsoft' ); ?> <strong>PRO</strong>
630 </a>
631 <?php } else { ?>
632 <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
633 <strong><?php _e( 'DONATE', 'bestwebsoft' ); ?></strong>
634 </a>
635 <?php } ?>
636 </div>
637 <div class="clear"></div>
638 <div class="bws_product_links">
639 <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
640 <span> | </span>
641 <a href="<?php echo $bws_plugins[ $key_plugin ]["wp_install"]; ?>" target="_blank"><?php _e( "Install now", 'bestwebsoft' ); ?></a>
642 </div>
643 </div>
644 <?php }
645 } ?>
646 <?php } elseif ( 'themes' == $_GET['action'] ) { ?>
647 <div id="availablethemes">
648 <?php global $tabs, $tab, $paged, $type, $theme_field_defaults;
649 include( ABSPATH . 'wp-admin/includes/theme-install.php' );
650 include( ABSPATH . 'wp-admin/includes/class-wp-themes-list-table.php' );
651 include( ABSPATH . 'wp-admin/includes/class-wp-theme-install-list-table.php' );
652
653 $theme_class = new WP_Theme_Install_List_Table();
654 $paged = $theme_class->get_pagenum();
655 $per_page = 36;
656 $args = array( 'page' => $paged, 'per_page' => $per_page, 'fields' => $theme_field_defaults );
657 $args['author'] = 'bestwebsoft';
658 $args = apply_filters( 'install_themes_table_api_args_search', $args );
659 $api = themes_api( 'query_themes', $args );
660
661 if ( is_wp_error( $api ) )
662 wp_die( $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try again' ) . '</a>' );
663
664 $theme_class->items = $api->themes;
665 $theme_class->set_pagination_args( array(
666 'total_items' => $api->info['results'],
667 'per_page' => $per_page,
668 'infinite_scroll' => true,
669 ) );
670 $themes = $theme_class->items;
671 if ( $wp_version < '3.9' ) {
672 foreach ( $themes as $theme ) { ?>
673 <div class="available-theme installable-theme"><?php
674 global $themes_allowedtags;
675 if ( empty( $theme ) )
676 return;
677
678 $name = wp_kses( $theme->name, $themes_allowedtags );
679 $author = wp_kses( $theme->author, $themes_allowedtags );
680 $preview_title = sprintf( __('Preview &#8220;%s&#8221;'), $name );
681 $preview_url = add_query_arg( array(
682 'tab' => 'theme-information',
683 'theme' => $theme->slug,
684 ), self_admin_url( 'theme-install.php' ) );
685
686 $actions = array();
687
688 $install_url = add_query_arg( array(
689 'action' => 'install-theme',
690 'theme' => $theme->slug,
691 ), self_admin_url( 'update.php' ) );
692
693 $update_url = add_query_arg( array(
694 'action' => 'upgrade-theme',
695 'theme' => $theme->slug,
696 ), self_admin_url( 'update.php' ) );
697
698 $status = 'install';
699 $installed_theme = wp_get_theme( $theme->slug );
700 if ( $installed_theme->exists() ) {
701 if ( version_compare( $installed_theme->get('Version'), $theme->version, '=' ) )
702 $status = 'latest_installed';
703 elseif ( version_compare( $installed_theme->get('Version'), $theme->version, '>' ) )
704 $status = 'newer_installed';
705 else
706 $status = 'update_available';
707 }
708 switch ( $status ) {
709 default:
710 case 'install':
711 $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>';
712 break;
713 case 'update_available':
714 $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>';
715 break;
716 case 'newer_installed':
717 case 'latest_installed':
718 $actions[] = '<span class="install-now" title="' . esc_attr__( 'This theme is already installed and is up to date' ) . '">' . _x( 'Installed', 'theme' ) . '</span>';
719 break;
720 }
721 $actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s' ), $name ) ) . '">' . __( 'Preview' ) . '</a>';
722 $actions = apply_filters( 'theme_install_actions', $actions, $theme ); ?>
723 <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
724 <img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' />
725 </a>
726 <h3><?php echo $name; ?></h3>
727 <div class="theme-author"><?php printf( __( 'By %s' ), $author ); ?></div>
728 <div class="action-links">
729 <ul>
730 <?php foreach ( $actions as $action ): ?>
731 <li><?php echo $action; ?></li>
732 <?php endforeach; ?>
733 <li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e('Details') ?></a></li>
734 </ul>
735 </div>
736 <?php $theme_class->install_theme_info( $theme ); ?>
737 </div>
738 <?php }
739 // end foreach $theme_names
740 $theme_class->theme_installer();
741 } else { ?>
742 <div class="theme-browser">
743 <div class="themes">
744 <?php foreach ( $themes as $key => $theme ) {
745 $installed_theme = wp_get_theme( $theme->slug );
746 if ( $installed_theme->exists() )
747 $theme->installed = true;
748 else
749 $theme->installed = false;
750 ?>
751 <div class="theme" tabindex="0">
752 <?php if ( $theme->screenshot_url ) { ?>
753 <div class="theme-screenshot">
754 <img src="<?php echo $theme->screenshot_url; ?>" alt="" />
755 </div>
756 <?php } else { ?>
757 <div class="theme-screenshot blank"></div>
758 <?php } ?>
759 <div class="theme-author"><?php printf( __( 'By %s' ), $theme->author ); ?></div>
760 <h3 class="theme-name"><?php echo $theme->name; ?></h3>
761 <div class="theme-actions">
762 <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>
763 </div>
764 <?php if ( $theme->installed ) { ?>
765 <div class="theme-installed"><?php _e( 'Already Installed' ); ?></div>
766 <?php } ?>
767 </div>
768 <?php } ?>
769 <br class="clear" />
770 </div>
771 </div>
772 <div class="theme-overlay"></div>
773 <?php } ?>
774 </div>
775 <?php } elseif ( 'system_status' == $_GET['action'] ) { ?>
776 <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>
777 <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
778 <h3><?php _e( 'System status', 'bestwebsoft' ); ?></h3>
779 <div class="inside">
780 <table class="bws_system_info">
781 <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
782 <tbody>
783 <?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
784 <tr>
785 <td scope="row"><?php echo $key; ?></td>
786 <td scope="row"><?php echo $value; ?></td>
787 </tr>
788 <?php } ?>
789 </tbody>
790 </table>
791 <table class="bws_system_info">
792 <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
793 <tbody>
794 <?php if ( ! empty( $system_info['active_plugins'] ) ) {
795 foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
796 <tr>
797 <td scope="row"><?php echo $key; ?></td>
798 <td scope="row"><?php echo $value; ?></td>
799 </tr>
800 <?php }
801 } ?>
802 </tbody>
803 </table>
804 <table class="bws_system_info">
805 <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
806 <tbody>
807 <?php if ( ! empty( $system_info['inactive_plugins'] ) ) {
808 foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
809 <tr>
810 <td scope="row"><?php echo $key; ?></td>
811 <td scope="row"><?php echo $value; ?></td>
812 </tr>
813 <?php }
814 } ?>
815 </tbody>
816 </table>
817 <div class="clear"></div>
818 <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
819 <p>
820 <input type="hidden" name="bwsmn_form_submit" value="submit" />
821 <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
822 <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
823 </p>
824 </form>
825 <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
826 <p>
827 <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
828 <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
829 <input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
830 <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
831 </p>
832 </form>
833 </div>
834 <?php } ?>
835 </div>
836 <?php }
837 }
838
839 if ( ! function_exists ( 'bws_plugin_init' ) ) {
840 function bws_plugin_init() {
841 // Internationalization, first(!)
842 load_plugin_textdomain( 'bestwebsoft', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
843 }
844 }
845
846 if ( ! function_exists ( 'bws_admin_enqueue_scripts' ) ) {
847 function bws_admin_enqueue_scripts() {
848 global $wp_version;
849 if ( $wp_version < 3.8 )
850 wp_enqueue_style( 'bws-admin-stylesheet', plugins_url( 'css/general_style_wp_before_3.8.css', __FILE__ ) );
851 else
852 wp_enqueue_style( 'bws-admin-stylesheet', plugins_url( 'css/general_style.css', __FILE__ ) );
853
854 if ( isset( $_GET['page'] ) && $_GET['page'] == "bws_plugins" ) {
855 wp_enqueue_style( 'bws_menu_style', plugins_url( 'css/style.css', __FILE__ ) );
856 wp_enqueue_script( 'bws_menu_script', plugins_url( 'js/bws_menu.js' , __FILE__ ) );
857 if ( $wp_version >= '3.8' )
858 wp_enqueue_script( 'theme-install' );
859 elseif ( $wp_version >= '3.4' )
860 wp_enqueue_script( 'theme' );
861 }
862 }
863 }
864
865 if ( ! function_exists ( 'bws_admin_head' ) ) {
866 function bws_admin_head() {
867 if ( isset( $_GET['page'] ) && $_GET['page'] == "bws_plugins" ) { ?>
868 <noscript>
869 <style type="text/css">
870 .bws_product_button {
871 display: inline-block;
872 }
873 </style>
874 </noscript>
875 <?php }
876 }
877 }
878
879 add_action( 'admin_init', 'bws_plugin_init' );
880 add_action( 'admin_enqueue_scripts', 'bws_admin_enqueue_scripts' );
881 add_action( 'admin_head', 'bws_admin_head' );
882 ?>