Google Captcha (reCAPTCHA) by BestWebSoft - Version 1.02

Version Description

  • 03.04.2014 =
  • Update : Screenshots are updated.
  • Update : BWS plugins section is updated.
  • Bugfix : Plugin optimization is done.
Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Google Captcha (reCAPTCHA) by BestWebSoft
Version 1.02
Comparing to
See all releases

Code changes from version 1.01 to 1.02

bws_menu/bws_menu.php CHANGED
@@ -1,41 +1,17 @@
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, $wpmu, $wp_version, $bws_plugin_info;
8
- $error = '';
9
- $message = '';
10
- $bwsmn_form_email = '';
11
  $bws_donate_link = 'https://www.2checkout.com/checkout/purchase?sid=1430388&quantity=10&product_id=13';
12
 
13
- // install the option defaults
14
- if ( 1 == $wpmu ) {
15
- if ( !get_site_option( 'bstwbsftwppdtplgns_options' ) )
16
- add_site_option( 'bstwbsftwppdtplgns_options', array(), '', 'yes' );
17
- $bstwbsftwppdtplgns_options = get_site_option( 'bstwbsftwppdtplgns_options' );
18
- } else {
19
- if ( !get_option( 'bstwbsftwppdtplgns_options' ) )
20
- add_option( 'bstwbsftwppdtplgns_options', array(), '', 'yes' );
21
- $bstwbsftwppdtplgns_options = get_option( 'bstwbsftwppdtplgns_options' );
22
- }
23
- if ( !isset( $bstwbsftwppdtplgns_options['bws_menu_version'] ) ) {
24
- $bstwbsftwppdtplgns_options['bws_menu_version'] = '1.1';
25
- update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options, '', 'yes' );
26
- }
27
-
28
- if ( isset( $_REQUEST['bwsmn_form_submit_switch'] ) && check_admin_referer( plugin_basename(__FILE__), 'bwsmn_nonce_submit_switch' ) ) {
29
- if ( $bstwbsftwppdtplgns_options['bws_menu_version'] == '1.1' )
30
- $bstwbsftwppdtplgns_options['bws_menu_version'] = 'old';
31
- else
32
- $bstwbsftwppdtplgns_options['bws_menu_version'] = '1.1';
33
- $bstwbsftwppdtplgns_options['bws_menu_time'] = strtotime('now');
34
- update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options, '', 'yes' );
35
- }
36
-
37
  if ( ! function_exists( 'is_plugin_active_for_network' ) )
38
- require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
39
 
40
  $bws_plugins = array(
41
  'captcha/captcha.php' => array(
@@ -58,19 +34,21 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
58
  ),
59
  'facebook-button-plugin/facebook-button-plugin.php' => array(
60
  'name' => 'Facebook Like Button',
61
- 'description' => 'Allows you to add a Follow button the easiest way.',
62
  'link' => 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
63
  'download' => 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
64
  'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Facebook+Like+Button+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
65
- 'settings' => 'admin.php?page=facebook-button-plugin.php'
 
66
  ),
67
  'twitter-plugin/twitter.php' => array(
68
  'name' => 'Twitter',
69
- 'description' => 'Allows you to add a Twitter "Follow button" the easiest way.',
70
  'link' => 'http://bestwebsoft.com/plugin/twitter-plugin/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
71
  'download' => 'http://bestwebsoft.com/plugin/twitter-plugin/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
72
  'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Twitter+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
73
- 'settings' => 'admin.php?page=twitter.php'
 
74
  ),
75
  'portfolio/portfolio.php' => array(
76
  'name' => 'Portfolio',
@@ -145,7 +123,8 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
145
  'link' => 'http://bestwebsoft.com/plugin/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
146
  'download' => 'http://bestwebsoft.com/plugin/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
147
  'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins',
148
- 'settings' => 'admin.php?page=google-plus-one.php'
 
149
  ),
150
  'relevant/related-posts-plugin.php' => array(
151
  'name' => 'Relevant - Related Posts',
@@ -170,7 +149,8 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
170
  'link' => 'http://bestwebsoft.com/plugin/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
171
  'download' => 'http://bestwebsoft.com/plugin/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
172
  'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=PDF+Print+Bestwebsoft&plugin-search-input=Search+Plugins',
173
- 'settings' => 'admin.php?page=pdf-print.php'
 
174
  ),
175
  'donate-button/donate.php' => array(
176
  'name' => 'Donate',
@@ -179,6 +159,78 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
179
  'download' => 'http://bestwebsoft.com/plugin/donate/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
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
  );
184
  $bws_plugins_pro = array(
@@ -224,117 +276,57 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
224
  'purchase' => 'http://bestwebsoft.com/plugin/google-sitemap-pro/?k=7ea384a5cc36cb4c22741caa20dcd56d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
225
  'settings' => 'admin.php?page=google-sitemap-pro.php'
226
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  );
228
-
229
  $all_plugins = get_plugins();
230
  $active_plugins = get_option( 'active_plugins' );
231
 
232
- if ( '1.1' == $bstwbsftwppdtplgns_options['bws_menu_version'] ) {
233
-
234
- $recommend_plugins = array_diff_key( $bws_plugins, $all_plugins );
235
 
236
- foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
237
- if ( ! isset( $all_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
238
- unset( $recommend_plugins[ $key_plugin ] );
239
- }
240
- }
241
-
242
- foreach ( $all_plugins as $key_plugin => $value_plugin ) {
243
- if ( ! isset( $bws_plugins[ $key_plugin ] ) && ! isset( $bws_plugins_pro[ $key_plugin ] ) )
244
- unset( $all_plugins[ $key_plugin ] );
245
-
246
- if ( isset( $bws_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
247
- unset( $all_plugins[ $key_plugin ] );
248
- }
249
  }
250
- } else {
251
-
252
- $array_activate = array();
253
- $array_install = array();
254
- $array_recomend = array();
255
- $count_activate = $count_install = $count_recomend = 0;
256
 
257
- foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
258
- if ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) {
259
- $array_activate[ $count_activate ]["title"] = $value_plugin['name'];
260
- $array_activate[ $count_activate ]["link"] = $value_plugin['link'];
261
- $array_activate[ $count_activate ]["href"] = $value_plugin['download'];
262
- $array_activate[ $count_activate ]["url"] = $value_plugin['settings'];
263
- $count_activate++;
264
- } else if ( array_key_exists( $key_plugin, $all_plugins ) ) {
265
- $array_install[ $count_install ]["title"] = $value_plugin['name'];
266
- $array_install[ $count_install ]["link"] = $value_plugin['link'];
267
- $array_install[ $count_install ]["href"] = $value_plugin['download'];
268
- $count_install++;
269
- } else {
270
- $array_recomend[ $count_recomend ]["title"] = $value_plugin['name'];
271
- $array_recomend[ $count_recomend ]["link"] = $value_plugin['link'];
272
- $array_recomend[ $count_recomend ]["href"] = $value_plugin['download'];
273
- $array_recomend[ $count_recomend ]["slug"] = $value_plugin['wp_install'];
274
- $count_recomend++;
275
- }
276
- }
277
 
278
- $array_activate_pro = array();
279
- $array_install_pro = array();
280
- $array_recomend_pro = array();
281
- $count_activate_pro = $count_install_pro = $count_recomend_pro = 0;
282
- foreach ( $bws_plugins_pro as $key_plugin => $value_plugin ) {
283
- if ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) {
284
- $array_activate_pro[ $count_activate_pro ]["title"] = $value_plugin['name'];
285
- $array_activate_pro[ $count_activate_pro ]["link"] = $value_plugin['link'];
286
- $array_activate_pro[ $count_activate_pro ]["href"] = $value_plugin['purchase'];
287
- $array_activate_pro[ $count_activate_pro ]["url"] = $value_plugin['settings'];
288
- $count_activate_pro++;
289
- } else if ( array_key_exists( $key_plugin, $all_plugins ) ) {
290
- $array_install_pro[ $count_install_pro ]["title"] = $value_plugin['name'];
291
- $array_install_pro[ $count_install_pro ]["link"] = $value_plugin['link'];
292
- $array_install_pro[ $count_install_pro ]["href"] = $value_plugin['purchase'];
293
- $count_install_pro++;
294
- } else {
295
- $array_recomend_pro[ $count_recomend_pro ]["title"] = $value_plugin['name'];
296
- $array_recomend_pro[ $count_recomend_pro ]["link"] = $value_plugin['link'];
297
- $array_recomend_pro[ $count_recomend_pro ]["href"] = $value_plugin['purchase'];
298
- $count_recomend_pro++;
299
- }
300
- }
301
- if ( $wp_version >= '3.4' ) {
302
- $wp_list_table = _get_list_table( 'WP_Themes_List_Table' );
303
- $wp_list_table->prepare_items();
304
- $current_theme = wp_get_theme();
305
- $array_activate_theme = array();
306
- $array_install_theme = array();
307
- $array_recomend_theme = array();
308
- $count_activate_theme = $count_install_theme = $count_recomend_theme = 0;
309
- $array_theme = array(
310
- array( 'central', 'Central', 'http://bestwebsoft.com/theme/central/?k=77c0199aabdb1f601a0504e312bee220&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/central/?k=77c0199aabdb1f601a0504e312bee220&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&s=Central&search=Search' ),
311
- array( 'simple-classic', 'Simple Classic', 'http://bestwebsoft.com/theme/simple-classic/?k=b3990bfc85125747f48ece9f011f4cde&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/simple-classic/?k=b3990bfc85125747f48ece9f011f4cde&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&type=term&s=Simple+Classic&search=Search' ),
312
- array( 'reddish', 'Reddish', 'http://bestwebsoft.com/theme/reddish/?k=1ea187e3fd401fd278e23a333abaf4f6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/reddish/?k=1ea187e3fd401fd278e23a333abaf4f6&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&type=term&s=reddish&search=Search' ),
313
- array( 'wordpost', 'Wordpost', 'http://bestwebsoft.com/theme/wordpost/?k=f0fc8c98135c9657751224562aca7a55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version, 'http://bestwebsoft.com/theme/wordpost/?k=f0fc8c98135c9657751224562aca7a55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download', '/wp-admin/theme-install.php?tab=search&type=term&s=Wordpost&search=Search' )
314
- );
315
- foreach ( $array_theme as $theme ) {
316
- if ( $current_theme->get( 'Name' ) == $theme[1] ) {
317
- $array_activate_theme[ $count_activate_theme ]["title"] = $theme[1];
318
- $array_activate_theme[ $count_activate_theme ]["link"] = $theme[2];
319
- $array_activate_theme[ $count_activate_theme ]["href"] = $theme[3];
320
- $count_activate_theme++;
321
- } elseif ( array_key_exists( $theme[0], $wp_list_table->items ) ) {
322
- $array_install_theme[ $count_install_theme ]["title"] = $theme[1];
323
- $array_install_theme[ $count_install_theme ]["link"] = $theme[2];
324
- $array_install_theme[ $count_install_theme ]["href"] = $theme[3];
325
- $count_install_theme++;
326
- } else {
327
- $array_recomend_theme[ $count_recomend_theme ]["title"] = $theme[1];
328
- $array_recomend_theme[ $count_recomend_theme ]["link"] = $theme[2];
329
- $array_recomend_theme[ $count_recomend_theme ]["href"] = $theme[3];
330
- $array_recomend_theme[ $count_recomend_theme ]["slug"] = $theme[4];
331
- $count_recomend_theme++;
332
- }
333
- }
334
  }
335
  }
336
 
337
- if ( ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) || 'old' == $bstwbsftwppdtplgns_options['bws_menu_version'] ) {
338
  $all_plugins = get_plugins();
339
  $active_plugins = get_option( 'active_plugins' );
340
  $sql_version = $wpdb->get_var( "SELECT VERSION() AS version" );
@@ -424,6 +416,8 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
424
  __( 'PHP XML support', 'bestwebsoft' ) => $xml_parser_create,
425
  __( 'Site URL', 'bestwebsoft' ) => $site_url,
426
  __( 'Home URL', 'bestwebsoft' ) => $home_url,
 
 
427
  __( 'WordPress Version', 'bestwebsoft' ) => $wp_version,
428
  __( 'WordPress DB Version', 'bestwebsoft' ) => $db_version,
429
  __( 'Multisite', 'bestwebsoft' ) => $multisite,
@@ -482,514 +476,356 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
482
  $error = __( "Sorry, email message could not be delivered.", 'bestwebsoft' );
483
  }
484
  }
485
-
486
  ?>
487
  <div class="wrap">
488
  <div class="icon32 icon32-bws" id="icon-options-general"></div>
