InfiniteWP Client - Version 1.3.12

Version Description

  • Fix: In a few servers, readdir() was creating "Empty reply from server" error and in WPEngine it was creating 502 error while taking backup
  • Fix: .mp4 was excluding by default
Download this release

Release Info

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

Code changes from version 1.3.11 to 1.3.12

backup.class.multicall.php CHANGED
@@ -6055,60 +6055,4 @@ function ftp_backup($historyID,$args = '')
6055
  add_filter( 'iwp_website_add', 'IWP_MMB_Backup::readd_tasks' );
6056
  }*/
6057
 
6058
- if(!function_exists('get_all_files_from_dir')) {
6059
- /**
6060
- * Get all files in directory
6061
- *
6062
- * @param string $path Relative or absolute path to folder
6063
- * @param array $exclude List of excluded files or folders, relative to $path
6064
- * @return array List of all files in folder $path, exclude all files in $exclude array
6065
- */
6066
- function get_all_files_from_dir($path, $exclude = array()) {
6067
- if ($path[strlen($path) - 1] === "/") $path = substr($path, 0, -1);
6068
- global $directory_tree, $ignore_array;
6069
- $directory_tree = array();
6070
- if(!empty($exclude))
6071
- {
6072
- foreach ($exclude as $file) {
6073
- if (!in_array($file, array('.', '..'))) {
6074
- if ($file[0] === "/") $path = substr($file, 1);
6075
- $ignore_array[] = "$path/$file";
6076
- }
6077
- }
6078
- }
6079
- get_all_files_from_dir_recursive($path);
6080
- return $directory_tree;
6081
- }
6082
- }
6083
-
6084
- if (!function_exists('get_all_files_from_dir_recursive')) {
6085
- /**
6086
- * Get all files in directory,
6087
- * wrapped function which writes in global variable
6088
- * and exclued files or folders are read from global variable
6089
- *
6090
- * @param string $path Relative or absolute path to folder
6091
- * @return void
6092
- */
6093
- function get_all_files_from_dir_recursive($path) {
6094
- if ($path[strlen($path) - 1] === "/") $path = substr($path, 0, -1);
6095
- global $directory_tree, $ignore_array;
6096
- $directory_tree_temp = array();
6097
- $dh = @opendir($path);
6098
-
6099
- while (false !== ($file = @readdir($dh))) {
6100
- if (!in_array($file, array('.', '..'))) {
6101
- if (!in_array("$path/$file", $ignore_array)) {
6102
- if (!is_dir("$path/$file")) {
6103
- $directory_tree[] = "$path/$file";
6104
- } else {
6105
- get_all_files_from_dir_recursive("$path/$file");
6106
- }
6107
- }
6108
- }
6109
- }
6110
- @closedir($dh);
6111
- }
6112
- }
6113
-
6114
  ?>
6055
  add_filter( 'iwp_website_add', 'IWP_MMB_Backup::readd_tasks' );
6056
  }*/
6057
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6058
  ?>
