0
|
1 |
<?php |
|
2 |
/* |
|
3 |
Function for displaying BestWebSoft menu |
|
4 |
*/ |
|
5 |
if ( ! function_exists( 'bws_add_menu_render' ) ) { |
|
6 |
function bws_add_menu_render() { |
|
7 |
global $wpdb, $wp_version, $title; |
|
8 |
$active_plugins = get_option('active_plugins'); |
|
9 |
$all_plugins = get_plugins(); |
|
10 |
$error = ''; |
|
11 |
$message = ''; |
|
12 |
$bwsmn_form_email = ''; |
|
13 |
|
|
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 |
); |
|
34 |
foreach ( $array_plugins as $plugins ) { |
|
35 |
if( 0 < count( preg_grep( "/".$plugins[0]."/", $active_plugins ) ) ) { |
|
36 |
$array_activate[$count_activate]["title"] = $plugins[1]; |
|
37 |
$array_activate[$count_activate]["link"] = $plugins[2]; |
|
38 |
$array_activate[$count_activate]["href"] = $plugins[3]; |
|
39 |
$array_activate[$count_activate]["url"] = $plugins[5]; |
|
40 |
$count_activate++; |
|
41 |
} else if ( array_key_exists( str_replace( "\\", "", $plugins[0] ), $all_plugins ) ) { |
|
42 |
$array_install[$count_install]["title"] = $plugins[1]; |
|
43 |
$array_install[$count_install]["link"] = $plugins[2]; |
|
44 |
$array_install[$count_install]["href"] = $plugins[3]; |
|
45 |
$count_install++; |
|
46 |
} else { |
|
47 |
$array_recomend[$count_recomend]["title"] = $plugins[1]; |
|
48 |
$array_recomend[$count_recomend]["link"] = $plugins[2]; |
|
49 |
$array_recomend[$count_recomend]["href"] = $plugins[3]; |
|
50 |
$array_recomend[$count_recomend]["slug"] = $plugins[4]; |
|
51 |
$count_recomend++; |
|
52 |
} |
|
53 |
} |
|
54 |
$array_activate_pro = array(); |
|
55 |
$array_install_pro = array(); |
|
56 |
$array_recomend_pro = array(); |
|
57 |
$count_activate_pro = $count_install_pro = $count_recomend_pro = 0; |
|
58 |
$array_plugins_pro = array( |
|
59 |
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' ), |
|
60 |
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' ), |
|
61 |
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' ) |
|
62 |
); |
|
63 |
foreach ( $array_plugins_pro as $plugins ) { |
|
64 |
if( 0 < count( preg_grep( "/".$plugins[0]."/", $active_plugins ) ) ) { |
|
65 |
$array_activate_pro[$count_activate_pro]["title"] = $plugins[1]; |
|
66 |
$array_activate_pro[$count_activate_pro]["link"] = $plugins[2]; |
|
67 |
$array_activate_pro[$count_activate_pro]["href"] = $plugins[3]; |
|
68 |
$array_activate_pro[$count_activate_pro]["url"] = $plugins[4]; |
|
69 |
$count_activate_pro++; |
|
70 |
} else if( array_key_exists(str_replace( "\\", "", $plugins[0]), $all_plugins ) ) { |
|
71 |
$array_install_pro[$count_install_pro]["title"] = $plugins[1]; |
|
72 |
$array_install_pro[$count_install_pro]["link"] = $plugins[2]; |
|
73 |
$array_install_pro[$count_install_pro]["href"] = $plugins[3]; |
|
74 |
$count_install_pro++; |
|
75 |
} else { |
|
76 |
$array_recomend_pro[$count_recomend_pro]["title"] = $plugins[1]; |
|
77 |
$array_recomend_pro[$count_recomend_pro]["link"] = $plugins[2]; |
|
78 |
$array_recomend_pro[$count_recomend_pro]["href"] = $plugins[3]; |
|
79 |
$count_recomend_pro++; |
|
80 |
} |
|
81 |
} |
|
82 |
$sql_version = $wpdb->get_var( "SELECT VERSION() AS version" ); |
|
83 |
$mysql_info = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" ); |
|
84 |
if ( is_array( $mysql_info) ) |
|
85 |
$sql_mode = $mysql_info[0]->Value; |
|
86 |
if ( empty( $sql_mode ) ) |
|
87 |
$sql_mode = __( 'Not set', 'bestwebsoft' ); |
|
88 |
if ( ini_get( 'safe_mode' ) ) |
|
89 |
$safe_mode = __( 'On', 'bestwebsoft' ); |
|
90 |
else |
|
91 |
$safe_mode = __( 'Off', 'bestwebsoft' ); |
|
92 |
if ( ini_get( 'allow_url_fopen' ) ) |
|
93 |
$allow_url_fopen = __( 'On', 'bestwebsoft' ); |
|
94 |
else |
|
95 |
$allow_url_fopen = __( 'Off', 'bestwebsoft' ); |
|
96 |
if ( ini_get( 'upload_max_filesize' ) ) |
|
97 |
$upload_max_filesize = ini_get( 'upload_max_filesize' ); |
|
98 |
else |
|
99 |
$upload_max_filesize = __( 'N/A', 'bestwebsoft' ); |
|
100 |
if ( ini_get('post_max_size') ) |
|
101 |
$post_max_size = ini_get('post_max_size'); |
|
102 |
else |
|
103 |
$post_max_size = __( 'N/A', 'bestwebsoft' ); |
|
104 |
if ( ini_get( 'max_execution_time' ) ) |
|
105 |
$max_execution_time = ini_get( 'max_execution_time' ); |
|
106 |
else |
|
107 |
$max_execution_time = __( 'N/A', 'bestwebsoft' ); |
|
108 |
if ( ini_get( 'memory_limit' ) ) |
|
109 |
$memory_limit = ini_get( 'memory_limit' ); |
|
110 |
else |
|
111 |
$memory_limit = __( 'N/A', 'bestwebsoft' ); |
|
112 |
if ( function_exists( 'memory_get_usage' ) ) |
|
113 |
$memory_usage = round( memory_get_usage() / 1024 / 1024, 2 ) . __(' Mb', 'bestwebsoft' ); |
|
114 |
else |
|
115 |
$memory_usage = __( 'N/A', 'bestwebsoft' ); |
|
116 |
if ( is_callable( 'exif_read_data' ) ) |
|
117 |
$exif_read_data = __('Yes', 'bestwebsoft' ) . " ( V" . substr( phpversion( 'exif' ), 0,4 ) . ")" ; |
|
118 |
else |
|
119 |
$exif_read_data = __('No', 'bestwebsoft' ); |
|
120 |
if ( is_callable( 'iptcparse' ) ) |
|
121 |
$iptcparse = __( 'Yes', 'bestwebsoft' ); |
|
122 |
else |
|
123 |
$iptcparse = __( 'No', 'bestwebsoft' ); |
|
124 |
if ( is_callable( 'xml_parser_create' ) ) |
|
125 |
$xml_parser_create = __( 'Yes', 'bestwebsoft' ); |
|
126 |
else |
|
127 |
$xml_parser_create = __( 'No', 'bestwebsoft' ); |
|
128 |
|
|
129 |
if ( function_exists( 'wp_get_theme' ) ) |
|
130 |
$theme = wp_get_theme(); |
|
131 |
else |
|
132 |
$theme = get_theme( get_current_theme() ); |
|
133 |
|
|
134 |
if ( function_exists( 'is_multisite' ) ) { |
|
135 |
if ( is_multisite() ) { |
|
136 |
$multisite = __( 'Yes', 'bestwebsoft' ); |
|
137 |
} else { |
|
138 |
$multisite = __( 'No', 'bestwebsoft' ); |
|
139 |
} |
|
140 |
} else |
|
141 |
$multisite = __( 'N/A', 'bestwebsoft' ); |
|
142 |
|
|
143 |
$site_url = get_option('siteurl'); |
|
144 |
$home_url = get_option('home'); |
|
145 |
$db_version = get_option('db_version'); |
|
146 |
$system_info = array( |
|
147 |
'system_info' => '', |
|
148 |
'active_plugins' => '', |
|
149 |
'inactive_plugins' => '' |
|
150 |
); |
|
151 |
$system_info['system_info'] = array( |
|
152 |
__( 'Operating System', 'bestwebsoft' ) => PHP_OS, |
|
153 |
__( 'Server', 'bestwebsoft' ) => $_SERVER["SERVER_SOFTWARE"], |
|
154 |
__( 'Memory usage', 'bestwebsoft' ) => $memory_usage, |
|
155 |
__( 'MYSQL Version', 'bestwebsoft' ) => $sql_version, |
|
156 |
__( 'SQL Mode', 'bestwebsoft' ) => $sql_mode, |
|
157 |
__( 'PHP Version', 'bestwebsoft' ) => PHP_VERSION, |
|
158 |
__( 'PHP Safe Mode', 'bestwebsoft' ) => $safe_mode, |
|
159 |
__( 'PHP Allow URL fopen', 'bestwebsoft' ) => $allow_url_fopen, |
|
160 |
__( 'PHP Memory Limit', 'bestwebsoft' ) => $memory_limit, |
|
161 |
__( 'PHP Max Upload Size', 'bestwebsoft' ) => $upload_max_filesize, |
|
162 |
__( 'PHP Max Post Size', 'bestwebsoft' ) => $post_max_size, |
|
163 |
__( 'PHP Max Script Execute Time', 'bestwebsoft' ) => $max_execution_time, |
|
164 |
__( 'PHP Exif support', 'bestwebsoft' ) => $exif_read_data, |
|
165 |
__( 'PHP IPTC support', 'bestwebsoft' ) => $iptcparse, |
|
166 |
__( 'PHP XML support', 'bestwebsoft' ) => $xml_parser_create, |
|
167 |
__( 'Site URL', 'bestwebsoft' ) => $site_url, |
|
168 |
__( 'Home URL', 'bestwebsoft' ) => $home_url, |
|
169 |
__( 'WordPress Version', 'bestwebsoft' ) => $wp_version, |
|
170 |
__( 'WordPress DB Version', 'bestwebsoft' ) => $db_version, |
|
171 |
__( 'Multisite', 'bestwebsoft' ) => $multisite, |
|
172 |
__( 'Active Theme', 'bestwebsoft' ) => $theme['Name'] . ' ' . $theme['Version'] |
|
173 |
); |
|
174 |
foreach ( $all_plugins as $path => $plugin ) { |
|
175 |
if ( is_plugin_active( $path ) ) { |
|
176 |
$system_info['active_plugins'][ $plugin['Name'] ] = $plugin['Version']; |
|
177 |
} else { |
|
178 |
$system_info['inactive_plugins'][ $plugin['Name'] ] = $plugin['Version']; |
|
179 |
} |
|
180 |
} |
|
181 |
|
|
182 |
if ( ( isset( $_REQUEST['bwsmn_form_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ) ) || |
|
183 |
( isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ) ) ) { |
|
184 |
if ( isset( $_REQUEST['bwsmn_form_email'] ) ) { |
|
185 |
$bwsmn_form_email = trim( $_REQUEST['bwsmn_form_email'] ); |
|
186 |
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 ) ) { |
|
187 |
$error = __( "Please enter a valid email address.", 'bestwebsoft' ); |
|
188 |
} else { |
|
189 |
$email = $bwsmn_form_email; |
|
190 |
$bwsmn_form_email = ''; |
|
191 |
$message = __( 'Email with system info is sent to ', 'bestwebsoft' ) . $email; |
|
192 |
} |
|
193 |
} else { |
|
194 |
$email = 'plugin_system_status@bestwebsoft.com'; |
|
195 |
$message = __( 'Thank you for contacting us.', 'bestwebsoft' ); |
|
196 |
} |
|
197 |
|
|
198 |
if ( $error == '' ) { |
|
199 |
$headers = 'MIME-Version: 1.0' . "\n"; |
|
200 |
$headers .= 'Content-type: text/html; charset=utf-8' . "\n"; |
|
201 |
$headers .= 'From: ' . get_option( 'admin_email' ); |
|
202 |
$message_text = '<html><head><title>System Info From ' . $home_url . '</title></head><body> |
|
203 |
<h4>Environment</h4> |
|
204 |
<table>'; |
|
205 |
foreach ( $system_info['system_info'] as $key => $value ) { |
|
206 |
$message_text .= '<tr><td>'. $key .'</td><td>'. $value .'</td></tr>'; |
|
207 |
} |
|
208 |
$message_text .= '</table> |
|
209 |
<h4>Active Plugins</h4> |
|
210 |
<table>'; |
|
211 |
foreach ( $system_info['active_plugins'] as $key => $value ) { |
|
212 |
$message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>'; |
|
213 |
} |
|
214 |
$message_text .= '</table> |
|
215 |
<h4>Inactive Plugins</h4> |
|
216 |
<table>'; |
|
217 |
foreach ( $system_info['inactive_plugins'] as $key => $value ) { |
|
218 |
$message_text .= '<tr><td scope="row">'. $key .'</td><td scope="row">'. $value .'</td></tr>'; |
|
219 |
} |
|
220 |
$message_text .= '</table></body></html>'; |
|
221 |
$result = wp_mail( $email, 'System Info From ' . $home_url, $message_text, $headers ); |
|
222 |
if ( $result != true ) |
|
223 |
$error = __( "Sorry, email message could not be delivered.", 'bestwebsoft' ); |
|
224 |
} |
|
225 |
} |
|
226 |
?><div class="wrap"> |
|
227 |
<div class="icon32 icon32-bws" id="icon-options-general"></div> |
|
228 |
<h2><?php echo $title;?></h2> |
|
229 |
<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> |
|
230 |
<div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div> |
|
231 |
<h3 style="color: blue;"><?php _e( 'Pro plugins', 'bestwebsoft' ); ?></h3> |
|
232 |
<?php if( 0 < $count_activate_pro ) { ?> |
|
233 |
<div style="padding-left:15px;"> |
|
234 |
<h4><?php _e( 'Activated plugins', 'bestwebsoft' ); ?></h4> |
|
235 |
<?php foreach ( $array_activate_pro as $activate_plugin ) { ?> |
|
236 |
<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> |
|
237 |
<?php } ?> |
|
238 |
</div> |
|
239 |
<?php } ?> |
|
240 |
<?php if( 0 < $count_install_pro ) { ?> |
|
241 |
<div style="padding-left:15px;"> |
|
242 |
<h4><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4> |
|
243 |
<?php foreach ( $array_install_pro as $install_plugin) { ?> |
|
244 |
<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> |
|
245 |
<?php } ?> |
|
246 |
</div> |
|
247 |
<?php } ?> |
|
248 |
<?php if( 0 < $count_recomend_pro ) { ?> |
|
249 |
<div style="padding-left:15px;"> |
|
250 |
<h4><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4> |
|
251 |
<?php foreach ( $array_recomend_pro as $recomend_plugin ) { ?> |
|
252 |
<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> |
|
253 |
<?php } ?> |
|
254 |
</div> |
|
255 |
<?php } ?> |
|
256 |
<br /> |
|
257 |
<h3 style="color: green"><?php _e( 'Free plugins', 'bestwebsoft' ); ?></h3> |
|
258 |
<?php if( 0 < $count_activate ) { ?> |
|
259 |
<div style="padding-left:15px;"> |
|
260 |
<h4><?php _e( 'Activated plugins', 'bestwebsoft' ); ?></h4> |
|
261 |
<?php foreach( $array_activate as $activate_plugin ) { ?> |
|
262 |
<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> |
|
263 |
<?php } ?> |
|
264 |
</div> |
|
265 |
<?php } ?> |
|
266 |
<?php if( 0 < $count_install ) { ?> |
|
267 |
<div style="padding-left:15px;"> |
|
268 |
<h4><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4> |
|
269 |
<?php foreach ( $array_install as $install_plugin ) { ?> |
|
270 |
<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> |
|
271 |
<?php } ?> |
|
272 |
</div> |
|
273 |
<?php } ?> |
|
274 |
<?php if( 0 < $count_recomend ) { ?> |
|
275 |
<div style="padding-left:15px;"> |
|
276 |
<h4><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4> |
|
277 |
<?php foreach ( $array_recomend as $recomend_plugin ) { ?> |
|
278 |
<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> |
|
279 |
<?php } ?> |
|
280 |
</div> |
|
281 |
<?php } ?> |
|
282 |
<br /> |
|
283 |
<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> |
|
284 |
<div id="poststuff" class="bws_system_info_meta_box"> |
|
285 |
<div class="postbox"> |
|
286 |
<div class="handlediv" title="Click to toggle"> |
|
287 |
<br> |
|
288 |
</div> |
|
289 |
<h3 class="hndle"> |
|
290 |
<span><?php _e( 'System status', 'bestwebsoft' ); ?></span> |
|
291 |
</h3> |
|
292 |
<div class="inside"> |
|
293 |
<table class="bws_system_info"> |
|
294 |
<thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead> |
|
295 |
<tbody> |
|
296 |
<?php foreach ( $system_info['system_info'] as $key => $value ) { ?> |
|
297 |
<tr> |
|
298 |
<td scope="row"><?php echo $key; ?></td> |
|
299 |
<td scope="row"><?php echo $value; ?></td> |
|
300 |
</tr> |
|
301 |
<?php } ?> |
|
302 |
</tbody> |
|
303 |
</table> |
|
304 |
<table class="bws_system_info"> |
|
305 |
<thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead> |
|
306 |
<tbody> |
|
307 |
<?php foreach ( $system_info['active_plugins'] as $key => $value ) { ?> |
|
308 |
<tr> |
|
309 |
<td scope="row"><?php echo $key; ?></td> |
|
310 |
<td scope="row"><?php echo $value; ?></td> |
|
311 |
</tr> |
|
312 |
<?php } ?> |
|
313 |
</tbody> |
|
314 |
</table> |
|
315 |
<table class="bws_system_info"> |
|
316 |
<thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead> |
|
317 |
<tbody> |
|
318 |
<?php foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?> |
|
319 |
<tr> |
|
320 |
<td scope="row"><?php echo $key; ?></td> |
|
321 |
<td scope="row"><?php echo $value; ?></td> |
|
322 |
</tr> |
|
323 |
<?php } ?> |
|
324 |
</tbody> |
|
325 |
</table> |
|
326 |
<div class="clear"></div> |
|
327 |
<form method="post" action="admin.php?page=bws_plugins"> |
|
328 |
<p> |
|
329 |
<input type="hidden" name="bwsmn_form_submit" value="submit" /> |
|
330 |
<input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" /> |
|
331 |
<?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?> |
|
332 |
</p> |
|
333 |
</form> |
|
334 |
<form method="post" action="admin.php?page=bws_plugins"> |
|
335 |
<p> |
|
336 |
<input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" /> |
|
337 |
<input type="submit" class="button" value="<?php _e( 'Send to custom email »', 'bestwebsoft' ) ?>" /> |
|
338 |
<input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" /> |
|
339 |
<?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?> |
|
340 |
</p> |
|
341 |
</form> |
|
342 |
</div> |
|
343 |
</div> |
|
344 |
</div> |
|
345 |
</div> |
|
346 |
<?php } |
|
347 |
} ?> |