489
- <h2>
490
- <span class="bws_main title">BestWebSoft</span>
491
- <?php if ( 'old' == $bstwbsftwppdtplgns_options['bws_menu_version'] && isset( $bstwbsftwppdtplgns_options['bws_menu_time'] ) && strtotime("-14 day") < $bstwbsftwppdtplgns_options['bws_menu_time'] ) { ?>
492
- <form method="post" action="admin.php?page=bws_plugins">
493
- <input type="hidden" name="bwsmn_form_submit_switch" value="submit" />
494
- <input type="submit" class="bws_switch_link" value="<?php _e( 'Switch to new interface', 'bestwebsoft' ) ?>" />
495
- <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_switch' ); ?>
496
- </form>
497
- </h2>
498
- <div class="clear"></div>
499
- <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>
500
- <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
501
- <h3 style="color: blue;"><?php _e( 'Pro plugins', 'bestwebsoft' ); ?></h3>
502
- <?php if ( 0 < $count_activate_pro ) { ?>
503
- <div style="padding-left:15px;">
504
- <h4><?php _e( 'Activated plugins', 'bestwebsoft' ); ?></h4>
505
- <?php foreach ( $array_activate_pro as $activate_plugin ) { ?>
506
- <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>
507
- <?php } ?>
508
- </div>
509
  <?php } ?>
510
- <?php if ( 0 < $count_install_pro ) { ?>
511
- <div style="padding-left:15px;">
512
- <h4><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
513
- <?php foreach ( $array_install_pro as $install_plugin) { ?>
514
- <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>
515
- <?php } ?>
516
- </div>
517
- <?php } ?>
518
- <?php if ( 0 < $count_recomend_pro ) { ?>
519
- <div style="padding-left:15px;">
520
- <h4><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
521
- <?php foreach ( $array_recomend_pro as $recomend_plugin ) { ?>
522
- <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>
523
- <?php } ?>
524
- </div>
525
- <?php } ?>
526
- <br />
527
- <h3 style="color: green"><?php _e( 'Free plugins', 'bestwebsoft' ); ?></h3>
528
- <?php if ( 0 < $count_activate ) { ?>
529
- <div style="padding-left:15px;">
530
- <h4><?php _e( 'Activated plugins', 'bestwebsoft' ); ?></h4>
531
- <?php foreach ( $array_activate as $activate_plugin ) { ?>
532
- <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>
533
- <?php } ?>
534
- </div>
535
- <?php } ?>
536
- <?php if ( 0 < $count_install ) { ?>
537
- <div style="padding-left:15px;">
538
- <h4><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
539
- <?php foreach ( $array_install as $install_plugin ) { ?>
540
- <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>
541
- <?php } ?>
542
- </div>
543
- <?php } ?>
544
- <?php if ( 0 < $count_recomend ) { ?>
545
- <div style="padding-left:15px;">
546
- <h4><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
547
- <?php foreach ( $array_recomend as $recomend_plugin ) { ?>
548
- <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>
549
- <?php } ?>
550
- </div>
551
- <?php } ?>
552
- <br />
553
- <?php if ( $wp_version >= '3.4' ) { ?>
554
- <h3 style="color: green"><?php _e( 'Free themes', 'bestwebsoft' ); ?></h3>
555
- <?php if ( 0 < $count_activate_theme ) { ?>
556
- <div style="padding-left:15px;">
557
- <h4><?php _e( 'Activated theme', 'bestwebsoft' ); ?></h4>
558
- <div style="float:left; width:200px;"><?php echo $array_activate_theme[0]["title"]; ?></div> <p><a href="<?php echo $array_activate_theme[0]["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo wp_customize_url(); ?>" title="<?php echo esc_attr( sprintf( __( 'Customize &#8220;%s&#8221;' ), $current_theme->display('Name') ) ); ?>"><?php _e( 'Customize' ); ?></a></p>
559
- </div>
560
- <?php } ?>
561
- <?php if ( 0 < $count_install_theme ) { ?>
562
- <div style="padding-left:15px;">
563
- <h4><?php _e( 'Installed themes', 'bestwebsoft' ); ?></h4>
564
- <?php foreach ( $array_install_theme as $install_theme ) { ?>
565
- <div style="float:left; width:200px;"><?php echo $install_theme["title"]; ?></div> <p><a href="<?php echo $install_theme["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a></p>
566
- <?php } ?>
567
- </div>
568
- <?php } ?>
569
- <?php if ( 0 < $count_recomend_theme ) { ?>
570
- <div style="padding-left:15px;">
571
- <h4><?php _e( 'Recommended themes', 'bestwebsoft' ); ?></h4>
572
- <?php foreach ( $array_recomend_theme as $recomend_theme ) { ?>
573
- <div style="float:left; width:200px;"><?php echo $recomend_theme["title"]; ?></div> <p><a href="<?php echo $recomend_theme["link"]; ?>" target="_blank"><?php echo __( "Read more", 'bestwebsoft' ); ?></a> <a href="<?php echo $recomend_theme["href"]; ?>" target="_blank"><?php echo __( "Download", 'bestwebsoft' ); ?></a> <a class="install-now" href="<?php echo get_bloginfo( "url" ) . $recomend_theme["slug"]; ?>" title="<?php esc_attr( sprintf( __( 'Install %s' ), $recomend_theme["title"] ) ) ?>" target="_blank"><?php echo __( 'Install now from wordpress.org', 'bestwebsoft' ) ?></a></p>
574
- <?php } ?>
575
- </div>
576
- <?php } ?>
577
- <br />
578
- <?php } ?>
579
- <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>
580
- <div id="poststuff" class="bws_system_info_meta_box">
581
- <div class="postbox">
582
- <div class="handlediv" title="Click to toggle">
583
- <br>
584
- </div>
585
- <h3 class="hndle">
586
- <span><?php _e( 'System status', 'bestwebsoft' ); ?></span>
587
- </h3>
588
- <div class="inside">
589
- <table class="bws_system_info">
590
- <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
591
- <tbody>
592
- <?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
593
- <tr>
594
- <td scope="row"><?php echo $key; ?></td>
595
- <td scope="row"><?php echo $value; ?></td>
596
- </tr>
597
- <?php } ?>
598
- </tbody>
599
- </table>
600
- <table class="bws_system_info">
601
- <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
602
- <tbody>
603
- <?php foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
604
- <tr>
605
- <td scope="row"><?php echo $key; ?></td>
606
- <td scope="row"><?php echo $value; ?></td>
607
- </tr>
608
- <?php } ?>
609
- </tbody>
610
- </table>
611
- <table class="bws_system_info">
612
- <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
613
- <tbody>
614
- <?php foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
615
- <tr>
616
- <td scope="row"><?php echo $key; ?></td>
617
- <td scope="row"><?php echo $value; ?></td>
618
- </tr>
619
- <?php } ?>
620
- </tbody>
621
- </table>
622
- <div class="clear"></div>
623
- <form method="post" action="admin.php?page=bws_plugins">
624
- <p>
625
- <input type="hidden" name="bwsmn_form_submit" value="submit" />
626
- <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
627
- <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
628
- </p>
629
- </form>
630
- <form method="post" action="admin.php?page=bws_plugins">
631
- <p>
632
- <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
633
- <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
634
- <input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
635
- <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
636
- </p>
637
- </form>
638
- </div>
639
- </div>
640
- </div>
641
- <?php } else { ?>
642
- <form method="post" action="admin.php?page=bws_plugins">
643
- <input type="hidden" name="bwsmn_form_submit_switch" value="submit" />
644
- <input type="submit" class="bws_switch_link" value="<?php _e( 'Switch to old interface', 'bestwebsoft' ) ?>" />
645
- <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_switch' ); ?>
646
- </form>
647
- </h2>
648
- <div class="clear"></div>
649
- <h2 class="nav-tab-wrapper">
650
- <a class="nav-tab<?php if ( !isset( $_GET['action'] ) ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
651
- <?php if ( $wp_version >= '3.4' ) { ?>
652
- <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>
653
- <?php } ?>
654
- <a class="nav-tab<?php if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins&amp;action=system_status"><?php _e( 'System status', 'bestwebsoft' ); ?></a>
655
- </h2>
656
- <?php if ( !isset( $_GET['action'] ) ) { ?>
657
- <ul class="subsubsub">
658
- <li><a <?php if ( !isset( $_GET['sub'] ) ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins"><?php _e( 'All', 'bestwebsoft' ); ?></a></li> |
659
- <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> |
660
- <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>
661
- </ul>
662
- <div class="clear"></div>
663
- <?php if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
664
- <h4 class="bws_installed"><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
665
- <?php foreach ( $all_plugins as $key_plugin => $value_plugin ) {
666
-
667
- if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) {
668
- $key_plugin_explode = explode( '-plugin-pro/', $key_plugin );
669
- if ( isset( $key_plugin_explode[1] ) )
670
- $icon = $key_plugin_explode[0];
671
- else {
672
- $key_plugin_explode = explode( '-pro/', $key_plugin );
673
- $icon = $key_plugin_explode[0];
674
- }
675
- } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) {
676
- $key_plugin_explode = explode( '-plugin/', $key_plugin );
677
- if ( isset( $key_plugin_explode[1] ) )
678
- $icon = $key_plugin_explode[0];
679
- else {
680
- $key_plugin_explode = explode( '/', $key_plugin );
681
- $icon = $key_plugin_explode[0];
682
- }
683
  }
 
684
 
685
- if ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) { ?>
686
- <?php if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) { ?>
687
- <div class="bws_product_box bws_exist_overlay">
688
- <div class="bws_product">
689
- <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
690
- <div class="bws_product_content">
691
- <div class="bws_product_icon">
692
- <div class="bws_product_icon_pro"></div>
693
- <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
694
- </div>
695
- <div class="bws_product_description"><?php echo $value_plugin["Description"]; ?></div>
696
- </div>
697
- <div class="clear"></div>
698
- </div>
699
- <div class="bws_product_links">
700
- <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
701
- <span> | </span>
702
- <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
703
  </div>
 
704
  </div>
705
- <?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
706
- <div class="bws_product_box bws_product_free">
707
- <div class="bws_product">
708
- <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
709
- <div class="bws_product_content">
710
- <div class="bws_product_icon">
711
- <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
712
- </div>
713
- <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
 
 
 
 
714
  </div>
715
- <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
716
- <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["purchase"]; ?>" target="_blank">
717
- <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
718
- </a>
719
- <?php } else { ?>
720
- <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
721
- <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
722
- </a>
723
- <?php } ?>
724
- <div class="clear"></div>
725
- </div>
726
- <div class="bws_product_links">
727
- <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
728
- <span> | </span>
729
- <a href="<?php echo $bws_plugins[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
730
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
731
  </div>
732
- <?php }
733
- } else {
734
- if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) { ?>
735
- <div class="bws_product_box bws_product_deactivated">
736
- <div class="bws_product">
737
- <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
738
- <div class="bws_product_content">
739
- <div class="bws_product_icon">
740
- <div class="bws_product_icon_pro"></div>
741
- <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
742
- </div>
743
- <div class="bws_product_description"><?php echo $bws_plugins_pro[ $key_plugin ]["description"]; ?></div>
744
  </div>
745
- <div class="clear"></div>
746
- </div>
747
- <div class="bws_product_links">
748
- <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
749
- <span> | </span>
750
- <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
751
  </div>
 
 
 
 
 
 
752
  </div>
753
- <?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
754
- <div class="bws_product_box bws_product_deactivated bws_product_free">
755
- <div class="bws_product">
756
- <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
757
- <div class="bws_product_content">
758
- <div class="bws_product_icon">
759
- <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
760
- </div>
761
- <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
762
  </div>
763
- <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
764
- <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["purchase"]; ?>" target="_blank">
765
- <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
766
- </a>
767
- <?php } else { ?>
768
- <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
769
- <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
770
- </a>
771
- <?php } ?>
772
- <div class="clear"></div>
773
- </div>
774
- <div class="bws_product_links">
775
- <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
776
- <span> | </span>
777
- <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
778
  </div>
 
 
 
 
 
 
 
 
 
 
779
  </div>
780
- <?php }
781
- }
 
 
 
 
 
782
  }
783
- } ?>
784
- <div class="clear"></div>
785
- <?php if ( ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
786
- <h4 class="bws_recommended"><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
787
- <?php foreach ( $recommend_plugins as $key_plugin => $value_plugin ) {
788
-
789
- if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) {
790
- $key_plugin_explode = explode( '-plugin-pro/', $key_plugin );
791
- if ( isset( $key_plugin_explode[1] ) )
792
- $icon = $key_plugin_explode[0];
793
- else {
794
- $key_plugin_explode = explode( '-pro/', $key_plugin );
795
- $icon = $key_plugin_explode[0];
796
- }
797
- } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) {
798
- $key_plugin_explode = explode( '-plugin/', $key_plugin );
799
- if ( isset( $key_plugin_explode[1] ) )
800
- $icon = $key_plugin_explode[0];
801
- else {
802
- $key_plugin_explode = explode( '/', $key_plugin );
803
- $icon = $key_plugin_explode[0];
804
- }
805
  }
806
- ?>
807
- <div class="bws_product_box">
808
- <div class="bws_product">
809
- <div class="bws_product_title"><?php echo $value_plugin["name"]; ?></div>
810
- <div class="bws_product_content">
811
- <div class="bws_product_icon">
812
- <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
813
- <div class="bws_product_icon_pro"></div>
814
- <?php } ?>
815
- <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
816
- </div>
817
- <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
 
 
 
 
 
 
 
818
  </div>
819
- <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
820
- <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["link"]; ?>" target="_blank">
821
- <?php echo _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
822
- </a>
823
- <?php } else { ?>
824
- <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
825
- <strong><?php echo _e( 'DONATE', 'bestwebsoft' );?></strong>
826
- </a>
827
- <?php } ?>
828
- </div>
829
- <div class="clear"></div>
830
- <div class="bws_product_links">
831
- <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php echo __( "Learn more", 'bestwebsoft' ); ?></a>
832
- <span> | </span>
833
- <a href="<?php echo $bws_plugins[ $key_plugin ]["wp_install"]; ?>" target="_blank"><?php echo __( "Install now", 'bestwebsoft' ); ?></a>
834
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
835
  </div>
836
- <?php }
837
- } ?>
838
- <?php } elseif ( 'themes' == $_GET['action'] ) { ?>
839
- <div id="availablethemes">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
840
  <?php
841
- global $tabs, $tab, $paged, $type, $theme_field_defaults;
842
- include( ABSPATH . 'wp-admin/includes/theme-install.php' );
843
- include( ABSPATH . 'wp-admin/includes/class-wp-themes-list-table.php' );
844
- include( ABSPATH . 'wp-admin/includes/class-wp-theme-install-list-table.php' );
845
-
846
- $theme_class = new WP_Theme_Install_List_Table();
847
- $paged = $theme_class->get_pagenum();
848
- $per_page = 36;
849
- $args = array( 'page' => $paged, 'per_page' => $per_page, 'fields' => $theme_field_defaults );
850
- $args['author'] = 'bestwebsoft';
851
- $args = apply_filters( 'install_themes_table_api_args_search', $args );
852
- $api = themes_api( 'query_themes', $args );
853
-
854
- if ( is_wp_error( $api ) )
855
- wp_die( $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try again' ) . '</a>' );
856
-
857
- $theme_class->items = $api->themes;
858
- $theme_class->set_pagination_args( array(
859
- 'total_items' => $api->info['results'],
860
- 'per_page' => $per_page,
861
- 'infinite_scroll' => true,
862
- ) );
863
- $themes = $theme_class->items;
864
- foreach ( $themes as $theme ) {
865
- ?><div class="available-theme installable-theme"><?php
866
- global $themes_allowedtags;
867
- if ( empty( $theme ) )
868
- return;
869
-
870
- $name = wp_kses( $theme->name, $themes_allowedtags );
871
- $author = wp_kses( $theme->author, $themes_allowedtags );
872
- $preview_title = sprintf( __('Preview &#8220;%s&#8221;'), $name );
873
- $preview_url = add_query_arg( array(
874
- 'tab' => 'theme-information',
875
- 'theme' => $theme->slug,
876
- ), self_admin_url( 'theme-install.php' ) );
877
-
878
- $actions = array();
879
-
880
- $install_url = add_query_arg( array(
881
- 'action' => 'install-theme',
882
- 'theme' => $theme->slug,
883
- ), self_admin_url( 'update.php' ) );
884
-
885
- $update_url = add_query_arg( array(
886
- 'action' => 'upgrade-theme',
887
- 'theme' => $theme->slug,
888
- ), self_admin_url( 'update.php' ) );
889
-
890
- $status = 'install';
891
- $installed_theme = wp_get_theme( $theme->slug );
892
- if ( $installed_theme->exists() ) {
893
- if ( version_compare( $installed_theme->get('Version'), $theme->version, '=' ) )
894
- $status = 'latest_installed';
895
- elseif ( version_compare( $installed_theme->get('Version'), $theme->version, '>' ) )
896
- $status = 'newer_installed';
897
- else
898
- $status = 'update_available';
899
- }
900
- switch ( $status ) {
901
- default:
902
- case 'install':
903
- $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>';
904
- break;
905
- case 'update_available':
906
- $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>';
907
- break;
908
- case 'newer_installed':
909
- case 'latest_installed':
910
- $actions[] = '<span class="install-now" title="' . esc_attr__( 'This theme is already installed and is up to date' ) . '">' . _x( 'Installed', 'theme' ) . '</span>';
911
- break;
912
- }
913
- $actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s' ), $name ) ) . '">' . __( 'Preview' ) . '</a>';
914
- $actions = apply_filters( 'theme_install_actions', $actions, $theme );
915
- ?>
916
- <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
917
- <img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' />
918
- </a>
919
- <h3><?php echo $name; ?></h3>
920
- <div class="theme-author"><?php printf( __( 'By %s' ), $author ); ?></div>
921
- <div class="action-links">
922
- <ul>
923
- <?php foreach ( $actions as $action ): ?>
924
- <li><?php echo $action; ?></li>
925
- <?php endforeach; ?>
926
- <li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e('Details') ?></a></li>
927
- </ul>
928
- </div>
929
- <?php $theme_class->install_theme_info( $theme );
930
- ?></div>
931
- <?php }
932
- // end foreach $theme_names
933
- $theme_class->theme_installer();
934
- ?>
935
- </div>
936
- <?php } elseif ( 'system_status' == $_GET['action'] ) { ?>
937
- <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>
938
- <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
939
- <h3><?php _e( 'System status', 'bestwebsoft' ); ?></h3>
940
- <div class="inside">
941
- <table class="bws_system_info">
942
- <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
943
- <tbody>
944
- <?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
945
  <tr>
946
  <td scope="row"><?php echo $key; ?></td>
947
  <td scope="row"><?php echo $value; ?></td>
948
  </tr>
949
- <?php } ?>
950
- </tbody>
951
- </table>
952
- <table class="bws_system_info">
953
- <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
954
- <tbody>
955
- <?php foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
956
- <tr>
957
- <td scope="row"><?php echo $key; ?></td>
958
- <td scope="row"><?php echo $value; ?></td>
959
- </tr>
960
- <?php } ?>
961
- </tbody>
962
- </table>
963
- <table class="bws_system_info">
964
- <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
965
- <tbody>
966
- <?php foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
967
- <tr>
968
- <td scope="row"><?php echo $key; ?></td>
969
- <td scope="row"><?php echo $value; ?></td>
970
- </tr>
971
- <?php } ?>
972
- </tbody>
973
- </table>
974
- <div class="clear"></div>
975
- <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
976
- <p>
977
- <input type="hidden" name="bwsmn_form_submit" value="submit" />
978
- <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
979
- <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
980
- </p>
981
- </form>
982
- <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
983
- <p>
984
- <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
985
- <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
986
- <input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
987
- <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
988
- </p>
989
- </form>
990
- </div>
991
- <?php }
992
- } ?>
993
  </div>
994
  <?php }
995
  }