backup.class.singlecall.php CHANGED
@@ -518,6 +518,10 @@ function delete_task_now($task_name){
518
  {
519
  $exclude_extensions = array();
520
  }
 
 
 
 
521
  else
522
  {
523
  $exclude_extensions_array = explode(",",$exclude_extensions);
@@ -3833,7 +3837,7 @@ if (!function_exists('get_all_files_from_dir_recursive')) {
3833
  * @param string $path Relative or absolute path to folder
3834
  * @return void
3835
  */
3836
- function get_all_files_from_dir_recursive($path,$ignore_array=array()) {
3837
  if ($path[strlen($path) - 1] === "/") $path = substr($path, 0, -1);
3838
  global $directory_tree, $ignore_array;
3839
  if(empty($ignore_array))
@@ -3842,19 +3846,23 @@ if (!function_exists('get_all_files_from_dir_recursive')) {
3842
  }
3843
  $directory_tree_temp = array();
3844
  $dh = @opendir($path);
3845
-
3846
- while (false !== ($file = @readdir($dh))) {
3847
- if (!in_array($file, array('.', '..'))) {
3848
- if (!in_array("$path/$file", $ignore_array)) {
3849
- if (!is_dir("$path/$file")) {
3850
- $directory_tree[] = "$path/$file";
3851
- } else {
3852
- get_all_files_from_dir_recursive("$path/$file");
 
3853
  }
3854
  }
3855
  }
 
 
 
 
3856
  }
3857
- @closedir($dh);
3858
  }
3859
  }
3860
 
518
  {
519
  $exclude_extensions = array();
520
  }
521
+ else if($exclude_extensions == 'eg. .zip,.mp4')
522
+ {
523
+ $exclude_extensions = array();
524
+ }
525
  else
526
  {
527
  $exclude_extensions_array = explode(",",$exclude_extensions);
3837
  * @param string $path Relative or absolute path to folder
3838
  * @return void
3839
  */
3840
+ function get_all_files_from_dir_recursive($path) {
3841
  if ($path[strlen($path) - 1] === "/") $path = substr($path, 0, -1);
3842
  global $directory_tree, $ignore_array;
3843
  if(empty($ignore_array))
3846
  }
3847
  $directory_tree_temp = array();
3848
  $dh = @opendir($path);
3849
+ if($dh !== false){
3850
+ while (false !== ($file = @readdir($dh))) {
3851
+ if (!in_array($file, array('.', '..'))) {
3852
+ if (!in_array("$path/$file", $ignore_array)) {
3853
+ if (!is_dir("$path/$file")) {
3854
+ $directory_tree[] = "$path/$file";
3855
+ } else {
3856
+ get_all_files_from_dir_recursive("$path/$file");
3857
+ }
3858
  }
3859
  }
3860
  }
3861
+ @closedir($dh);
3862
+ }
3863
+ else{
3864
+ //code to process openDir failure.
3865
  }
 
3866
  }
3867
  }
3868
 
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: 1.3.11
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', '1.3.11');
30
 
31
 
32
 
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: 1.3.12
8
  Author URI: http://www.revmakx.com
9
  */
10
  /************************************************************
26
  **************************************************************/
27
 
28
  if(!defined('IWP_MMB_CLIENT_VERSION'))
29
+ define('IWP_MMB_CLIENT_VERSION', '1.3.12');
30
 
31
 
32
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: infinitewp
3
  Tags: admin, administration, amazon, api, authentication, automatic, dashboard, dropbox, events, integration, manage, multisite, multiple, notification, performance, s3, security, seo, stats, tracking, infinitewp, updates, backup, restore, iwp, infinite
4
  Requires at least: 3.0
5
- Tested up to: 4.0.1
6
  Stable tag: trunk
7
 
8
  Install this plugin on unlimited sites and manage them all from a central dashboard.
@@ -48,6 +48,10 @@ Credits: [Vladimir Prelovac](http://prelovac.com/vladimir) for his worker plugin
48
 
49
  == Changelog ==
50
 
 
 
 
 
51
  = 1.3.11 =
52
  * Improvement: using wp_get_theme() instead of get_current_theme() which is deprecated in WordPress
53
  * Fix: IWP failed to recognise the error from WP v4.0
2
  Contributors: infinitewp
3
  Tags: admin, administration, amazon, api, authentication, automatic, dashboard, dropbox, events, integration, manage, multisite, multiple, notification, performance, s3, security, seo, stats, tracking, infinitewp, updates, backup, restore, iwp, infinite
4
  Requires at least: 3.0
5
+ Tested up to: 4.1.1
6
  Stable tag: trunk
7
 
8
  Install this plugin on unlimited sites and manage them all from a central dashboard.
48
 
49
  == Changelog ==
50
 
51
+ = 1.3.12 =
52
+ * Fix: In a few servers, readdir() was creating "Empty reply from server" error and in WPEngine it was creating 502 error while taking backup
53
+ * Fix: .mp4 was excluding by default
54
+
55
  = 1.3.11 =
56
  * Improvement: using wp_get_theme() instead of get_current_theme() which is deprecated in WordPress
57
  * Fix: IWP failed to recognise the error from WP v4.0