| 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 |
$all_plugins = get_plugins(); |
| 9 |
$error = ''; |
| 10 |
$message = ''; |
| 11 |
$bwsmn_form_email = ''; |
| 12 |
$active_plugins = get_option( 'active_plugins' ); |
| 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 |
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++; |
| 54 |
} |
| 55 |
} |
| 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++; |
| 84 |
} |
| 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' ); |
| 132 |
|
| 133 |
if ( function_exists( 'wp_get_theme' ) ) |
| 134 |
$theme = wp_get_theme(); |
| 135 |
else |
| 136 |
$theme = get_theme( get_current_theme() ); |
| 137 |
|
| 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' ); |
| 146 |
|
| 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 |
} |
| 185 |
|
| 186 |
if ( ( isset( $_REQUEST['bwsmn_form_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ) ) || |
| 187 |
( isset( $_REQUEST['bwsmn_form_submit_custom_email'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ) ) ) { |
| 188 |
if ( isset( $_REQUEST['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 ) ) { |
| 191 |
$error = __( "Please enter a valid email address.", 'bestwebsoft' ); |
| 192 |
} else { |
| 193 |
$email = $bwsmn_form_email; |
| 194 |
$bwsmn_form_email = ''; |
| 195 |
$message = __( 'Email with system info is sent to ', 'bestwebsoft' ) . $email; |
| 196 |
} |
| 197 |
} else { |
| 198 |
$email = 'plugin_system_status@bestwebsoft.com'; |
| 199 |
$message = __( 'Thank you for contacting us.', 'bestwebsoft' ); |
| 200 |
} |
| 201 |
|
| 202 |
if ( $error == '' ) { |
| 203 |
$headers = 'MIME-Version: 1.0' . "\n"; |
| 204 |
$headers .= 'Content-type: text/html; charset=utf-8' . "\n"; |
| 205 |
$headers .= 'From: ' . get_option( 'admin_email' ); |
| 206 |
$message_text = '<html><head><title>System Info From ' . $home_url . '</title></head><body> |
| 207 |
<h4>Environment</h4> |
| 208 |
<table>'; |
| 209 |
foreach ( $system_info['system_info'] as $key => $value ) { |
| 210 |
$message_text .= '<tr><td>'. $key .'</td><td>'. $value .'</td></tr>'; |
| 211 |
} |
| 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>'; |
| 217 |
} |
| 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>'; |
| 223 |
} |
| 224 |
$message_text .= '</table></body></html>'; |
| 225 |
$result = wp_mail( $email, 'System Info From ' . $home_url, $message_text, $headers ); |
| 226 |
if ( $result != true ) |
| 227 |
$error = __( "Sorry, email message could not be delivered.", 'bestwebsoft' ); |
| 228 |
} |
| 229 |
} |
| 230 |
?><div class="wrap"> |
| 231 |
<div class="icon32 icon32-bws" id="icon-options-general"></div> |
| 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> |
| 241 |
<?php } ?> |
| 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 ) { ?> |
| 301 |
<tr> |
| 302 |
<td scope="row"><?php echo $key; ?></td> |
| 303 |
<td scope="row"><?php echo $value; ?></td> |
| 304 |
</tr> |
| 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 ) { ?> |
| 312 |
<tr> |
| 313 |
<td scope="row"><?php echo $key; ?></td> |
| 314 |
<td scope="row"><?php echo $value; ?></td> |
| 315 |
</tr> |
| 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 »', '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> |
| 347 |
</div> |
| 348 |
</div> |
| 349 |
</div> |
| 350 |
<?php } |
| 351 |
} ?> |