@@ -1004,9 +840,14 @@ if ( ! function_exists ( 'bws_plugin_init' ) ) {
1004
  if ( ! function_exists ( 'bws_admin_head' ) ) {
1005
  function bws_admin_head() {
1006
  global $wp_version;
 
 
 
 
 
1007
  if ( isset( $_GET['page'] ) && $_GET['page'] == "bws_plugins" ) {
1008
  wp_enqueue_style( 'bws_menu_style', plugins_url( 'css/style.css', __FILE__ ) );
1009
- wp_enqueue_script( 'bws_menu_script', plugins_url( 'js/bws_menu.js' , __FILE__ ) );
1010
  if ( $wp_version >= '3.8' )
1011
  wp_enqueue_script( 'theme-install' );
1012
  elseif ( $wp_version >= '3.4' )
1
  <?php
2
  /*
3
+ * Function for displaying BestWebSoft menu
4
+ * Version: 1.2.3
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=10&product_id=13';
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(
34
  ),
35
  'facebook-button-plugin/facebook-button-plugin.php' => array(
36
  'name' => 'Facebook Like Button',
37
+ 'description' => 'Allows you to add the Follow and Like buttons the easiest way.',
38
  'link' => 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
39
  'download' => 'http://bestwebsoft.com/plugin/facebook-like-button-plugin/?k=05ec4f12327f55848335802581467d55&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
40
  'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Facebook+Like+Button+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
41
+ 'settings' => 'admin.php?page=facebook-button-plugin.php',
42
+ 'pro_version' => 'facebook-button-pro/facebook-button-pro.php'
43
  ),
44
  'twitter-plugin/twitter.php' => array(
45
  'name' => 'Twitter',
46
+ 'description' => 'Allows you to add the Twitter "Follow" and "Like" buttons the easiest way.',
47
  'link' => 'http://bestwebsoft.com/plugin/twitter-plugin/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
48
  'download' => 'http://bestwebsoft.com/plugin/twitter-plugin/?k=f8cb514e25bd7ec4974d64435c5eb333&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
49
  'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Twitter+Plugin+bestwebsoft&plugin-search-input=Search+Plugins',
50
+ 'settings' => 'admin.php?page=twitter.php',
51
+ 'pro_version' => 'twitter-pro/twitter-pro.php'
52
  ),
53
  'portfolio/portfolio.php' => array(
54
  'name' => 'Portfolio',
123
  'link' => 'http://bestwebsoft.com/plugin/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
124
  'download' => 'http://bestwebsoft.com/plugin/google-plus-one/?k=ce7a88837f0a857b3a2bb142f470853c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
125
  'wp_install' => '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins',
126
+ 'settings' => 'admin.php?page=google-plus-one.php',
127
+ 'pro_version' => 'google-one-pro/google-plus-one-pro.php'
128
  ),
129
  'relevant/related-posts-plugin.php' => array(
130
  'name' => 'Relevant - Related Posts',
149
  'link' => 'http://bestwebsoft.com/plugin/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
150
  'download' => 'http://bestwebsoft.com/plugin/pdf-print/?k=bfefdfb522a4c0ff0141daa3f271840c&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
151
  'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=PDF+Print+Bestwebsoft&plugin-search-input=Search+Plugins',
152
+ 'settings' => 'admin.php?page=pdf-print.php',
153
+ 'pro_version' => 'pdf-print-pro/pdf-print-pro.php'
154
  ),
155
  'donate-button/donate.php' => array(
156
  'name' => 'Donate',
159
  'download' => 'http://bestwebsoft.com/plugin/donate/?k=a8b2e2a56914fb1765dd20297c26401b&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
160
  'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Donate+Bestwebsoft&plugin-search-input=Search+Plugins',
161
  'settings' => 'admin.php?page=donate.php'
162
+ ),
163
+ 'post-to-csv/post-to-csv.php' => array(
164
+ 'name' => 'Post To CSV',
165
+ 'description' => 'The plugin allows to export posts of any types to a csv file.',
166
+ 'link' => 'http://bestwebsoft.com/plugin/post-to-csv/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
167
+ 'download' => 'http://bestwebsoft.com/plugin/post-to-csv/?k=653aa55518ae17409293a7a894268b8f&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
168
+ 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Post+To+CSV+Bestwebsoft&plugin-search-input=Search+Plugins',
169
+ 'settings' => 'admin.php?page=post-to-csv.php'
170
+ ),
171
+ 'google-shortlink/google-shortlink.php' => array(
172
+ 'name' => 'Google Shortlink',
173
+ 'description' => 'Allows you to get short links from goo.gl servise without leaving your site.',
174
+ 'link' => 'http://bestwebsoft.com/plugin/google-shortlink/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
175
+ 'download' => 'http://bestwebsoft.com/plugin/google-shortlink/?k=afcf3eaed021bbbbeea1090e16bc22db&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
176
+ 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Google+Shortlink+Bestwebsoft&plugin-search-input=Search+Plugins',
177
+ 'settings' => 'admin.php?page=gglshrtlnk_options'
178
+ ),
179
+ 'htaccess/htaccess.php' => array(
180
+ 'name' => 'Htaccess',
181
+ 'description' => 'Allows controlling access to your website using the directives Allow and Deny.',
182
+ 'link' => 'http://bestwebsoft.com/plugin/htaccess/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
183
+ 'download' => 'http://bestwebsoft.com/plugin/htaccess/?k=2b865fcd56a935d22c5c4f1bba52ed46&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
184
+ 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Htaccess+Bestwebsoft&plugin-search-input=Search+Plugins',
185
+ 'settings' => 'admin.php?page=htaccess.php'
186
+ ),
187
+ 'google-captcha/google-captcha.php' => array(
188
+ 'name' => 'Google Captcha (reCAPTCHA)',
189
+ 'description' => 'Plugin intended to prove that the visitor is a human being and not a spam robot.',
190
+ 'link' => 'http://bestwebsoft.com/plugin/google-captcha/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
191
+ 'download' => 'http://bestwebsoft.com/plugin/google-captcha/?k=7b59fbe542acf950b29f3e020d5ad735&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
192
+ 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Google+Captcha+Bestwebsoft&plugin-search-input=Search+Plugins',
193
+ 'settings' => 'admin.php?page=google-captcha.php'
194
+ ),
195
+ 'sender/sender.php' => array(
196
+ 'name' => 'Sender',
197
+ 'description' => 'You can send mails to all users or to certain categories of users.',
198
+ 'link' => 'http://bestwebsoft.com/plugin/sender/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
199
+ 'download' => 'http://bestwebsoft.com/plugin/sender/?k=89c297d14ba85a8417a0f2fc05e089c7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
200
+ 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Sender+Bestwebsoft&plugin-search-input=Search+Plugins',
201
+ 'settings' => 'admin.php?page=sndr_settings'
202
+ ),
203
+ 'subscriber/subscriber.php' => array(
204
+ 'name' => 'Subscriber',
205
+ 'description' => 'This plugin allows you to subscribe users for newsletters from your website.',
206
+ 'link' => 'http://bestwebsoft.com/plugin/subscriber/?k=a4ecc1b7800bae7329fbe8b4b04e9c88&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
207
+ 'download' => 'http://bestwebsoft.com/plugin/subscriber/?k=a4ecc1b7800bae7329fbe8b4b04e9c88&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
208
+ 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Subscriber+Bestwebsoft&plugin-search-input=Search+Plugins',
209
+ 'settings' => 'admin.php?page=sbscrbr_settings_page'
210
+ ),
211
+ 'contact-form-multi/contact-form-multi.php' => array(
212
+ 'name' => 'Contact Form Multi',
213
+ 'description' => 'This plugin allows you to subscribe users for newsletters from your website.',
214
+ 'link' => 'http://bestwebsoft.com/plugin/contact-form-multi/?k=83cdd9e72a9f4061122ad28a67293c72&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
215
+ 'download' => 'http://bestwebsoft.com/plugin/contact-form-multi/?k=83cdd9e72a9f4061122ad28a67293c72&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
216
+ 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=Contact+Form+Multi+Bestwebsoft&plugin-search-input=Search+Plugins',
217
+ 'settings' => ''
218
+ ),
219
+ 'bws-google-maps/bws-google-maps.php' => array(
220
+ 'name' => 'BestWebSoft Google Maps',
221
+ 'description' => 'Easy to set up and insert Google Maps to your website.',
222
+ 'link' => 'http://bestwebsoft.com/plugin/bws-google-maps/?k=d8fac412d7359ebaa4ff53b46572f9f7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
223
+ 'download' => 'http://bestwebsoft.com/plugin/bws-google-maps/?k=d8fac412d7359ebaa4ff53b46572f9f7&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
224
+ 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=BestWebSoft+Google+Maps&plugin-search-input=Search+Plugins',
225
+ 'settings' => 'admin.php?page=bws-google-maps.php'
226
+ ),
227
+ 'bws-google-analytics/bws-google-analytics.php' => array(
228
+ 'name' => 'BestWebSoft Google Analytics',
229
+ 'description' => 'Allows you to retrieve basic stats from Google Analytics account and add the tracking code to your blog.',
230
+ 'link' => 'http://bestwebsoft.com/plugin/bws-google-analytics/?k=261c74cad753fb279cdf5a5db63fbd43&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
231
+ 'download' => 'http://bestwebsoft.com/plugin/bws-google-analytics/?k=261c74cad753fb279cdf5a5db63fbd43&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#download',
232
+ 'wp_install' => '/wp-admin/plugin-install.php?tab=search&s=BestWebSoft+Google+Analytics&plugin-search-input=Search+Plugins',
233
+ 'settings' => 'admin.php?page=bws-google-analytics.php'
234
  )
235
  );
236
  $bws_plugins_pro = array(
276
  'purchase' => 'http://bestwebsoft.com/plugin/google-sitemap-pro/?k=7ea384a5cc36cb4c22741caa20dcd56d&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
277
  'settings' => 'admin.php?page=google-sitemap-pro.php'
278
  ),
279
+ 'twitter-pro/twitter-pro.php' => array(
280
+ 'name' => 'Twitter Pro',
281
+ 'description' => 'Allows you to add the Twitter "Follow" and "Like" buttons the easiest way.',
282
+ 'link' => 'http://bestwebsoft.com/plugin/twitter-pro/?k=63ecbf0cc9cebf060b5a3c9362299700&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
283
+ 'purchase' => 'http://bestwebsoft.com/plugin/twitter-pro?k=63ecbf0cc9cebf060b5a3c9362299700&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
284
+ 'settings' => 'admin.php?page=twitter-pro.php'
285
+ ),
286
+ 'google-one-pro/google-plus-one-pro.php' => array(
287
+ 'name' => 'Google +1 Pro',
288
+ 'description' => 'Allows you to celebrate liked the article.',
289
+ 'link' => 'http://bestwebsoft.com/plugin/google-plus-one-pro/?k=f4b0a62d155c9df9601a0531ad5bd832&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
290
+ 'purchase' => 'http://bestwebsoft.com/plugin/google-plus-one-pro?k=f4b0a62d155c9df9601a0531ad5bd832&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
291
+ 'settings' => 'admin.php?page=google-plus-one-pro.php'
292
+ ),
293
+ 'facebook-button-pro/facebook-button-pro.php' => array(
294
+ 'name' => 'Facebook Like Button Pro',
295
+ 'description' => 'Allows you to add the Follow and Like buttons the easiest way.',
296
+ 'link' => 'http://bestwebsoft.com/plugin/facebook-like-button-pro/?k=8da168e60a831cfb3525417c333ad275&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
297
+ 'purchase' => 'http://bestwebsoft.com/plugin/facebook-like-button-pro?k=8da168e60a831cfb3525417c333ad275&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
298
+ 'settings' => 'admin.php?page=facebook-button-pro.php'
299
+ ),
300
+ 'pdf-print-pro/pdf-print-pro.php' => array(
301
+ 'name' => 'PDF & Print Pro',
302
+ 'description' => 'Allows you to create PDF and Print page with adding appropriate buttons to the content.',
303
+ 'link' => 'http://bestwebsoft.com/plugin/pdf-print-pro/?k=fd43a0e659ddc170a9060027cbfdcc3a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
304
+ 'purchase' => 'http://bestwebsoft.com/plugin/pdf-print-pro?k=fd43a0e659ddc170a9060027cbfdcc3a&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version . '#purchase',
305
+ 'settings' => 'admin.php?page=pdf-print-pro.php'
306
+ )
307
  );
308
+
309
  $all_plugins = get_plugins();
310
  $active_plugins = get_option( 'active_plugins' );
311
 
312
+ $recommend_plugins = array_diff_key( $bws_plugins, $all_plugins );
 
 
313
 
314
+ foreach ( $bws_plugins as $key_plugin => $value_plugin ) {
315
+ if ( ! isset( $all_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
316
+ unset( $recommend_plugins[ $key_plugin ] );
 
 
 
 
 
 
 
 
 
 
317
  }
318
+ }
 
 
 
 
 
319
 
320
+ foreach ( $all_plugins as $key_plugin => $value_plugin ) {
321
+ if ( ! isset( $bws_plugins[ $key_plugin ] ) && ! isset( $bws_plugins_pro[ $key_plugin ] ) )
322
+ unset( $all_plugins[ $key_plugin ] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
 
324
+ if ( isset( $bws_plugins[ $key_plugin ] ) && isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $all_plugins[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) {
325
+ unset( $all_plugins[ $key_plugin ] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
326
  }
327
  }
328
 
329
+ if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) {
330
  $all_plugins = get_plugins();
331
  $active_plugins = get_option( 'active_plugins' );
332
  $sql_version = $wpdb->get_var( "SELECT VERSION() AS version" );
416
  __( 'PHP XML support', 'bestwebsoft' ) => $xml_parser_create,
417
  __( 'Site URL', 'bestwebsoft' ) => $site_url,
418
  __( 'Home URL', 'bestwebsoft' ) => $home_url,
419
+ '$_SERVER[HTTP_HOST]' => $_SERVER['HTTP_HOST'],
420
+ '$_SERVER[SERVER_NAME]' => $_SERVER['SERVER_NAME'],
421
  __( 'WordPress Version', 'bestwebsoft' ) => $wp_version,
422
  __( 'WordPress DB Version', 'bestwebsoft' ) => $db_version,
423
  __( 'Multisite', 'bestwebsoft' ) => $multisite,
476
  $error = __( "Sorry, email message could not be delivered.", 'bestwebsoft' );
477
  }
478
  }
 
479
  ?>
480
  <div class="wrap">
481
  <div class="icon32 icon32-bws" id="icon-options-general"></div>
482
+ <h2>BestWebSoft</h2>
483
+ <h2 class="nav-tab-wrapper">
484
+ <a class="nav-tab<?php if ( !isset( $_GET['action'] ) ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins"><?php _e( 'Plugins', 'bestwebsoft' ); ?></a>
485
+ <?php if ( $wp_version >= '3.4' ) { ?>
486
+ <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>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
487
  <?php } ?>
488
+ <a class="nav-tab<?php if ( isset( $_GET['action'] ) && 'system_status' == $_GET['action'] ) echo ' nav-tab-active'; ?>" href="admin.php?page=bws_plugins&amp;action=system_status"><?php _e( 'System status', 'bestwebsoft' ); ?></a>
489
+ </h2>
490
+ <?php if ( !isset( $_GET['action'] ) ) { ?>
491
+ <ul class="subsubsub">
492
+ <li><a <?php if ( !isset( $_GET['sub'] ) ) echo 'class="current" '; ?>href="admin.php?page=bws_plugins"><?php _e( 'All', 'bestwebsoft' ); ?></a></li> |
493
+ <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> |
494
+ <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>
495
+ </ul>
496
+ <div class="clear"></div>
497
+ <?php if ( ( isset( $_GET['sub'] ) && 'installed' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
498
+ <h4 class="bws_installed"><?php _e( 'Installed plugins', 'bestwebsoft' ); ?></h4>
499
+ <?php foreach ( $all_plugins as $key_plugin => $value_plugin ) {
500
+
501
+ if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) {
502
+ $key_plugin_explode = explode( '-plugin-pro/', $key_plugin );
503
+ if ( isset( $key_plugin_explode[1] ) )
504
+ $icon = $key_plugin_explode[0];
505
+ else {
506
+ $key_plugin_explode = explode( '-pro/', $key_plugin );
507
+ $icon = $key_plugin_explode[0];
508
+ }
509
+ } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) {
510
+ $key_plugin_explode = explode( '-plugin/', $key_plugin );
511
+ if ( isset( $key_plugin_explode[1] ) )
512
+ $icon = $key_plugin_explode[0];
513
+ else {
514
+ $key_plugin_explode = explode( '/', $key_plugin );
515
+ $icon = $key_plugin_explode[0];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
516
  }
517
+ }
518
 
519
+ if ( in_array( $key_plugin, $active_plugins ) || is_plugin_active_for_network( $key_plugin ) ) { ?>
520
+ <?php if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) { ?>
521
+ <div class="bws_product_box bws_exist_overlay">
522
+ <div class="bws_product">
523
+ <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
524
+ <div class="bws_product_content">
525
+ <div class="bws_product_icon">
526
+ <div class="bws_product_icon_pro"></div>
527
+ <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
528
+ </div>
529
+ <div class="bws_product_description"><?php echo $value_plugin["Description"]; ?></div>
 
 
 
 
 
 
 
530
  </div>
531
+ <div class="clear"></div>
532
  </div>
533
+ <div class="bws_product_links">
534
+ <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
535
+ <span> | </span>
536
+ <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
537
+ </div>
538
+ </div>
539
+ <?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
540
+ <div class="bws_product_box bws_product_free">
541
+ <div class="bws_product">
542
+ <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
543
+ <div class="bws_product_content">
544
+ <div class="bws_product_icon">
545
+ <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
546
  </div>
547
+ <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
548
  </div>
549
+ <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
550
+ <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["purchase"]; ?>" target="_blank">
551
+ <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
552
+ </a>
553
+ <?php } else { ?>
554
+ <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
555
+ <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
556
+ </a>
557
+ <?php } ?>
558
+ <div class="clear"></div>
559
+ </div>
560
+ <div class="bws_product_links">
561
+ <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
562
+ <span> | </span>
563
+ <a href="<?php echo $bws_plugins[ $key_plugin ]["settings"]; ?>" target="_blank"><?php _e( "Settings", 'bestwebsoft' ); ?></a>
564
  </div>
565
+ </div>
566
+ <?php }
567
+ } else {
568
+ if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) { ?>
569
+ <div class="bws_product_box bws_product_deactivated">
570
+ <div class="bws_product">
571
+ <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
572
+ <div class="bws_product_content">
573
+ <div class="bws_product_icon">
574
+ <div class="bws_product_icon_pro"></div>
575
+ <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
 
576
  </div>
577
+ <div class="bws_product_description"><?php echo $bws_plugins_pro[ $key_plugin ]["description"]; ?></div>
 
 
 
 
 
578
  </div>
579
+ <div class="clear"></div>
580
+ </div>
581
+ <div class="bws_product_links">
582
+ <a href="<?php echo $bws_plugins_pro[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
583
+ <span> | </span>
584
+ <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
585
  </div>
586
+ </div>
587
+ <?php } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) { ?>
588
+ <div class="bws_product_box bws_product_deactivated bws_product_free">
589
+ <div class="bws_product">
590
+ <div class="bws_product_title"><?php echo $value_plugin["Name"]; ?></div>
591
+ <div class="bws_product_content">
592
+ <div class="bws_product_icon">
593
+ <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
 
594
  </div>
595
+ <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
596
  </div>
597
+ <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
598
+ <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["purchase"]; ?>" target="_blank">
599
+ <?php _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
600
+ </a>
601
+ <?php } else { ?>
602
+ <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
603
+ <strong><?php _e( 'DONATE', 'bestwebsoft' );?></strong>
604
+ </a>
605
+ <?php } ?>
606
+ <div class="clear"></div>
607
  </div>
608
+ <div class="bws_product_links">
609
+ <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php _e( "Learn more", 'bestwebsoft' ); ?></a>
610
+ <span> | </span>
611
+ <a class="bws_activate" href="plugins.php" title="<?php _e( "Activate this plugin", 'bestwebsoft' ); ?>" target="_blank"><?php _e( "Activate", 'bestwebsoft' ); ?></a>
612
+ </div>
613
+ </div>
614
+ <?php }
615
  }
616
+ }
617
+ } ?>
618
+ <div class="clear"></div>
619
+ <?php if ( ( isset( $_GET['sub'] ) && 'recommended' == $_GET['sub'] ) || !isset( $_GET['sub'] ) ) { ?>
620
+ <h4 class="bws_recommended"><?php _e( 'Recommended plugins', 'bestwebsoft' ); ?></h4>
621
+ <?php foreach ( $recommend_plugins as $key_plugin => $value_plugin ) {
622
+
623
+ if ( isset( $bws_plugins_pro[ $key_plugin ] ) ) {
624
+ $key_plugin_explode = explode( '-plugin-pro/', $key_plugin );
625
+ if ( isset( $key_plugin_explode[1] ) )
626
+ $icon = $key_plugin_explode[0];
627
+ else {
628
+ $key_plugin_explode = explode( '-pro/', $key_plugin );
629
+ $icon = $key_plugin_explode[0];
 
 
 
 
 
 
 
 
630
  }
631
+ } elseif ( isset( $bws_plugins[ $key_plugin ] ) ) {
632
+ $key_plugin_explode = explode( '-plugin/', $key_plugin );
633
+ if ( isset( $key_plugin_explode[1] ) )
634
+ $icon = $key_plugin_explode[0];
635
+ else {
636
+ $key_plugin_explode = explode( '/', $key_plugin );
637
+ $icon = $key_plugin_explode[0];
638
+ }
639
+ }
640
+ ?>
641
+ <div class="bws_product_box">
642
+ <div class="bws_product">
643
+ <div class="bws_product_title"><?php echo $value_plugin["name"]; ?></div>
644
+ <div class="bws_product_content">
645
+ <div class="bws_product_icon">
646
+ <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
647
+ <div class="bws_product_icon_pro"></div>
648
+ <?php } ?>
649
+ <img src="<?php echo plugins_url( "icons/" , __FILE__ ) . $icon . '.png'; ?>"/>
650
  </div>
651
+ <div class="bws_product_description"><?php echo $bws_plugins[ $key_plugin ]["description"]; ?></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
652
  </div>
653
+ <?php if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && isset( $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ] ) ) { ?>
654
+ <a class="bws_product_button" href="<?php echo $bws_plugins_pro[ $bws_plugins[ $key_plugin ]['pro_version'] ]["link"]; ?>" target="_blank">
655
+ <?php echo _e( 'Go', 'bestwebsoft' );?> <strong>PRO</strong>
656
+ </a>
657
+ <?php } else { ?>
658
+ <a class="bws_product_button bws_donate_button" href="<?php echo $bws_donate_link; ?>" target="_blank">
659
+ <strong><?php echo _e( 'DONATE', 'bestwebsoft' );?></strong>
660
+ </a>
661
+ <?php } ?>
662
+ </div>
663
+ <div class="clear"></div>
664
+ <div class="bws_product_links">
665
+ <a href="<?php echo $bws_plugins[ $key_plugin ]["link"]; ?>" target="_blank"><?php echo __( "Learn more", 'bestwebsoft' ); ?></a>
666
+ <span> | </span>
667
+ <a href="<?php echo $bws_plugins[ $key_plugin ]["wp_install"]; ?>" target="_blank"><?php echo __( "Install now", 'bestwebsoft' ); ?></a>
668
  </div>
669
+ </div>
670
+ <?php }
671
+ } ?>
672
+ <?php } elseif ( 'themes' == $_GET['action'] ) { ?>
673
+ <div id="availablethemes">
674
+ <?php
675
+ global $tabs, $tab, $paged, $type, $theme_field_defaults;
676
+ include( ABSPATH . 'wp-admin/includes/theme-install.php' );
677
+ include( ABSPATH . 'wp-admin/includes/class-wp-themes-list-table.php' );
678
+ include( ABSPATH . 'wp-admin/includes/class-wp-theme-install-list-table.php' );
679
+
680
+ $theme_class = new WP_Theme_Install_List_Table();
681
+ $paged = $theme_class->get_pagenum();
682
+ $per_page = 36;
683
+ $args = array( 'page' => $paged, 'per_page' => $per_page, 'fields' => $theme_field_defaults );
684
+ $args['author'] = 'bestwebsoft';
685
+ $args = apply_filters( 'install_themes_table_api_args_search', $args );
686
+ $api = themes_api( 'query_themes', $args );
687
+
688
+ if ( is_wp_error( $api ) )
689
+ wp_die( $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try again' ) . '</a>' );
690
+
691
+ $theme_class->items = $api->themes;
692
+ $theme_class->set_pagination_args( array(
693
+ 'total_items' => $api->info['results'],
694
+ 'per_page' => $per_page,
695
+ 'infinite_scroll' => true,
696
+ ) );
697
+ $themes = $theme_class->items;
698
+ foreach ( $themes as $theme ) {
699
+ ?><div class="available-theme installable-theme"><?php
700
+ global $themes_allowedtags;
701
+ if ( empty( $theme ) )
702
+ return;
703
+
704
+ $name = wp_kses( $theme->name, $themes_allowedtags );
705
+ $author = wp_kses( $theme->author, $themes_allowedtags );
706
+ $preview_title = sprintf( __('Preview &#8220;%s&#8221;'), $name );
707
+ $preview_url = add_query_arg( array(
708
+ 'tab' => 'theme-information',
709
+ 'theme' => $theme->slug,
710
+ ), self_admin_url( 'theme-install.php' ) );
711
+
712
+ $actions = array();
713
+
714
+ $install_url = add_query_arg( array(
715
+ 'action' => 'install-theme',
716
+ 'theme' => $theme->slug,
717
+ ), self_admin_url( 'update.php' ) );
718
+
719
+ $update_url = add_query_arg( array(
720
+ 'action' => 'upgrade-theme',
721
+ 'theme' => $theme->slug,
722
+ ), self_admin_url( 'update.php' ) );
723
+
724
+ $status = 'install';
725
+ $installed_theme = wp_get_theme( $theme->slug );
726
+ if ( $installed_theme->exists() ) {
727
+ if ( version_compare( $installed_theme->get('Version'), $theme->version, '=' ) )
728
+ $status = 'latest_installed';
729
+ elseif ( version_compare( $installed_theme->get('Version'), $theme->version, '>' ) )
730
+ $status = 'newer_installed';
731
+ else
732
+ $status = 'update_available';
733
+ }
734
+ switch ( $status ) {
735
+ default:
736
+ case 'install':
737
+ $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>';
738
+ break;
739
+ case 'update_available':
740
+ $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>';
741
+ break;
742
+ case 'newer_installed':
743
+ case 'latest_installed':
744
+ $actions[] = '<span class="install-now" title="' . esc_attr__( 'This theme is already installed and is up to date' ) . '">' . _x( 'Installed', 'theme' ) . '</span>';
745
+ break;
746
+ }
747
+ $actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s' ), $name ) ) . '">' . __( 'Preview' ) . '</a>';
748
+ $actions = apply_filters( 'theme_install_actions', $actions, $theme );
749
+ ?>
750
+ <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
751
+ <img src='<?php echo esc_url( $theme->screenshot_url ); ?>' width='150' />
752
+ </a>
753
+ <h3><?php echo $name; ?></h3>
754
+ <div class="theme-author"><?php printf( __( 'By %s' ), $author ); ?></div>
755
+ <div class="action-links">
756
+ <ul>
757
+ <?php foreach ( $actions as $action ): ?>
758
+ <li><?php echo $action; ?></li>
759
+ <?php endforeach; ?>
760
+ <li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e('Details') ?></a></li>
761
+ </ul>
762
+ </div>
763
+ <?php $theme_class->install_theme_info( $theme );
764
+ ?></div>
765
+ <?php }
766
+ // end foreach $theme_names
767
+ $theme_class->theme_installer();
768
+ ?>
769
+ </div>
770
+ <?php } elseif ( 'system_status' == $_GET['action'] ) { ?>
771
+ <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>
772
+ <div class="error" <?php if ( "" == $error ) echo "style=\"display:none\""; ?>><p><strong><?php echo $error; ?></strong></p></div>
773
+ <h3><?php _e( 'System status', 'bestwebsoft' ); ?></h3>
774
+ <div class="inside">
775
+ <table class="bws_system_info">
776
+ <thead><tr><th><?php _e( 'Environment', 'bestwebsoft' ); ?></th><td></td></tr></thead>
777
+ <tbody>
778
+ <?php foreach ( $system_info['system_info'] as $key => $value ) { ?>
779
+ <tr>
780
+ <td scope="row"><?php echo $key; ?></td>
781
+ <td scope="row"><?php echo $value; ?></td>
782
+ </tr>
783
+ <?php } ?>
784
+ </tbody>
785
+ </table>
786
+ <table class="bws_system_info">
787
+ <thead><tr><th><?php _e( 'Active Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
788
+ <tbody>
789
+ <?php foreach ( $system_info['active_plugins'] as $key => $value ) { ?>
790
+ <tr>
791
+ <td scope="row"><?php echo $key; ?></td>
792
+ <td scope="row"><?php echo $value; ?></td>
793
+ </tr>
794
+ <?php } ?>
795
+ </tbody>
796
+ </table>
797
+ <table class="bws_system_info">
798
+ <thead><tr><th><?php _e( 'Inactive Plugins', 'bestwebsoft' ); ?></th><th></th></tr></thead>
799
+ <tbody>
800
  <?php
801
+ if ( ! empty( $system_info['inactive_plugins'] ) ) {
802
+ foreach ( $system_info['inactive_plugins'] as $key => $value ) { ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
803
  <tr>
804
  <td scope="row"><?php echo $key; ?></td>
805
  <td scope="row"><?php echo $value; ?></td>
806
  </tr>
807
+ <?php }
808
+ } ?>
809
+ </tbody>
810
+ </table>
811
+ <div class="clear"></div>
812
+ <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
813
+ <p>
814
+ <input type="hidden" name="bwsmn_form_submit" value="submit" />
815
+ <input type="submit" class="button-primary" value="<?php _e( 'Send to support', 'bestwebsoft' ) ?>" />
816
+ <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit' ); ?>
817
+ </p>
818
+ </form>
819
+ <form method="post" action="admin.php?page=bws_plugins&amp;action=system_status">
820
+ <p>
821
+ <input type="hidden" name="bwsmn_form_submit_custom_email" value="submit" />
822
+ <input type="submit" class="button" value="<?php _e( 'Send to custom email &#187;', 'bestwebsoft' ) ?>" />
823
+ <input type="text" value="<?php echo $bwsmn_form_email; ?>" name="bwsmn_form_email" />
824
+ <?php wp_nonce_field( plugin_basename(__FILE__), 'bwsmn_nonce_submit_custom_email' ); ?>
825
+ </p>
826
+ </form>
827
+ </div>
828
+ <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
829
  </div>
830
  <?php }
831
  }
840
  if ( ! function_exists ( 'bws_admin_head' ) ) {
841
  function bws_admin_head() {
842
  global $wp_version;
843
+ if ( $wp_version < 3.8 )
844
+ wp_enqueue_style( 'pdfprnt-stylesheet', plugins_url( 'css/general_style_wp_before_3.8.css', __FILE__ ) );
845
+ else
846
+ wp_enqueue_style( 'pdfprnt-stylesheet', plugins_url( 'css/general_style.css', __FILE__ ) );
847
+
848
  if ( isset( $_GET['page'] ) && $_GET['page'] == "bws_plugins" ) {
849
  wp_enqueue_style( 'bws_menu_style', plugins_url( 'css/style.css', __FILE__ ) );
850
+ wp_enqueue_script( 'bws_menu_script', plugins_url( 'js/bws_menu.js' , __FILE__ ) );
851
  if ( $wp_version >= '3.8' )
852
  wp_enqueue_script( 'theme-install' );
853
  elseif ( $wp_version >= '3.4' )
bws_menu/css/general_style.css ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #adminmenu #toplevel_page_bws_plugins div.wp-menu-image,
2
+ .admin-color-classic #adminmenu #toplevel_page_bws_plugins div.wp-menu-image,
3
+ #adminmenu #toplevel_page_bws_plugins:hover div.wp-menu-image,
4
+ #adminmenu #toplevel_page_bws_plugins.wp-has-current-submenu div.wp-menu-image {
5
+ background: url("../images/icon_16_single.png") no-repeat scroll center center transparent;
6
+ }
7
+ #adminmenu #toplevel_page_bws_plugins.wp-not-current-submenu div.wp-menu-image {
8
+ opacity: 0.7;
9
+ }
10
+ #toplevel_page_bws_plugins .wp-submenu .wp-first-item {
11
+ display: none;
12
+ }
13
+ /*
14
+ * styles for rate-support div on the settings page
15
+ */
16
+ .bws-plugin-reviews {
17
+ background: none repeat scroll 0 0 #BEE1F1;
18
+ border: 1px solid #70A8C2;
19
+ border-radius: 3px;
20
+ max-width: 700px;
21
+ }
22
+ .bws-plugin-reviews-rate {
23
+ padding: 10px;
24
+ border-bottom: 1px dashed #70A8C2;
25
+ }
26
+ .bws-plugin-reviews-support {
27
+ padding: 10px;
28
+ }
29
+ /*
30
+ * styles for Go PRO tab
31
+ */
32
+ .bws_go_pro_tab {
33
+ background-color: #2A95C5;
34
+ border-color: #11688F;
35
+ color: #FFFFFF;
36
+ font-weight: normal;
37
+ text-shadow: none;
38
+ }
39
+ .bws_go_pro_tab:hover {
40
+ background-color: #2080AB;
41
+ color: #FFFFFF;
42
+ border-color: #11688F;
43
+ }
44
+ .bws_go_pro_tab.nav-tab-active {
45
+ background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
46
+ border-color: #CCCCCC #CCCCCC #F1F1F1;
47
+ color: #000000;
48
+ }
49
+ /*
50
+ * styles for pro_version settings and tooltip
51
+ */
52
+ table.bws_pro_version {
53
+ background: #E0E0E0;
54
+ border: 1px solid #AAA;
55
+ margin-bottom: 5px;
56
+ width: auto !important;
57
+ float: left;
58
+ }
59
+ table.bws_pro_version th,
60
+ table.bws_pro_version td {
61
+ color: #555;
62
+ padding-left: 10px;
63
+ }
64
+ td.bws_pro_version {
65
+ background: #E0E0E0;
66
+ border: 1px solid #AAA;
67
+ }
68
+ .bws_pro_version_tooltip {
69
+ background: #FFF;
70
+ border: 1px solid #AAA;
71
+ }
72
+ .form-table.bws_pro_version .bws_pro_version_tooltip th {
73
+ font-weight: normal;
74
+ padding-bottom: 10px;
75
+ }
76
+ /*
77
+ * styles for banner
78
+ */
79
+ .bws_banner_on_plugin_page {
80
+ border: 1px solid #d4d4d4;
81
+ margin: 12px 0;
82
+ background: #FFF;
83
+ position: relative;
84
+ overflow: hidden
85
+ }
86
+ .bws_banner_on_plugin_page .text {
87
+ color: #000;
88
+ font-size: 15px;
89
+ line-height: 26px;
90
+ margin: 18px 18px 14px;
91
+ float: left;
92
+ width: auto;
93
+ max-width: 80%;
94
+ }
95
+ .bws_banner_on_plugin_page .text span {
96
+ font-size: 12px;
97
+ opacity: 0.7;
98
+ }
99
+ .bws_banner_on_plugin_page .button {
100
+ float: left;
101
+ border: none;
102
+ font-size: 14px;
103
+ margin: 18px 0 18px 16px;
104
+ padding: 12px 0;
105
+ color: #FFF;
106
+ text-shadow: none;
107
+ font-weight: bold;
108
+ background: #0074A2;
109
+ -moz-border-radius: 3px;
110
+ border-radius: 3px;
111
+ -webkit-border-radius: 3px;
112
+ text-decoration: none;
113
+ height: 50px;
114
+ text-align: center;
115
+ text-transform: uppercase;
116
+ width: 147px;
117
+ box-shadow: none;
118
+ line-height: 26px;
119
+ }
120
+ .bws_banner_on_plugin_page .button:hover,
121
+ .bws_banner_on_plugin_page .button:focus {
122
+ background: #222;
123
+ color: #FFF;
124
+ }
125
+ .bws_banner_on_plugin_page .icon {
126
+ float: right;
127
+ margin: 12px 8px 8px 0;
128
+ }
129
+ .bws_banner_on_plugin_page .close_icon {
130
+ float: right;
131
+ margin: 8px;
132
+ cursor: pointer;
133
+ }
134
+ /* #### Mobile Phones Portrait or Landscape #### */
135
+ @media screen and (max-device-width: 640px) {
136
+ .bws_banner_on_plugin_page .text,
137
+ .bws_banner_on_plugin_page .icon,
138
+ .bws_banner_on_plugin_page .button_div,
139
+ .bws_banner_on_plugin_page .button {
140
+ float: none;
141
+ text-align: center;
142
+ max-width: 100%;
143
+ }
144
+ }
bws_menu/css/general_style_wp_before_3.8.css ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #adminmenu #toplevel_page_bws_plugins div.wp-menu-image {
2
+ background: url("../images/icon_16.png") no-repeat scroll center center transparent;
3
+ }
4
+ #wpadminbar li#wp-admin-bar-pdfprnt-bar-menu a:hover span.admin-bar-menu-bws-icon {
5
+ background: url("../images/icon_16_c.png") no-repeat scroll center center transparent;
6
+ }
7
+ #adminmenu #toplevel_page_bws_plugins:hover div.wp-menu-image,
8
+ #adminmenu #toplevel_page_bws_plugins.wp-has-current-submenu div.wp-menu-image {
9
+ background: url("../images/icon_16_c.png") no-repeat scroll center center transparent;
10
+ }
11
+ .wrap #icon-options-general.icon32-bws {
12
+ background: url("../images/icon_36.png") no-repeat scroll left top transparent;
13
+ }
14
+ #toplevel_page_bws_plugins .wp-submenu .wp-first-item {
15
+ display: none;
16
+ }
17
+ /*
18
+ * styles for rate-support div on the settings page
19
+ */
20
+ .bws-plugin-reviews {
21
+ background: none repeat scroll 0 0 #BEE1F1;
22
+ border: 1px solid #70A8C2;
23
+ border-radius: 3px;
24
+ max-width: 700px;
25
+ }
26
+ .bws-plugin-reviews-rate {
27
+ padding: 10px;
28
+ border-bottom: 1px dashed #70A8C2;
29
+ }
30
+ .bws-plugin-reviews-support {
31
+ padding: 10px;
32
+ }
33
+ /*
34
+ * styles for Go PRO tab
35
+ */
36
+ .bws_go_pro_tab {
37
+ background-color: #2A95C5;
38
+ border-color: #11688F;
39
+ color: #FFFFFF;
40
+ font-weight: normal !important;
41
+ text-shadow: none;
42
+ }
43
+ .bws_go_pro_tab:hover {
44
+ background-color: #2080AB;
45
+ color: #FFFFFF;
46
+ border-color: #11688F;
47
+ }
48
+ /*
49
+ * styles for pro_version settings and tooltip
50
+ */
51
+ table.bws_pro_version {
52
+ background: #E0E0E0;
53
+ border: 1px solid #AAA;
54
+ margin-bottom: 5px;
55
+ width: auto !important;
56
+ float: left;
57
+ }
58
+ table.bws_pro_version th,
59
+ table.bws_pro_version td {
60
+ color: #555;
61
+ padding-left: 10px;
62
+ }
63
+ td.bws_pro_version {
64
+ background: #E0E0E0;
65
+ border: 1px solid #AAA;
66
+ }
67
+ .bws_pro_version_tooltip {
68
+ background: #FFF;
69
+ border: 1px solid #AAA;
70
+ }
71
+ .form-table.bws_pro_version .bws_pro_version_tooltip th {
72
+ font-weight: normal;
73
+ padding-bottom: 10px;
74
+ }
75
+ /*
76
+ * styles for banner
77
+ */
78
+ .bws_banner_on_plugin_page {
79
+ border: 1px solid #d4d4d4;
80
+ background: #FFF;
81
+ position: relative;
82
+ overflow: hidden;
83
+ margin: 12px 0;
84
+ background: #ECECEC;
85
+ -moz-border-radius: 3px;
86
+ -webkit-border-radius: 3px;
87
+ border-radius: 3px;
88
+ }
89
+ .bws_banner_on_plugin_page .text {
90
+ color: #000;
91
+ font-size: 15px;
92
+ line-height: 26px;
93
+ margin: 18px 18px 14px;
94
+ float: left;
95
+ width: auto;
96
+ max-width: 80%;
97
+ }
98
+ .bws_banner_on_plugin_page .text span {
99
+ font-size: 12px;
100
+ opacity: 0.7;
101
+ }
102
+ .bws_banner_on_plugin_page .button {
103
+ float: left;
104
+ border: none;
105
+ font-size: 14px;
106
+ margin: 18px 0 18px 16px;
107
+ padding: 14px 0;
108
+ color: #FFF;
109
+ text-shadow: none;
110
+ font-weight: bold;
111
+ background: #0074A2;
112
+ -moz-border-radius: 3px;
113
+ border-radius: 3px;
114
+ -webkit-border-radius: 3px;
115
+ text-decoration: none;
116
+ height: 50px;
117
+ text-align: center;
118
+ text-transform: uppercase;
119
+ width: 147px;
120
+ box-shadow: none;
121
+ -moz-box-sizing: border-box;
122
+ -webkit-box-sizing: border-box;
123
+ box-sizing: border-box;
124
+ }
125
+ .bws_banner_on_plugin_page .button:hover,
126
+ .bws_banner_on_plugin_page .button:focus {
127
+ background: #222;
128
+ color: #FFF;
129
+ }
130
+ .bws_banner_on_plugin_page .icon {
131
+ float: right;
132
+ margin: 12px 8px 8px 0;
133
+ }
134
+ .bws_banner_on_plugin_page .close_icon {
135
+ float: right;
136
+ margin: 8px;
137
+ cursor: pointer;
138
+ }
139
+ /* #### Mobile Phones Portrait or Landscape #### */
140
+ @media screen and (max-device-width: 640px) {
141
+ .bws_banner_on_plugin_page .text,
142
+ .bws_banner_on_plugin_page .icon,
143
+ .bws_banner_on_plugin_page .button_div,
144
+ .bws_banner_on_plugin_page .button {
145
+ float: none;
146
+ text-align: center;
147
+ }
148
+ }
bws_menu/css/style.css CHANGED
@@ -86,6 +86,7 @@ h4.bws_recommended {
86
  padding: 0 10px;
87
  color: #a7a7a7;
88
  display: none;
 
89
  }
