InfiniteWP Client - Version 0.1.5

Version Description

Download this release

Release Info

Developer infinitewp
Plugin Icon 128x128 InfiniteWP Client
Version 0.1.5
Comparing to
See all releases

Code changes from version 0.1.4 to 0.1.5

Files changed (3) hide show
  1. backup.class.php +3 -2
  2. init.php +2 -2
  3. stats.class.php +21 -11
backup.class.php CHANGED
@@ -345,6 +345,7 @@ function task_now($task_name){
345
  $archive = new PclZip($backup_file);
346
  if ($disable_comp) {
347
  $result = $archive->add($db_result, PCLZIP_OPT_REMOVE_PATH, IWP_BACKUP_DIR, PCLZIP_OPT_NO_COMPRESSION);
 
348
  } else {
349
  $result = $archive->add($db_result, PCLZIP_OPT_REMOVE_PATH, IWP_BACKUP_DIR);
350
  }
@@ -380,10 +381,10 @@ function task_now($task_name){
380
  //backup task (scheduled)
381
  $backup_settings = $this->tasks;
382
  $paths = array();
383
- $size = ceil(filesize($backup_file) / 1024);
384
 
385
  if ($size > 1000) {
386
- $paths['size'] = ceil($size / 1024) . "MB";//Modified by IWP //Mb => MB
387
  } else {
388
  $paths['size'] = $size . 'KB';//Modified by IWP //Kb => KB
389
  }
345
  $archive = new PclZip($backup_file);
346
  if ($disable_comp) {
347
  $result = $archive->add($db_result, PCLZIP_OPT_REMOVE_PATH, IWP_BACKUP_DIR, PCLZIP_OPT_NO_COMPRESSION);
348
+
349
  } else {
350
  $result = $archive->add($db_result, PCLZIP_OPT_REMOVE_PATH, IWP_BACKUP_DIR);
351
  }
381
  //backup task (scheduled)
382
  $backup_settings = $this->tasks;
383
  $paths = array();
384
+ $size = round(filesize($backup_file) / 1024, 2);
385
 
386
  if ($size > 1000) {
387
+ $paths['size'] = round($size / 1024, 2) . " MB";//Modified by IWP //Mb => MB
388
  } else {
389
  $paths['size'] = $size . 'KB';//Modified by IWP //Kb => KB
390
  }
init.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: InfiniteWP - Client
4
  Plugin URI: http://infinitewp.com/
5
  Description: This is the client plugin of InfiniteWP that communicates with the InfiniteWP Admin panel.
6
  Author: Revmakx
7
- Version: 0.1.4
8
  Author URI: http://www.revmakx.com
9
  */
10
  /************************************************************
@@ -26,7 +26,7 @@ Author URI: http://www.revmakx.com
26
  **************************************************************/
27
 
28
  if(!defined('IWP_MMB_CLIENT_VERSION'))
29
- define('IWP_MMB_CLIENT_VERSION', '0.1.4');
30
 
31
  if ( !defined('IWP_MMB_XFRAME_COOKIE')){
32
  $siteurl = function_exists('get_site_option') ? get_site_option( 'siteurl' ) : get_option('siteurl');
4
  Plugin URI: http://infinitewp.com/
5
  Description: This is the client plugin of InfiniteWP that communicates with the InfiniteWP Admin panel.
6
  Author: Revmakx
7
+ Version: 0.1.5
8
  Author URI: http://www.revmakx.com
9
  */
10
  /************************************************************
26
  **************************************************************/
27
 
28
  if(!defined('IWP_MMB_CLIENT_VERSION'))
29
+ define('IWP_MMB_CLIENT_VERSION', '0.1.5');
30
 
31
  if ( !defined('IWP_MMB_XFRAME_COOKIE')){
32
  $siteurl = function_exists('get_site_option') ? get_site_option( 'siteurl' ) : get_option('siteurl');
stats.class.php CHANGED
@@ -370,7 +370,12 @@ $stats['iwp_next_backups'] = $this->get_backup_instance()->get_next_schedules();
370
 
371
  global $wpdb, $iwp_mmb_wp_version, $iwp_mmb_plugin_dir, $wp_version, $wp_local_package;
372
 
 
 
 
373
  $stats['client_version'] = IWP_MMB_CLIENT_VERSION;
 
 
374
  $stats['wordpress_version'] = $wp_version;
375
  $stats['wordpress_locale_pckg'] = $wp_local_package;
376
  $stats['php_version'] = phpversion();
@@ -479,17 +484,22 @@ $stats['iwp_next_backups'] = $this->get_backup_instance()->get_next_schedules();
479
 
480
  $stats = array();
481
 
482
- $stats['email'] = get_option('admin_email');
483
- $stats['no_openssl'] = $this->get_random_signature();
484
- $stats['content_path'] = WP_CONTENT_DIR;
485
- $stats['client_path'] = $iwp_mmb_plugin_dir;
486
- $stats['client_version'] = IWP_MMB_CLIENT_VERSION;
487
- $stats['site_title'] = get_bloginfo('name');
488
- $stats['site_tagline'] = get_bloginfo('description');
489
- $stats['site_home'] = get_option('home');
490
- $stats['admin_url'] = admin_url();
491
- $stats['wp_multisite'] = $this->iwp_mmb_multisite;
492
- $stats['network_install'] = $this->network_admin_install;
 
 
 
 
 
493
 
494
  if ($this->iwp_mmb_multisite) {
495
  $details = get_blog_details($this->iwp_mmb_multisite);
370
 
371
  global $wpdb, $iwp_mmb_wp_version, $iwp_mmb_plugin_dir, $wp_version, $wp_local_package;
372
 
373
+ $current = get_site_transient( 'update_plugins' );
374
+ $r = $current->response['iwp-client/init.php'];
375
+
376
  $stats['client_version'] = IWP_MMB_CLIENT_VERSION;
377
+ $stats['client_new_version'] = $r->new_version;
378
+ $stats['client_new_package'] = $r->package;
379
  $stats['wordpress_version'] = $wp_version;
380
  $stats['wordpress_locale_pckg'] = $wp_local_package;
381
  $stats['php_version'] = phpversion();
484
 
485
  $stats = array();
486
 
487
+ $current = get_site_transient( 'update_plugins' );
488
+ $r = $current->response['iwp-client/init.php'];
489
+
490
+ $stats['email'] = get_option('admin_email');
491
+ $stats['no_openssl'] = $this->get_random_signature();
492
+ $stats['content_path'] = WP_CONTENT_DIR;
493
+ $stats['client_path'] = $iwp_mmb_plugin_dir;
494
+ $stats['client_version'] = IWP_MMB_CLIENT_VERSION;
495
+ $stats['client_new_version'] = $r->new_version;
496
+ $stats['client_new_package'] = $r->package;
497
+ $stats['site_title'] = get_bloginfo('name');
498
+ $stats['site_tagline'] = get_bloginfo('description');
499
+ $stats['site_home'] = get_option('home');
500
+ $stats['admin_url'] = admin_url();
501
+ $stats['wp_multisite'] = $this->iwp_mmb_multisite;
502
+ $stats['network_install'] = $this->network_admin_install;
503
 
504
  if ($this->iwp_mmb_multisite) {
505
  $details = get_blog_details($this->iwp_mmb_multisite);