90
  .bws_product_links {
91
  padding: 10px 6px 12px;
@@ -135,15 +136,4 @@ h4.bws_recommended {
135
  }
136
  .bws_product_button.bws_donate_button:hover {
137
  background: #D69108 !important;
138
- }
139
- .bws_switch_link {
140
- background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
141
- border: medium none;
142
- color: #0074A2;
143
- float: right;
144
- cursor: pointer;
145
- font-size: 13px;
146
- }
147
- .bws_switch_link:hover {
148
- color: #2ea2cc;
149
  }
86
  padding: 0 10px;
87
  color: #a7a7a7;
88
  display: none;
89
+ font-size: 12px;
90
  }
91
  .bws_product_links {
92
  padding: 10px 6px 12px;
136
  }
137
  .bws_product_button.bws_donate_button:hover {
138
  background: #D69108 !important;
 
 
 
 
 
 
 
 
 
 
 
139
  }
bws_menu/icons/bws-google-analytics.png ADDED
Binary file
bws_menu/icons/bws-google-maps.png ADDED
Binary file
bws_menu/icons/contact-form-multi.png ADDED
Binary file
bws_menu/icons/google-captcha.png ADDED
Binary file
bws_menu/icons/google-shortlink.png ADDED
Binary file
bws_menu/icons/htaccess.png ADDED
Binary file
bws_menu/icons/post-to-csv.png ADDED
Binary file
bws_menu/icons/sender.png ADDED
Binary file
bws_menu/icons/subscriber.png ADDED
Binary file
{images → bws_menu/images}/icon_16.png RENAMED
File without changes
{images → bws_menu/images}/icon_16_b.png RENAMED
File without changes
{images → bws_menu/images}/icon_16_c.png RENAMED
File without changes
{images → bws_menu/images}/icon_16_single.png RENAMED
File without changes
{images → bws_menu/images}/icon_36.png RENAMED
File without changes
{images → bws_menu/images}/icon_36_b.png RENAMED
File without changes
bws_menu/languages/bestwebsoft-fr_FR.mo CHANGED
Binary file
bws_menu/languages/bestwebsoft-fr_FR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: bestwebsoft\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2014-01-17 12:13+0300\n"
6
- "PO-Revision-Date: 2014-01-17 12:13+0300\n"
7
  "Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
8
  "Language-Team: Luc Capronnier <lcapronnier@yahoo.com>\n"
9
  "Language: fr_FR\n"
@@ -17,383 +17,373 @@ msgstr ""
17
  "X-Generator: Poedit 1.5.7\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
- #: bws_menu.php:339
21
  msgid "Not set"
22
  msgstr "Not set"
23
 
24
- #: bws_menu.php:341
25
- #: bws_menu.php:345
26
  msgid "On"
27
  msgstr "On"
28
 
29
- #: bws_menu.php:343
30
- #: bws_menu.php:347
31
  msgid "Off"
32
  msgstr "Off"
33
 
34
- #: bws_menu.php:351
35
- #: bws_menu.php:355
36
- #: bws_menu.php:359
37
- #: bws_menu.php:363
38
- #: bws_menu.php:367
39
- #: bws_menu.php:393
40
  msgid "N/A"
41
  msgstr "N/A"
42
 
43
- #: bws_menu.php:365
44
  msgid " Mb"
45
  msgstr " Mb"
46
 
47
- #: bws_menu.php:369
48
- #: bws_menu.php:373
49
- #: bws_menu.php:377
50
- #: bws_menu.php:388
51
  msgid "Yes"
52
  msgstr "Yes"
53
 
54
- #: bws_menu.php:371
55
- #: bws_menu.php:375
56
- #: bws_menu.php:379
57
- #: bws_menu.php:390
58
  msgid "No"
59
  msgstr "No"
60
 
61
- #: bws_menu.php:404
62
  msgid "Operating System"
63
  msgstr "Operating System"
64
 
65
- #: bws_menu.php:405
66
  msgid "Server"
67
  msgstr "Server"
68
 
69
- #: bws_menu.php:406
70
  msgid "Memory usage"
71
  msgstr "Memory usage"
72
 
73
- #: bws_menu.php:407
74
  msgid "MYSQL Version"
75
  msgstr "MYSQL Version"
76
 
77
- #: bws_menu.php:408
78
  msgid "SQL Mode"
79
  msgstr "SQL Mode"
80
 
81
- #: bws_menu.php:409
82
  msgid "PHP Version"
83
  msgstr "PHP Version"
84
 
85
- #: bws_menu.php:410
86
  msgid "PHP Safe Mode"
87
  msgstr "PHP Safe Mode"
88
 
89
- #: bws_menu.php:411
90
  msgid "PHP Allow URL fopen"
91
  msgstr "PHP Allow URL fopen"
92
 
93
- #: bws_menu.php:412
94
  msgid "PHP Memory Limit"
95
  msgstr "PHP Memory Limit"
96
 
97
- #: bws_menu.php:413
98
  msgid "PHP Max Upload Size"
99
  msgstr "PHP Max Upload Size"
100
 
101
- #: bws_menu.php:414
102
  msgid "PHP Max Post Size"
103
  msgstr "PHP Max Post Size"
104
 
105
- #: bws_menu.php:415
106
  msgid "PHP Max Script Execute Time"
107
  msgstr "PHP Max Script Execute Time"
108
 
109
- #: bws_menu.php:416
110
  msgid "PHP Exif support"
111
  msgstr "PHP Exif support"
112
 
113
- #: bws_menu.php:417
114
  msgid "PHP IPTC support"
115
  msgstr "PHP IPTC support"
116
 
117
- #: bws_menu.php:418
118
  msgid "PHP XML support"
119
  msgstr "PHP XML support"
120
 
121
- #: bws_menu.php:419
122
  msgid "Site URL"
123
  msgstr "Site URL"
124
 
125
- #: bws_menu.php:420
126
  msgid "Home URL"
127
  msgstr "Home URL"
128
 
129
- #: bws_menu.php:421
130
  msgid "WordPress Version"
131
  msgstr "WordPress Version"
132
 
133
- #: bws_menu.php:422
134
  msgid "WordPress DB Version"
135
  msgstr "WordPress DB Version"
136
 
137
- #: bws_menu.php:423
138
  msgid "Multisite"
139
  msgstr "Multisite"
140
 
141
- #: bws_menu.php:424
142
  msgid "Active Theme"
143
  msgstr "Active Theme"
144
 
145
- #: bws_menu.php:440
146
  msgid "Please enter a valid email address."
147
  msgstr "Merci de saisir une adresse e-mail valide."
148
 
149
- #: bws_menu.php:444
150
  msgid "Email with system info is sent to "
151
  msgstr "Le courriel avec les informations système est envoyé à"
152
 
153
- #: bws_menu.php:448
154
  msgid "Thank you for contacting us."
155
  msgstr "Merci de nous avoir contacté."
156
 
157
- #: bws_menu.php:476
158
  msgid "Sorry, email message could not be delivered."
159
  msgstr "Désolé, votre e-mail n'a pas pu être envoyé."
160
 
161
- #: bws_menu.php:488
162
  msgid "Switch to new interface"
163
- msgstr ""
164
 
165
- #: bws_menu.php:495
166
  msgid "Pro plugins"
167
  msgstr "Plugins Pro"
168
 
169
- #: bws_menu.php:498
170
- #: bws_menu.php:524
171
  msgid "Activated plugins"
172
  msgstr "Plugin activé"
173
 
174
- #: bws_menu.php:500
175
- #: bws_menu.php:508
176
- #: bws_menu.php:516
177
- #: bws_menu.php:526
178
- #: bws_menu.php:534
179
- #: bws_menu.php:542
180
- #: bws_menu.php:552
181
- #: bws_menu.php:559
182
- #: bws_menu.php:567
183
  msgid "Read more"
184
  msgstr "Lire la suite"
185
 
186
- #: bws_menu.php:500
187
- #: bws_menu.php:526
188
- #: bws_menu.php:678
189
- #: bws_menu.php:706
190
  msgid "Settings"
191
  msgstr "Réglages"
192
 
193
- #: bws_menu.php:506
194
- #: bws_menu.php:532
195
- #: bws_menu.php:658
196
  msgid "Installed plugins"
197
  msgstr "Plugin installé"
198
 
199
- #: bws_menu.php:514
200
- #: bws_menu.php:540
201
- #: bws_menu.php:765
202
  msgid "Recommended plugins"
203
  msgstr "Plugin recommandé"
204
 
205
- #: bws_menu.php:516
206
  msgid "Purchase"
207
  msgstr "Achetez"
208
 
209
- #: bws_menu.php:521
210
  msgid "Free plugins"
211
  msgstr "Plugins gratuits"
212
 
213
- #: bws_menu.php:542
214
- #: bws_menu.php:567
215
  msgid "Download"
216
  msgstr "Téléchargement"
217
 
218
- #: bws_menu.php:542
219
- #: bws_menu.php:567
220
- #: bws_menu.php:867
221
  #, php-format
222
  msgid "Install %s"
223
  msgstr "%s installé"
224
 
225
- #: bws_menu.php:542
226
- #: bws_menu.php:567
227
  msgid "Install now from wordpress.org"
228
  msgstr "Installer maintenant depuis wordpress.org"
229
 
230
- #: bws_menu.php:548
231
  msgid "Free themes"
232
- msgstr ""
233
 
234
- #: bws_menu.php:551
235
- #, fuzzy
236
  msgid "Activated theme"
237
- msgstr "Active Theme"
238
 
239
- #: bws_menu.php:552
240
  #, php-format
241
  msgid "Customize &#8220;%s&#8221;"
242
- msgstr ""
243
 
244
- #: bws_menu.php:552
245
  msgid "Customize"
246
- msgstr ""
247
 
248
- #: bws_menu.php:557
249
- #, fuzzy
250
  msgid "Installed themes"
251
- msgstr "%s installé"
252
 
253
- #: bws_menu.php:565
254
- #, fuzzy
255
  msgid "Recommended themes"
256
- msgstr "Plugin recommandé"
257
 
258
- #: bws_menu.php:573
259
  msgid "If you have any questions, please contact us via"
260
  msgstr "Si vous avez des questions, merci de contacter via "
261
 
262
- #: bws_menu.php:580
263
- #: bws_menu.php:648
264
- #: bws_menu.php:903
265
  msgid "System status"
266
  msgstr "System status"
267
 
268
- #: bws_menu.php:584
269
- #: bws_menu.php:906
270
  msgid "Environment"
271
  msgstr "Environment"
272
 
273
- #: bws_menu.php:595
274
- #: bws_menu.php:917
275
  msgid "Active Plugins"
276
  msgstr "Plugin actifs"
277
 
278
- #: bws_menu.php:606
279
- #: bws_menu.php:928
280
  msgid "Inactive Plugins"
281
  msgstr "Plugin inactifs"
282
 
283
- #: bws_menu.php:620
284
- #: bws_menu.php:942
285
  msgid "Send to support"
286
  msgstr "Envoyé au support"
287
 
288
- #: bws_menu.php:627
289
- #: bws_menu.php:949
290
  msgid "Send to custom email &#187;"
291
  msgstr "Envoyer un e-mail spécifique &#187;"
292
 
293
- #: bws_menu.php:638
294
  msgid "Switch to old interface"
295
- msgstr ""
296
 
297
- #: bws_menu.php:644
298
- #, fuzzy
299
  msgid "Plugins"
300
- msgstr "Plugins Pro"
301
 
302
- #: bws_menu.php:646
303
  msgid "Themes"
304
- msgstr ""
305
 
306
- #: bws_menu.php:652
307
  msgid "All"
308
- msgstr ""
309
 
310
- #: bws_menu.php:653
311
- #, fuzzy
312
  msgid "Installed"
313
- msgstr "%s installé"
314
 
315
- #: bws_menu.php:654
316
- #, fuzzy
317
  msgid "Recommended"
318
- msgstr "Plugin recommandé"
319
 
320
- #: bws_menu.php:676
321
- #: bws_menu.php:704
322
- #: bws_menu.php:726
323
- #: bws_menu.php:754
324
- #: bws_menu.php:795
325
- #, fuzzy
326
  msgid "Learn more"
327
- msgstr "Lire la suite"
328
 
329
- #: bws_menu.php:694
330
- #: bws_menu.php:744
331
- #: bws_menu.php:785
332
  msgid "Go"
333
- msgstr ""
334
 
335
- #: bws_menu.php:698
336
- #: bws_menu.php:748
337
- #: bws_menu.php:789
338
  msgid "DONATE"
339
- msgstr ""
340
 
341
- #: bws_menu.php:728
342
- #: bws_menu.php:756
343
- #, fuzzy
344
  msgid "Activate this plugin"
345
- msgstr "Plugin activé"
346
 
347
- #: bws_menu.php:728
348
- #: bws_menu.php:756
349
- #, fuzzy
350
  msgid "Activate"
351
- msgstr "Activé le captcha"
352
 
353
- #: bws_menu.php:797
354
- #, fuzzy
355
  msgid "Install now"
356
- msgstr "Installa Ora"
357
 
358
- #: bws_menu.php:819
359
  msgid "Try again"
360
- msgstr ""
361
 
362
- #: bws_menu.php:836
363
  #, php-format
364
  msgid "Preview &#8220;%s&#8221;"
365
- msgstr ""
366
 
367
- #: bws_menu.php:867
368
  msgid "Install Now"
369
  msgstr "Installa Ora"
370
 
371
- #: bws_menu.php:870
372
  #, php-format
373
  msgid "Update to version %s"
374
- msgstr ""
375
 
376
- #: bws_menu.php:870
377
  msgid "Update"
378
- msgstr ""
379
 
380
- #: bws_menu.php:877
381
  #, php-format
382
  msgid "Preview %s"
383
- msgstr ""
384
 
385
- #: bws_menu.php:877
386
  msgid "Preview"
387
- msgstr ""
388
 
389
- #: bws_menu.php:884
390
  #, php-format
391
  msgid "By %s"
392
- msgstr ""
393
 
394
- #: bws_menu.php:890
395
  msgid "Details"
396
- msgstr ""
397
 
398
  #, fuzzy
399
  #~ msgid "installed"
2
  msgstr ""
3
  "Project-Id-Version: bestwebsoft\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2014-03-03 15:03+0300\n"
6
+ "PO-Revision-Date: 2014-03-03 15:03+0300\n"
7
  "Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
8
  "Language-Team: Luc Capronnier <lcapronnier@yahoo.com>\n"
9
  "Language: fr_FR\n"
17
  "X-Generator: Poedit 1.5.7\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
+ #: bws_menu.php:417
21
  msgid "Not set"
22
  msgstr "Not set"
23
 
24
+ #: bws_menu.php:419
25
+ #: bws_menu.php:423
26
  msgid "On"
27
  msgstr "On"
28
 
29
+ #: bws_menu.php:421
30
+ #: bws_menu.php:425
31
  msgid "Off"
32
  msgstr "Off"
33
 
34
+ #: bws_menu.php:429
35
+ #: bws_menu.php:433
36
+ #: bws_menu.php:437
37
+ #: bws_menu.php:441
38
+ #: bws_menu.php:445
39
+ #: bws_menu.php:471
40
  msgid "N/A"
41
  msgstr "N/A"
42
 
43
+ #: bws_menu.php:443
44
  msgid " Mb"
45
  msgstr " Mb"
46
 
47
+ #: bws_menu.php:447
48
+ #: bws_menu.php:451
49
+ #: bws_menu.php:455
50
+ #: bws_menu.php:466
51
  msgid "Yes"
52
  msgstr "Yes"
53
 
54
+ #: bws_menu.php:449
55
+ #: bws_menu.php:453
56
+ #: bws_menu.php:457
57
+ #: bws_menu.php:468
58
  msgid "No"
59
  msgstr "No"
60
 
61
+ #: bws_menu.php:482
62
  msgid "Operating System"
63
  msgstr "Operating System"
64
 
65
+ #: bws_menu.php:483
66
  msgid "Server"
67
  msgstr "Server"
68
 
69
+ #: bws_menu.php:484
70
  msgid "Memory usage"
71
  msgstr "Memory usage"
72
 
73
+ #: bws_menu.php:485
74
  msgid "MYSQL Version"
75
  msgstr "MYSQL Version"
76
 
77
+ #: bws_menu.php:486
78
  msgid "SQL Mode"
79
  msgstr "SQL Mode"
80
 
81
+ #: bws_menu.php:487
82
  msgid "PHP Version"
83
  msgstr "PHP Version"
84
 
85
+ #: bws_menu.php:488
86
  msgid "PHP Safe Mode"
87
  msgstr "PHP Safe Mode"
88
 
89
+ #: bws_menu.php:489
90
  msgid "PHP Allow URL fopen"
91
  msgstr "PHP Allow URL fopen"
92
 
93
+ #: bws_menu.php:490
94
  msgid "PHP Memory Limit"
95
  msgstr "PHP Memory Limit"
96
 
97
+ #: bws_menu.php:491
98
  msgid "PHP Max Upload Size"
99
  msgstr "PHP Max Upload Size"
100
 
101
+ #: bws_menu.php:492
102
  msgid "PHP Max Post Size"
103
  msgstr "PHP Max Post Size"
104
 
105
+ #: bws_menu.php:493
106
  msgid "PHP Max Script Execute Time"
107
  msgstr "PHP Max Script Execute Time"
108
 
109
+ #: bws_menu.php:494
110
  msgid "PHP Exif support"
111
  msgstr "PHP Exif support"
112
 
113
+ #: bws_menu.php:495
114
  msgid "PHP IPTC support"
115
  msgstr "PHP IPTC support"
116
 
117
+ #: bws_menu.php:496
118
  msgid "PHP XML support"
119
  msgstr "PHP XML support"
120
 
121
+ #: bws_menu.php:497
122
  msgid "Site URL"
123
  msgstr "Site URL"
124
 
125
+ #: bws_menu.php:498
126
  msgid "Home URL"
127
  msgstr "Home URL"
128
 
129
+ #: bws_menu.php:501
130
  msgid "WordPress Version"
131
  msgstr "WordPress Version"
132
 
133
+ #: bws_menu.php:502
134
  msgid "WordPress DB Version"
135
  msgstr "WordPress DB Version"
136
 
137
+ #: bws_menu.php:503
138
  msgid "Multisite"
139
  msgstr "Multisite"
140
 
141
+ #: bws_menu.php:504
142
  msgid "Active Theme"
143
  msgstr "Active Theme"
144
 
145
+ #: bws_menu.php:520
146
  msgid "Please enter a valid email address."
147
  msgstr "Merci de saisir une adresse e-mail valide."
148
 
149
+ #: bws_menu.php:524
150
  msgid "Email with system info is sent to "
151
  msgstr "Le courriel avec les informations système est envoyé à"
152
 
153
+ #: bws_menu.php:528
154
  msgid "Thank you for contacting us."
155
  msgstr "Merci de nous avoir contacté."
156
 
157
+ #: bws_menu.php:556
158
  msgid "Sorry, email message could not be delivered."
159
  msgstr "Désolé, votre e-mail n'a pas pu être envoyé."
160
 
161
+ #: bws_menu.php:568
162
  msgid "Switch to new interface"
163
+ msgstr "Basculer vers la nouvelle interface"
164
 
165
+ #: bws_menu.php:575
166
  msgid "Pro plugins"
167
  msgstr "Plugins Pro"
168
 
169
+ #: bws_menu.php:578
170
+ #: bws_menu.php:604
171
  msgid "Activated plugins"
172
  msgstr "Plugin activé"
173
 
174
+ #: bws_menu.php:580
175
+ #: bws_menu.php:588
176
+ #: bws_menu.php:596
177
+ #: bws_menu.php:606
178
+ #: bws_menu.php:614
179
+ #: bws_menu.php:622
180
+ #: bws_menu.php:632
181
+ #: bws_menu.php:639
182
+ #: bws_menu.php:647
183
  msgid "Read more"
184
  msgstr "Lire la suite"
185
 
186
+ #: bws_menu.php:580
187
+ #: bws_menu.php:606
188
+ #: bws_menu.php:779
189
+ #: bws_menu.php:806
190
  msgid "Settings"
191
  msgstr "Réglages"
192
 
193
+ #: bws_menu.php:586
194
+ #: bws_menu.php:612
195
+ #: bws_menu.php:741
196
  msgid "Installed plugins"
197
  msgstr "Plugin installé"
198
 
199
+ #: bws_menu.php:594
200
+ #: bws_menu.php:620
201
+ #: bws_menu.php:863
202
  msgid "Recommended plugins"
203
  msgstr "Plugin recommandé"
204
 
205
+ #: bws_menu.php:596
206
  msgid "Purchase"
207
  msgstr "Achetez"
208
 
209
+ #: bws_menu.php:601
210
  msgid "Free plugins"
211
  msgstr "Plugins gratuits"
212
 
213
+ #: bws_menu.php:622
214
+ #: bws_menu.php:647
215
  msgid "Download"
216
  msgstr "Téléchargement"
217
 
218
+ #: bws_menu.php:622
219
+ #: bws_menu.php:647
220
+ #: bws_menu.php:980
221
  #, php-format
222
  msgid "Install %s"
223
  msgstr "%s installé"
224
 
225
+ #: bws_menu.php:622
226
+ #: bws_menu.php:647
227
  msgid "Install now from wordpress.org"
228
  msgstr "Installer maintenant depuis wordpress.org"
229
 
230
+ #: bws_menu.php:628
231
  msgid "Free themes"
232
+ msgstr "Thèmes gratuits"
233
 
234
+ #: bws_menu.php:631
 
235
  msgid "Activated theme"
236
+ msgstr "Thème actif"
237
 
238
+ #: bws_menu.php:632
239
  #, php-format
240
  msgid "Customize &#8220;%s&#8221;"
241
+ msgstr "Personnaliser &#8220;%s&#8221;"
242
 
243
+ #: bws_menu.php:632
244
  msgid "Customize"
245
+ msgstr "Personnaliser"
246
 
247
+ #: bws_menu.php:637
 
248
  msgid "Installed themes"
249
+ msgstr "Thèmes installés"
250
 
251
+ #: bws_menu.php:645
 
252
  msgid "Recommended themes"
253
+ msgstr "Thèmes recommandés"
254
 
255
+ #: bws_menu.php:653
256
  msgid "If you have any questions, please contact us via"
257
  msgstr "Si vous avez des questions, merci de contacter via "
258
 
259
+ #: bws_menu.php:660
260
+ #: bws_menu.php:731
261
+ #: bws_menu.php:1016
262
  msgid "System status"
263
  msgstr "System status"
264
 
265
+ #: bws_menu.php:664
266
+ #: bws_menu.php:1019
267
  msgid "Environment"
268
  msgstr "Environment"
269
 
270
+ #: bws_menu.php:675
271
+ #: bws_menu.php:1030
272
  msgid "Active Plugins"
273
  msgstr "Plugin actifs"
274
 
275
+ #: bws_menu.php:686
276
+ #: bws_menu.php:1041
277
  msgid "Inactive Plugins"
278
  msgstr "Plugin inactifs"
279
 
280
+ #: bws_menu.php:703
281
+ #: bws_menu.php:1058
282
  msgid "Send to support"
283
  msgstr "Envoyé au support"
284
 
285
+ #: bws_menu.php:710
286
+ #: bws_menu.php:1065
287
  msgid "Send to custom email &#187;"
288
  msgstr "Envoyer un e-mail spécifique &#187;"
289
 
290
+ #: bws_menu.php:721
291
  msgid "Switch to old interface"
292
+ msgstr "Basculer vers l'ancienne interface"
293
 
294
+ #: bws_menu.php:727
 
295
  msgid "Plugins"
296
+ msgstr "Externsions"
297
 
298
+ #: bws_menu.php:729
299
  msgid "Themes"
300
+ msgstr "Thèmes"
301
 
302
+ #: bws_menu.php:735
303
  msgid "All"
304
+ msgstr "Tous"
305
 
306
+ #: bws_menu.php:736
 
307
  msgid "Installed"
308
+ msgstr "Installé"
309
 
310
+ #: bws_menu.php:737
 
311
  msgid "Recommended"
312
+ msgstr "Recommandé"
313
 
314
+ #: bws_menu.php:777
315
+ #: bws_menu.php:804
316
+ #: bws_menu.php:825
317
+ #: bws_menu.php:852
318
+ #: bws_menu.php:908
 
319
  msgid "Learn more"
320
+ msgstr "En savoir plus"
321
 
322
+ #: bws_menu.php:794
323
+ #: bws_menu.php:842
324
+ #: bws_menu.php:898
325
  msgid "Go"
326
+ msgstr "Allez"
327
 
328
+ #: bws_menu.php:798
329
+ #: bws_menu.php:846
330
+ #: bws_menu.php:902
331
  msgid "DONATE"
332
+ msgstr "Faire un don"
333
 
334
+ #: bws_menu.php:827
335
+ #: bws_menu.php:854
 
336
  msgid "Activate this plugin"
337
+ msgstr "Activer cette extension"
338
 
339
+ #: bws_menu.php:827
340
+ #: bws_menu.php:854
 
341
  msgid "Activate"
342
+ msgstr "Activé"
343
 
344
+ #: bws_menu.php:910
 
345
  msgid "Install now"
346
+ msgstr "Installer maintenant"
347
 
348
+ #: bws_menu.php:932
349
  msgid "Try again"
350
+ msgstr "Essayer de nouveau"
351
 
352
+ #: bws_menu.php:949
353
  #, php-format
354
  msgid "Preview &#8220;%s&#8221;"
355
+ msgstr "Pré-visualiser &#8220;%s&#8221;"
356
 
357
+ #: bws_menu.php:980
358
  msgid "Install Now"
359
  msgstr "Installa Ora"
360
 
361
+ #: bws_menu.php:983
362
  #, php-format
363
  msgid "Update to version %s"
364
+ msgstr "Mettre à jour pour la version %s"
365
 
366
+ #: bws_menu.php:983
367
  msgid "Update"
368
+ msgstr "Mettre à jour"
369
 
370
+ #: bws_menu.php:990
371
  #, php-format
372
  msgid "Preview %s"
373
+ msgstr "Pré-visualiser %s"
374
 
375
+ #: bws_menu.php:990
376
  msgid "Preview"
377
+ msgstr "Pré-visualiser"
378
 
379
+ #: bws_menu.php:997
380
  #, php-format
381
  msgid "By %s"
382
+ msgstr "Par %s"
383
 
384
+ #: bws_menu.php:1003
385
  msgid "Details"
386
+ msgstr "Détails"
387
 
388
  #, fuzzy
389
  #~ msgid "installed"
css/style.css CHANGED
@@ -1,31 +1,3 @@
1
- #adminmenu #toplevel_page_bws_plugins div.wp-menu-image,
2
- .admin-color-classic #adminmenu #toplevel_page_bws_plugins div.wp-menu-image,
3
- #adminmenu #toplevel_page_bws_plugins:hover div.wp-menu-image,
4
- #adminmenu #toplevel_page_bws_plugins.wp-has-current-submenu div.wp-menu-image {
5
- background: url("../images/icon_16_single.png") no-repeat scroll center center transparent;
6
- }
7
- #adminmenu #toplevel_page_bws_plugins.wp-not-current-submenu div.wp-menu-image {
8
- opacity: 0.7;
9
- }
10
- #toplevel_page_bws_plugins .wp-submenu .wp-first-item {
11
- display: none;
12
- }
13
- /*
14
- * styles for rate-support div on the settings page
15
- */
16
- .bws-plugin-reviews {
17
- background: none repeat scroll 0 0 #BEE1F1;
18
- border: 1px solid #70A8C2;
19
- border-radius: 3px;
20
- max-width: 700px;
21
- }
22
- .bws-plugin-reviews-rate {
23
- padding: 10px;
24
- border-bottom: 1px dashed #70A8C2;
25
- }
26
- .bws-plugin-reviews-support {
27
- padding: 10px;
28
- }
29
  /*
30
  * styles for settings page
31
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /*
2
  * styles for settings page
3
  */
css/style_wp_before_3.8.css DELETED
@@ -1,41 +0,0 @@
1
- #adminmenu #toplevel_page_bws_plugins div.wp-menu-image {
2
- background: url("../images/icon_16.png") no-repeat scroll center center transparent;
3
- }
4
- .admin-color-classic #adminmenu #toplevel_page_bws_plugins div.wp-menu-image {
5
- background: url("../images/icon_16_b.png") no-repeat scroll center center transparent;
6
- }
7
- #adminmenu #toplevel_page_bws_plugins:hover div.wp-menu-image,
8
- #adminmenu #toplevel_page_bws_plugins.wp-has-current-submenu div.wp-menu-image {
9
- background: url("../images/icon_16_c.png") no-repeat scroll center center transparent;
10
- }
11
- .wrap #icon-options-general.icon32-bws {
12
- background: url("../images/icon_36.png") no-repeat scroll left top transparent;
13
- }
14
- .admin-color-classic .wrap #icon-options-general.icon32-bws {
15
- background: url("../images/icon_36_b.png") no-repeat scroll left top transparent;
16
- }
17
- #toplevel_page_bws_plugins .wp-submenu .wp-first-item {
18
- display: none;
19
- }
20
- /*
21
- * styles for rate-support div on the settings page
22
- */
23
- .bws-plugin-reviews {
24
- background: none repeat scroll 0 0 #BEE1F1;
25
- border: 1px solid #70A8C2;
26
- border-radius: 3px;
27
- max-width: 700px;
28
- }
29
- .bws-plugin-reviews-rate {
30
- padding: 10px;
31
- border-bottom: 1px dashed #70A8C2;
32
- }
33
- .bws-plugin-reviews-support {
34
- padding: 10px;
35
- }
36
- /*
37
- * styles for settings page
38
- */
39
- #gglcptch-keys input[type=text] {
40
- width: 250px;
41
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
google-captcha.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Captcha (reCAPTCHA)
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin Google Captcha intended to prove that the visitor is a human being and not a spam robot.
6
  Author: BestWebSoft
7
- Version: 1.01
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv3 or later
10
  */
@@ -24,11 +24,51 @@ License: GPLv3 or later
24
  along with this program; if not, write to the Free Software
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
- require_once( dirname( __FILE__ ) . '/bws_menu/bws_menu.php' );
28
 
29
  /* Add menu page */
30
  if ( ! function_exists( 'google_capthca_admin_menu' ) ) {
31
  function google_capthca_admin_menu() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  add_menu_page( 'BWS Plugins', 'BWS Plugins', 'manage_options', 'bws_plugins', 'bws_add_menu_render', plugins_url( "images/px.png", __FILE__ ), 1001 );
33
  add_submenu_page( 'bws_plugins', __( 'Google Captcha Settings', 'google_captcha' ), __( 'Google Captcha', 'google_captcha' ), 'manage_options', 'google-captcha.php', 'gglcptch_settings_page' );
34
  }
@@ -37,14 +77,13 @@ if ( ! function_exists( 'google_capthca_admin_menu' ) ) {
37
  /* Function check if plugin is compatible with current WP version */
38
  if ( ! function_exists ( 'gglcptch_version_check' ) ) {
39
  function gglcptch_version_check() {
40
- global $wp_version;
41
- $plugin_data = get_plugin_data( __FILE__, false );
42
  $require_wp = "3.0"; /* Wordpress at least requires version */
43
  $plugin = plugin_basename( __FILE__ );
44
  if ( version_compare( $wp_version, $require_wp, "<" ) ) {
45
  if ( is_plugin_active( $plugin ) ) {
46
  deactivate_plugins( $plugin );
47
- wp_die( "<strong>" . $plugin_data['Name'] . " </strong> " . __( 'requires', 'google_captcha' ) . " <strong>WordPress " . $require_wp . "</strong> " . __( 'or higher, that is why it has been deactivated! Please upgrade WordPress and try again.', 'google_captcha') . "<br /><br />" . __( 'Back to the WordPress', 'google_captcha') . " <a href='" . get_admin_url( null, 'plugins.php' ) . "'>" . __( 'Plugins page', 'google_captcha') . "</a>." );
48
  }
49
  }
50
  }
@@ -90,14 +129,29 @@ if ( ! function_exists( 'gglcptch_init' ) ) {
90
  }
91
  }
92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  /* Add google captcha styles */
94
  if ( ! function_exists( 'gglcptch_add_style' ) ) {
95
  function gglcptch_add_style() {
96
- global $wp_version;
97
- if ( 3.8 > $wp_version )
98
- wp_enqueue_style( 'gglcptchStylesheet', plugins_url( 'css/style_wp_before_3.8.css', __FILE__ ) );
99
- else
100
- wp_enqueue_style( 'gglcptchStylesheet', plugins_url( 'css/style.css', __FILE__ ) );
101
  }
102
  }
103
 
@@ -107,56 +161,21 @@ if ( ! function_exists( 'gglcptch_add_script' ) ) {
107
  wp_enqueue_script( 'gglcptch_script', plugins_url( 'js/script.js', __FILE__ ), array( 'jquery' ) );
108
  }
109
  }
110
-
111
- /* Private and public keys */
112
- $gglcptch_keys = array(
113
- 'public' => array(
114
- 'display_name' => 'Public Key',
115
- 'form_name' => 'gglcptch_public_key',
116
- 'error_msg' => '',
117
- ),
118
- 'private' => array(
119
- 'display_name' => 'Private Key',
120
- 'form_name' => 'gglcptch_private_key',
121
- 'error_msg' => '',
122
- ),
123
- );
124
-
125
- /* Checked forms */
126
- $gglcptch_forms = array(
127
- array( 'login_form', __( 'Login form', 'google_captcha' ) ),
128
- array( 'registration_form', __( 'Registration form', 'google_captcha' ) ),
129
- array( 'reset_pwd_form', __( 'Reset password form', 'google_captcha' ) ),
130
- array( 'comments_form', __( 'Comments form', 'google_captcha' ) ),
131
- );
132
-
133
- /* Google captcha themes */
134
- $gglcptch_themes = array(
135
- array( 'red', 'Red' ),
136
- array( 'white', 'White' ),
137
- array( 'blackglass', 'Blackglass' ),
138
- array( 'clean', 'Clean' ),
139
- );
140
-
141
  /* Google catpcha settings */
142
  if ( ! function_exists( 'register_gglcptch_settings' ) ) {
143
  function register_gglcptch_settings() {
144
- global $wpmu, $gglcptch_options, $bws_plugin_info;
145
-
146
- if ( function_exists( 'get_plugin_data' ) && ( ! isset( $bws_plugin_info ) || empty( $bws_plugin_info ) ) ) {
147
- $plugin_info = get_plugin_data( __FILE__ );
148
- $bws_plugin_info = array( 'id' => '109', 'version' => $plugin_info["Version"] );
149
- }
150
 
151
  $gglcptch_default_options = array(
152
- 'public_key' => '',
153
- 'private_key' => '',
154
- 'login_form' => '1',
155
- 'registration_form' => '1',
156
- 'reset_pwd_form' => '1',
157
- 'comments_form' => '1',
158
- 'contact_form' => '0',
159
- 'theme' => 'red',
 
160
  );
161
 
162
  foreach ( get_editable_roles() as $role => $fields ) {
@@ -181,15 +200,49 @@ if ( ! function_exists( 'register_gglcptch_settings' ) ) {
181
  $gglcptch_options = get_option( 'gglcptch_options' );
182
 
183
  /* Array merge incase this version has added new options */
184
- $gglcptch_options = array_merge( $gglcptch_default_options, $gglcptch_options );
185
- update_option( 'gglcptch_options', $gglcptch_options );
 
 
 
186
  }
187
  }
188
 
189
  /* Display settings page */
190
  if ( ! function_exists( 'gglcptch_settings_page' ) ) {
191
  function gglcptch_settings_page() {
192
- global $gglcptch_options, $gglcptch_keys, $gglcptch_forms, $gglcptch_themes;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  $error = '';
194
  /* Save data for settings page */
195
  if ( isset( $_POST['gglcptch_save_changes'] ) && check_admin_referer( plugin_basename( __FILE__ ), 'gglcptch_nonce_name' ) ) {
@@ -331,13 +384,23 @@ if ( ! function_exists( 'gglcptch_display' ) ) {
331
  }
332
  </style>
333
  <script type='text/javascript'>
334
- var RecaptchaOptions = { theme : "<?php echo $gglcptch_options['theme']; ?>" };
335
- var gglcptch_path = "<?php echo plugins_url( 'google_captcha_check.php', __FILE__ ); ?>";
336
- var gglcptch_error_msg = "<?php _e( 'Error: You have entered an incorrect CAPTCHA value.', 'google_captcha' ); ?>";
337
- var gglcptch_private_key = "<?php echo $privatekey; ?>";
338
  </script>
339
- <?php if ( ! $privatekey || ! $publickey )
 
 
 
 
 
 
 
 
340
  return false;
 
 
341
  return recaptcha_get_html( $publickey );
342
  }
343
  }
@@ -435,8 +498,8 @@ if ( ! function_exists( 'gglcptch_lostpassword_check' ) ) {
435
  function gglcptch_lostpassword_check() {
436
  global $gglcptch_options;
437
  require_once( 'lib/recaptchalib.php' );
438
- $publickey = $gglcptch_options['public_key'];
439
- $privatekey = $gglcptch_options['private_key'];
440
 
441
  if ( ! $privatekey || ! $publickey )
442
  return;
@@ -456,7 +519,8 @@ if ( ! function_exists( 'gglcptch_action_links' ) ) {
456
  function gglcptch_action_links( $links, $file ) {
457
  /* Static so we don't call plugin_basename on every plugin row. */
458
  static $this_plugin;
459
- if ( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
 
460
 
461
  if ( $file == $this_plugin ){
462
  $settings_link = '<a href="admin.php?page=google-captcha.php">' . __( 'Settings', 'google_captcha' ) . '</a>';
@@ -478,15 +542,23 @@ if ( ! function_exists( 'gglcptch_links' ) ) {
478
  }
479
  }
480
 
481
- add_shortcode( 'bws_google_captcha', 'gglcptch_display' );
 
 
 
 
 
482
 
483
- add_action( 'init', 'gglcptch_init' );
484
- add_action( 'admin_init', 'gglcptch_version_check' );
485
- add_action( 'admin_init', 'register_gglcptch_settings' );
486
- add_action( 'admin_init', 'gglcptch_init' );
487
  add_action( 'admin_menu', 'google_capthca_admin_menu' );
 
 
488
  add_action( 'admin_enqueue_scripts', 'gglcptch_add_style' );
 
 
 
 
489
  add_filter( 'plugin_action_links', 'gglcptch_action_links', 10, 2 );
490
  add_filter( 'plugin_row_meta', 'gglcptch_links', 10, 2 );
491
- add_action( 'wp_enqueue_scripts', 'gglcptch_add_script' );
 
492
  ?>
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin Google Captcha intended to prove that the visitor is a human being and not a spam robot.
6
  Author: BestWebSoft
7
+ Version: 1.02
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv3 or later
10
  */
24
  along with this program; if not, write to the Free Software
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
 
27
 
28
  /* Add menu page */
29
  if ( ! function_exists( 'google_capthca_admin_menu' ) ) {
30
  function google_capthca_admin_menu() {
31
+ global $bstwbsftwppdtplgns_options, $wpmu, $bstwbsftwppdtplgns_added_menu;
32
+ $bws_menu_version = '1.2.3';
33
+ $base = plugin_basename( __FILE__ );
34
+
35
+ if ( ! isset( $bstwbsftwppdtplgns_options ) ) {
36
+ if ( 1 == $wpmu ) {
37
+ if ( ! get_site_option( 'bstwbsftwppdtplgns_options' ) )
38
+ add_site_option( 'bstwbsftwppdtplgns_options', array(), '', 'yes' );
39
+ $bstwbsftwppdtplgns_options = get_site_option( 'bstwbsftwppdtplgns_options' );
40
+ } else {
41
+ if ( ! get_option( 'bstwbsftwppdtplgns_options' ) )
42
+ add_option( 'bstwbsftwppdtplgns_options', array(), '', 'yes' );
43
+ $bstwbsftwppdtplgns_options = get_option( 'bstwbsftwppdtplgns_options' );
44
+ }
45
+ }
46
+
47
+ if ( isset( $bstwbsftwppdtplgns_options['bws_menu_version'] ) ) {
48
+ $bstwbsftwppdtplgns_options['bws_menu']['version'][ $base ] = $bws_menu_version;
49
+ unset( $bstwbsftwppdtplgns_options['bws_menu_version'] );
50
+ update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options, '', 'yes' );
51
+ require_once( dirname( __FILE__ ) . '/bws_menu/bws_menu.php' );
52
+ } else if ( ! isset( $bstwbsftwppdtplgns_options['bws_menu']['version'][ $base ] ) || $bstwbsftwppdtplgns_options['bws_menu']['version'][ $base ] < $bws_menu_version ) {
53
+ $bstwbsftwppdtplgns_options['bws_menu']['version'][ $base ] = $bws_menu_version;
54
+ update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options, '', 'yes' );
55
+ require_once( dirname( __FILE__ ) . '/bws_menu/bws_menu.php' );
56
+ } else if ( ! isset( $bstwbsftwppdtplgns_added_menu ) ) {
57
+ $plugin_with_newer_menu = $base;
58
+ foreach ( $bstwbsftwppdtplgns_options['bws_menu']['version'] as $key => $value ) {
59
+ if ( $bws_menu_version < $value && is_plugin_active( $base ) ) {
60
+ $plugin_with_newer_menu = $key;
61
+ }
62
+ }
63
+ $plugin_with_newer_menu = explode( '/', $plugin_with_newer_menu );
64
+ $wp_content_dir = defined( 'WP_CONTENT_DIR' ) ? basename( WP_CONTENT_DIR ) : 'wp-content';
65
+ if ( file_exists( ABSPATH . $wp_content_dir . '/plugins/' . $plugin_with_newer_menu[0] . '/bws_menu/bws_menu.php' ) )
66
+ require_once( ABSPATH . $wp_content_dir . '/plugins/' . $plugin_with_newer_menu[0] . '/bws_menu/bws_menu.php' );
67
+ else
68
+ require_once( dirname( __FILE__ ) . '/bws_menu/bws_menu.php' );
69
+ $bstwbsftwppdtplgns_added_menu = true;
70
+ }
71
+
72
  add_menu_page( 'BWS Plugins', 'BWS Plugins', 'manage_options', 'bws_plugins', 'bws_add_menu_render', plugins_url( "images/px.png", __FILE__ ), 1001 );
73
  add_submenu_page( 'bws_plugins', __( 'Google Captcha Settings', 'google_captcha' ), __( 'Google Captcha', 'google_captcha' ), 'manage_options', 'google-captcha.php', 'gglcptch_settings_page' );
74
  }
77
  /* Function check if plugin is compatible with current WP version */
78
  if ( ! function_exists ( 'gglcptch_version_check' ) ) {
79
  function gglcptch_version_check() {
80
+ global $wp_version, $gglcptch_plugin_info;
 
81
  $require_wp = "3.0"; /* Wordpress at least requires version */
82
  $plugin = plugin_basename( __FILE__ );
83
  if ( version_compare( $wp_version, $require_wp, "<" ) ) {
84
  if ( is_plugin_active( $plugin ) ) {
85
  deactivate_plugins( $plugin );
86
+ wp_die( "<strong>" . $gglcptch_plugin_info['Name'] . " </strong> " . __( 'requires', 'google_captcha' ) . " <strong>WordPress " . $require_wp . "</strong> " . __( 'or higher, that is why it has been deactivated! Please upgrade WordPress and try again.', 'google_captcha') . "<br /><br />" . __( 'Back to the WordPress', 'google_captcha') . " <a href='" . get_admin_url( null, 'plugins.php' ) . "'>" . __( 'Plugins page', 'google_captcha') . "</a>." );
87
  }
88
  }
89
  }
129
  }
130
  }
131
 
132
+ if ( ! function_exists( 'gglcptch_admin_init' ) ) {
133
+ function gglcptch_admin_init() {
134
+ global $bws_plugin_info, $gglcptch_plugin_info;
135
+
136
+ $gglcptch_plugin_info = get_plugin_data( __FILE__, false );
137
+
138
+ if ( ! isset( $bws_plugin_info ) || empty( $bws_plugin_info ) )
139
+ $bws_plugin_info = array( 'id' => '109', 'version' => $gglcptch_plugin_info["Version"] );
140
+
141
+ /* Check version on WordPress */
142
+ gglcptch_version_check();
143
+
144
+ /* Call register settings function */
145
+ if ( isset( $_GET['page'] ) && "google-captcha.php" == $_GET['page'] )
146
+ register_gglcptch_settings();
147
+ }
148
+ }
149
+
150
  /* Add google captcha styles */
151
  if ( ! function_exists( 'gglcptch_add_style' ) ) {
152
  function gglcptch_add_style() {
153
+ if ( isset( $_REQUEST['page'] ) && 'google-captcha.php' == $_REQUEST['page'] )
154
+ wp_enqueue_style( 'gglcptch_stylesheet', plugins_url( 'css/style.css', __FILE__ ) );
 
 
 
155
  }
156
  }
157
 
161
  wp_enqueue_script( 'gglcptch_script', plugins_url( 'js/script.js', __FILE__ ), array( 'jquery' ) );
162
  }
163
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  /* Google catpcha settings */
165
  if ( ! function_exists( 'register_gglcptch_settings' ) ) {
166
  function register_gglcptch_settings() {
167
+ global $wpmu, $gglcptch_options, $bws_plugin_info, $gglcptch_plugin_info;
 
 
 
 
 
168
 
169
  $gglcptch_default_options = array(
170
+ 'public_key' => '',
171
+ 'private_key' => '',
172
+ 'login_form' => '1',
173
+ 'registration_form' => '1',
174
+ 'reset_pwd_form' => '1',
175
+ 'comments_form' => '1',
176
+ 'contact_form' => '0',
177
+ 'theme' => 'red',
178
+ 'plugin_option_version' => $gglcptch_plugin_info["Version"]
179
  );
180
 
181
  foreach ( get_editable_roles() as $role => $fields ) {
200
  $gglcptch_options = get_option( 'gglcptch_options' );
201
 
202
  /* Array merge incase this version has added new options */
203
+ if ( ! isset( $gglcptch_options['plugin_option_version'] ) || $gglcptch_options['plugin_option_version'] != $gglcptch_plugin_info["Version"] ) {
204
+ $gglcptch_options = array_merge( $gglcptch_default_options, $gglcptch_options );
205
+ $gglcptch_options['plugin_option_version'] = $gglcptch_plugin_info["Version"];
206
+ update_option( 'gglcptch_options', $gglcptch_options );
207
+ }
208
  }
209
  }
210
 
211
  /* Display settings page */
212
  if ( ! function_exists( 'gglcptch_settings_page' ) ) {
213
  function gglcptch_settings_page() {
214
+ global $gglcptch_options;
215
+
216
+ /* Private and public keys */
217
+ $gglcptch_keys = array(
218
+ 'public' => array(
219
+ 'display_name' => 'Public Key',
220
+ 'form_name' => 'gglcptch_public_key',
221
+ 'error_msg' => '',
222
+ ),
223
+ 'private' => array(
224
+ 'display_name' => 'Private Key',
225
+ 'form_name' => 'gglcptch_private_key',
226
+ 'error_msg' => '',
227
+ ),
228
+ );
229
+
230
+ /* Checked forms */
231
+ $gglcptch_forms = array(
232
+ array( 'login_form', __( 'Login form', 'google_captcha' ) ),
233
+ array( 'registration_form', __( 'Registration form', 'google_captcha' ) ),
234
+ array( 'reset_pwd_form', __( 'Reset password form', 'google_captcha' ) ),
235
+ array( 'comments_form', __( 'Comments form', 'google_captcha' ) ),
236
+ );
237
+
238
+ /* Google captcha themes */
239
+ $gglcptch_themes = array(
240
+ array( 'red', 'Red' ),
241
+ array( 'white', 'White' ),
242
+ array( 'blackglass', 'Blackglass' ),
243
+ array( 'clean', 'Clean' ),
244
+ );
245
+
246
  $error = '';
247
  /* Save data for settings page */
248
  if ( isset( $_POST['gglcptch_save_changes'] ) && check_admin_referer( plugin_basename( __FILE__ ), 'gglcptch_nonce_name' ) ) {
384
  }
385
  </style>
386
  <script type='text/javascript'>
387
+ var RecaptchaOptions = { theme : "<?php echo $gglcptch_options['theme']; ?>" },
388
+ gglcptch_path = "<?php echo plugins_url( 'google_captcha_check.php', __FILE__ ); ?>",
389
+ gglcptch_error_msg = "<?php _e( 'Error: You have entered an incorrect CAPTCHA value.', 'google_captcha' ); ?>",
390
+ gglcptch_private_key = "<?php echo $privatekey; ?>";
391
  </script>
392
+ <?php
393
+ if ( ! $privatekey || ! $publickey ) {
394
+ if ( current_user_can( 'manage_options' ) ) { ?>
395
+ <div>
396
+ <strong>
397
+ <?php _e( 'To use Google Captcha you must get the keys from', 'google_captcha' ); ?> <a target="_blank" href="https://www.google.com/recaptcha/admin/create"><?php _e ( 'here', 'google_captcha' ); ?></a> <?php _e ( 'and enter them on the', 'google_captcha' ); ?> <a target="_blank" href="<?php echo admin_url( '/admin.php?page=google-captcha.php' ); ?>" ><?php _e ( 'plugin setting page', 'google_captcha' ); ?></a>.
398
+ </strong>
399
+ </div>
400
+ <?php }
401
  return false;
402
+ }
403
+
404
  return recaptcha_get_html( $publickey );
405
  }
406
  }
498
  function gglcptch_lostpassword_check() {
499
  global $gglcptch_options;
500
  require_once( 'lib/recaptchalib.php' );
501
+ $publickey = $gglcptch_options['public_key'];
502
+ $privatekey = $gglcptch_options['private_key'];
503
 
504
  if ( ! $privatekey || ! $publickey )
505
  return;
519
  function gglcptch_action_links( $links, $file ) {
520
  /* Static so we don't call plugin_basename on every plugin row. */
521
  static $this_plugin;
522
+ if ( ! $this_plugin )
523
+ $this_plugin = plugin_basename(__FILE__);
524
 
525
  if ( $file == $this_plugin ){
526
  $settings_link = '<a href="admin.php?page=google-captcha.php">' . __( 'Settings', 'google_captcha' ) . '</a>';
542
  }
543
  }
544
 
545
+ if ( ! function_exists( 'gglcptch_delete_options' ) ) {
546
+ function gglcptch_delete_options() {
547
+ delete_option( 'gglcptch_options' );
548
+ delete_site_option( 'gglcptch_options' );
549
+ }
550
+ }
551
 
 
 
 
 
552
  add_action( 'admin_menu', 'google_capthca_admin_menu' );
553
+ add_action( 'init', 'gglcptch_init' );
554
+ add_action( 'admin_init', 'gglcptch_admin_init' );
555
  add_action( 'admin_enqueue_scripts', 'gglcptch_add_style' );
556
+ add_action( 'wp_enqueue_scripts', 'gglcptch_add_script' );
557
+
558
+ add_shortcode( 'bws_google_captcha', 'gglcptch_display' );
559
+
560
  add_filter( 'plugin_action_links', 'gglcptch_action_links', 10, 2 );
561
  add_filter( 'plugin_row_meta', 'gglcptch_links', 10, 2 );
562
+
563
+ register_uninstall_hook( __FILE__, 'gglcptch_delete_options' );
564
  ?>
languages/google_captcha-ru_RU.mo CHANGED
Binary file
languages/google_captcha-ru_RU.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: google_captcha\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2014-02-04 16:19+0300\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
8
  "Language-Team: the BestWebSoft Team <plugin@bestwebsoft.com>\n"
@@ -13,156 +13,181 @@ msgstr ""
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
- "X-Generator: Poedit 1.6.3\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
- #: google-captcha.php:33
20
- #: google-captcha.php:218
21
  msgid "Google Captcha Settings"
22
  msgstr "Настройки Google Captcha"
23
 
24
- #: google-captcha.php:33
25
  msgid "Google Captcha"
26
  msgstr "Google Captcha"
27
 
28
- #: google-captcha.php:47
29
  msgid "requires"
30
  msgstr "требует"
31
 
32
- #: google-captcha.php:47
33
- msgid "or higher, that is why it has been deactivated! Please upgrade WordPress and try again."
34
- msgstr "или выше, поэтому плагин был деактивирован! Обновите WordPress и повторите попытку."
 
 
 
 
35
 
36
- #: google-captcha.php:47
37
  msgid "Back to the WordPress"
38
  msgstr "Вернуться назад на WordPress"
39
 
40
- #: google-captcha.php:47
41
  msgid "Plugins page"
42
  msgstr "Страницу плагинов"
43
 
44
- #: google-captcha.php:127
45
  msgid "Login form"
46
  msgstr "Форма логина"
47
 
48
- #: google-captcha.php:128
49
  msgid "Registration form"
50
  msgstr "Форма регистрации"
51
 
52
- #: google-captcha.php:129
53
  msgid "Reset password form"
54
  msgstr "Форма восстановления пароля"
55
 
56
- #: google-captcha.php:130
57
  msgid "Comments form"
58
  msgstr "Форма комментариев"
59
 
60
- #: google-captcha.php:191
61
  msgid "Enter public key"
62
  msgstr "Введите открытый ключ"
63
 
64
- #: google-captcha.php:192
65
- #: google-captcha.php:198
66
  msgid "WARNING: The captcha will not display while you don't fill key fields."
67
- msgstr "ПРЕДУПРЕЖДЕНИЕ: Google Captcha не будет отображаться пока вы не заполните ключевые поля."
 
 
68
 
69
- #: google-captcha.php:197
70
  msgid "Enter private key"
71
  msgstr "Введите закрытый ключ"
72
 
73
- #: google-captcha.php:219
74
  msgid "Settings saved"
75
  msgstr "Настройки сохранены"
76
 
77
- #: google-captcha.php:221
78
- msgid "If you would like to add the Google Captcha to your own form, just copy and paste this shortcode to your post or page:"
79
- msgstr "Если вы хотите добавить Google Captcha в свою форму, просто скопируйте и вставьте в контент страницы или поста этот шорткод:"
 
 
 
 
80
 
81
- #: google-captcha.php:223
82
  msgid "Authentication"
83
  msgstr "Идентификация"
84
 
85
- #: google-captcha.php:224
86
  #, php-format
87
  msgid "Before you are able to do something, you must to register %s here %s"
88
- msgstr "Прежде чем вы сможете сделать что-нибудь, вы должны зарегистрироваться %s здесь %s"
 
 
89
 
90
- #: google-captcha.php:225
91
  msgid "Enter public and private keys, that you get after registration."
92
- msgstr "Введите открытый и закрытый ключи, которые вы получили после регистрации."
 
93
 
94
- #: google-captcha.php:237
95
  msgid "Options"
96
  msgstr "Опции"
97
 
98
- #: google-captcha.php:240
99
  msgid "Enable Google Captcha for:"
100
  msgstr "Отображать Google Captcha для:"
101
 
102
- #: google-captcha.php:249
103
- #: google-captcha.php:252
104
- #: google-captcha.php:256
105
  msgid "Contact form"
106
  msgstr "Contact form"
107
 
108
- #: google-captcha.php:250
109
- #: google-captcha.php:253
110
- #: google-captcha.php:257
111
  msgid "powered by"
112
  msgstr "разработано компанией"
113
 
114
- #: google-captcha.php:253
115
  msgid "Activate contact form"
116
  msgstr "Активировать Contact form"
117
 
118
- #: google-captcha.php:257
119
  msgid "Download contact form"
120
  msgstr "Скачать Contact form"
121
 
122
- #: google-captcha.php:262
123
  msgid "Hide captcha for:"
124
  msgstr "Не показывать Google Captcha для:"
125
 
126
- #: google-captcha.php:270
127
  msgid "Theme:"
128
  msgstr "Тема:"
129
 
130
- #: google-captcha.php:281
131
  msgid "Save Changes"
132
  msgstr "Сохранить изменения"
133
 
134
- #: google-captcha.php:287
135
  msgid "If you enjoy our plugin, please give it 5 stars on WordPress"
136
- msgstr "Если вам понравился плагин, пожалуйста, поставте нам 5 звезд на WordPress"
 
137
 
138
- #: google-captcha.php:288
139
  msgid "Rate the plugin"
140
  msgstr "Оценить плагин"
141
 
142
- #: google-captcha.php:291
143
  msgid "If there is something wrong about it, please contact us"
144
  msgstr "Если у вас есть какие-то вопросы, обращайтесь"
145
 
146
- #: google-captcha.php:330
147
  msgid "Error: You have entered an incorrect CAPTCHA value."
148
  msgstr "Ошибка: Вы ввели неверное значение Captcha."
149
 
150
- #: google-captcha.php:379
151
- #: google-captcha.php:421
152
- #: google-captcha.php:443
153
- msgid "Error: You have entered an incorrect CAPTCHA value. Click the BACK button on your browser, and try again."
154
- msgstr "Ошибка: Вы ввели неверное значение Captcha. Нажмите копку НАЗАД в своем браузере и попытайтесь еще."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
 
156
- #: google-captcha.php:456
157
- #: google-captcha.php:467
158
  msgid "Settings"
159
  msgstr "Настройки"
160
 
161
- #: google-captcha.php:468
162
  msgid "FAQ"
163
  msgstr "FAQ"
164
 
165
- #: google-captcha.php:469
166
  msgid "Support"
167
  msgstr "Поддержка"
168
 
2
  msgstr ""
3
  "Project-Id-Version: google_captcha\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2014-04-04 14:30+0300\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
8
  "Language-Team: the BestWebSoft Team <plugin@bestwebsoft.com>\n"
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Generator: Poedit 1.5.4\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
+ #: google-captcha.php:73 google-captcha.php:277
 
20
  msgid "Google Captcha Settings"
21
  msgstr "Настройки Google Captcha"
22
 
23
+ #: google-captcha.php:73
24
  msgid "Google Captcha"
25
  msgstr "Google Captcha"
26
 
27
+ #: google-captcha.php:86
28
  msgid "requires"
29
  msgstr "требует"
30
 
31
+ #: google-captcha.php:86
32
+ msgid ""
33
+ "or higher, that is why it has been deactivated! Please upgrade WordPress and "
34
+ "try again."
35
+ msgstr ""
36
+ "или выше, поэтому плагин был деактивирован! Обновите WordPress и повторите "
37
+ "попытку."
38
 
39
+ #: google-captcha.php:86
40
  msgid "Back to the WordPress"
41
  msgstr "Вернуться назад на WordPress"
42
 
43
+ #: google-captcha.php:86
44
  msgid "Plugins page"
45
  msgstr "Страницу плагинов"
46
 
47
+ #: google-captcha.php:181
48
  msgid "Login form"
49
  msgstr "Форма логина"
50
 
51
+ #: google-captcha.php:182
52
  msgid "Registration form"
53
  msgstr "Форма регистрации"
54
 
55
+ #: google-captcha.php:183
56
  msgid "Reset password form"
57
  msgstr "Форма восстановления пароля"
58
 
59
+ #: google-captcha.php:184
60
  msgid "Comments form"
61
  msgstr "Форма комментариев"
62
 
63
+ #: google-captcha.php:250
64
  msgid "Enter public key"
65
  msgstr "Введите открытый ключ"
66
 
67
+ #: google-captcha.php:251 google-captcha.php:257
 
68
  msgid "WARNING: The captcha will not display while you don't fill key fields."
69
+ msgstr ""
70
+ "ПРЕДУПРЕЖДЕНИЕ: Google Captcha не будет отображаться пока вы не заполните "
71
+ "ключевые поля."
72
 
73
+ #: google-captcha.php:256
74
  msgid "Enter private key"
75
  msgstr "Введите закрытый ключ"
76
 
77
+ #: google-captcha.php:278
78
  msgid "Settings saved"
79
  msgstr "Настройки сохранены"
80
 
81
+ #: google-captcha.php:280
82
+ msgid ""
83
+ "If you would like to add the Google Captcha to your own form, just copy and "
84
+ "paste this shortcode to your post or page:"
85
+ msgstr ""
86
+ "Если вы хотите добавить Google Captcha в свою форму, просто скопируйте и "
87
+ "вставьте в контент страницы или поста этот шорткод:"
88
 
89
+ #: google-captcha.php:282
90
  msgid "Authentication"
91
  msgstr "Идентификация"
92
 
93
+ #: google-captcha.php:283
94
  #, php-format
95
  msgid "Before you are able to do something, you must to register %s here %s"
96
+ msgstr ""
97
+ "Прежде чем вы сможете сделать что-нибудь, вы должны зарегистрироваться %s "
98
+ "здесь %s"
99
 
100
+ #: google-captcha.php:284
101
  msgid "Enter public and private keys, that you get after registration."
102
+ msgstr ""
103
+ "Введите открытый и закрытый ключи, которые вы получили после регистрации."
104
 
105
+ #: google-captcha.php:296
106
  msgid "Options"
107
  msgstr "Опции"
108
 
109
+ #: google-captcha.php:299
110
  msgid "Enable Google Captcha for:"
111
  msgstr "Отображать Google Captcha для:"
112
 
113
+ #: google-captcha.php:308 google-captcha.php:311 google-captcha.php:315
 
 
114
  msgid "Contact form"
115
  msgstr "Contact form"
116
 
117
+ #: google-captcha.php:309 google-captcha.php:312 google-captcha.php:316
 
 
118
  msgid "powered by"
119
  msgstr "разработано компанией"
120
 
121
+ #: google-captcha.php:312
122
  msgid "Activate contact form"
123
  msgstr "Активировать Contact form"
124
 
125
+ #: google-captcha.php:316
126
  msgid "Download contact form"
127
  msgstr "Скачать Contact form"
128
 
129
+ #: google-captcha.php:321
130
  msgid "Hide captcha for:"
131
  msgstr "Не показывать Google Captcha для:"
132
 
133
+ #: google-captcha.php:329
134
  msgid "Theme:"
135
  msgstr "Тема:"
136
 
137
+ #: google-captcha.php:340
138
  msgid "Save Changes"
139
  msgstr "Сохранить изменения"
140
 
141
+ #: google-captcha.php:346
142
  msgid "If you enjoy our plugin, please give it 5 stars on WordPress"
143
+ msgstr ""
144
+ "Если вам понравился плагин, пожалуйста, поставте нам 5 звезд на WordPress"
145
 
146
+ #: google-captcha.php:347
147
  msgid "Rate the plugin"
148
  msgstr "Оценить плагин"
149
 
150
+ #: google-captcha.php:350
151
  msgid "If there is something wrong about it, please contact us"
152
  msgstr "Если у вас есть какие-то вопросы, обращайтесь"
153
 
154
+ #: google-captcha.php:389
155
  msgid "Error: You have entered an incorrect CAPTCHA value."
156
  msgstr "Ошибка: Вы ввели неверное значение Captcha."
157
 
158
+ #: google-captcha.php:397
159
+ msgid "To use Google Captcha you must get the keys from"
160
+ msgstr "Чтобы использовать Google Captcha вам необходимо получить ключи"
161
+
162
+ #: google-captcha.php:397
163
+ msgid "here"
164
+ msgstr "здесь"
165
+
166
+ #: google-captcha.php:397
167
+ msgid "and enter them on the"
168
+ msgstr "и вставить их на"
169
+
170
+ #: google-captcha.php:397
171
+ msgid "plugin setting page"
172
+ msgstr "страницу настроек плагина"
173
+
174
+ #: google-captcha.php:448 google-captcha.php:490 google-captcha.php:512
175
+ msgid ""
176
+ "Error: You have entered an incorrect CAPTCHA value. Click the BACK button on "
177
+ "your browser, and try again."
178
+ msgstr ""
179
+ "Ошибка: Вы ввели неверное значение Captcha. Нажмите копку НАЗАД в своем "
180
+ "браузере и попытайтесь еще."
181
 
182
+ #: google-captcha.php:526 google-captcha.php:537
 
183
  msgid "Settings"
184
  msgstr "Настройки"
185
 
186
+ #: google-captcha.php:538
187
  msgid "FAQ"
188
  msgstr "FAQ"
189
 
190
+ #: google-captcha.php:539
191
  msgid "Support"
192
  msgstr "Поддержка"
193
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: bestwebsoft
3
  Tags: captcha, recaptcha, google, google captcha, reCAPTCHA, re captcha, re-captcha, text captcha, spam, antispam, login, registration, comment, lost password, shortcode, capcha, catcha, captha
4
  Requires at least: 3.0
5
  Tested up to: 3.8.1
6
- Stable tag: 1.01
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -14,6 +14,8 @@ This plugin allows you to implement Google Captcha into web forms.
14
  The Google Captcha plugin allows you to implement a super security captcha form into web forms. Google Captcha is a free CAPTCHA service that helps to digitize books, newspapers and old time radio shows.
15
  This captcha can be used for login, registration, password recovery, comments forms.
16
 
 
 
17
  = Copyrights for resources used in this plugin =
18
 
19
  1. In Google Captcha plugin we used the "lib/recaptchalib.php" file. The Licence for this file is in the "lib/license.txt" file.
@@ -119,7 +121,7 @@ Please make sure that the problem hasn't been discussed yet on our forum (<a hre
119
  1. the link to the page where the problem occurs
120
  2. the name of the plugin and its version. If you are using a pro version - your order number.
121
  3. the version of your WordPress installation
122
- 4. copy and paste into the message your system status report. Please read more here: <a href="http://bestwebsoft.com/wp-content/uploads/manual/wp_plugin/general/System_Status.pdf" target="_blank">System_Status.pdf</a>
123
 
124
  == Screenshots ==
125
 
@@ -132,6 +134,11 @@ Please make sure that the problem hasn't been discussed yet on our forum (<a hre
132
 
133
  == Changelog ==
134
 
 
 
 
 
 
135
  = V1.01 - 05.02.2014 =
136
  * Bugfix : The bug with adding comments from admin panel was fixed.
137
  * NEW : "Settings", "FAQ", "Support" links were added to the plugin action page.
@@ -142,6 +149,9 @@ Please make sure that the problem hasn't been discussed yet on our forum (<a hre
142
 
143
  == Upgrade Notice ==
144
 
 
 
 
145
  = V1.01 =
146
  "Settings", "FAQ", "Support" links were added to the plugin action page. The links were added on the plugins page.
147
  The bug with adding comments from admin panel was fixed.
3
  Tags: captcha, recaptcha, google, google captcha, reCAPTCHA, re captcha, re-captcha, text captcha, spam, antispam, login, registration, comment, lost password, shortcode, capcha, catcha, captha
4
  Requires at least: 3.0
5
  Tested up to: 3.8.1
6
+ Stable tag: 1.02
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
14
  The Google Captcha plugin allows you to implement a super security captcha form into web forms. Google Captcha is a free CAPTCHA service that helps to digitize books, newspapers and old time radio shows.
15
  This captcha can be used for login, registration, password recovery, comments forms.
16
 
17
+ http://www.youtube.com/watch?v=10ImOhmM0Cs
18
+
19
  = Copyrights for resources used in this plugin =
20
 
21
  1. In Google Captcha plugin we used the "lib/recaptchalib.php" file. The Licence for this file is in the "lib/license.txt" file.
121
  1. the link to the page where the problem occurs
122
  2. the name of the plugin and its version. If you are using a pro version - your order number.
123
  3. the version of your WordPress installation
124
+ 4. copy and paste into the message your system status report. Please read more here: <a href="https://docs.google.com/document/d/1Wi2X8RdRGXk9kMszQy1xItJrpN0ncXgioH935MaBKtc/edit" target="_blank">Instuction on System Status</a>
125
 
126
  == Screenshots ==
127
 
134
 
135
  == Changelog ==
136
 
137
+ = V1.02 - 03.04.2014 =
138
+ * Update : Screenshots are updated.
139
+ * Update : BWS plugins section is updated.
140
+ * Bugfix : Plugin optimization is done.
141
+
142
  = V1.01 - 05.02.2014 =
143
  * Bugfix : The bug with adding comments from admin panel was fixed.
144
  * NEW : "Settings", "FAQ", "Support" links were added to the plugin action page.
149
 
150
  == Upgrade Notice ==
151
 
152
+ = V1.02 =
153
+ Screenshots are updated. BWS plugins section is updated. Plugin optimization is done.
154
+
155
  = V1.01 =
156
  "Settings", "FAQ", "Support" links were added to the plugin action page. The links were added on the plugins page.
157
  The bug with adding comments from admin panel was fixed.
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file
screenshot-4.png CHANGED
Binary file
screenshot-5.png CHANGED
Binary file
screenshot-6.png CHANGED
Binary file