InfiniteWP Client - Version 1.1.2

Version Description

  • Respository issue when openSSL is not available, fixed
  • Restore MySQL charset issue fixed
  • Backups will not be removed when sites are re-added
Download this release

Release Info

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

Code changes from version 1.1.1 to 1.1.2

Files changed (4) hide show
  1. backup.class.php +6 -5
  2. core.class.php +2 -2
  3. init.php +5 -2
  4. readme.txt +5 -0
backup.class.php CHANGED
@@ -108,7 +108,8 @@ class IWP_MMB_Backup extends IWP_MMB_Core
108
}
109
110
if ( (int) @ini_get('max_execution_time') < 1200 ) {
111
- @set_time_limit(1200); //twenty minutes
112
$changed['execution_time'] = 1;
113
}
114
@@ -259,11 +260,11 @@ if (is_array($params['account_info'])) { //only if sends from IWP Admin Panel fi
259
}
260
261
}
262
-
263
264
function task_now($task_name){
265
266
- $settings = $this->tasks;
267
if(!array_key_exists($task_name,$settings)){
268
return array('error' => $task_name." does not exist.");
269
} else {
@@ -856,7 +857,7 @@ if (isset($account_info['iwp_ftp']) && !empty($account_info['iwp_ftp'])) {
856
global $wpdb;
857
$paths = $this->check_mysql_paths();
858
$brace = (substr(PHP_OS, 0, 3) == 'WIN') ? '"' : '';
859
- $command = $brace . $paths['mysqldump'] . $brace . ' --host="' . DB_HOST . '" --user="' . DB_USER . '" --password="' . DB_PASSWORD . '" --add-drop-table --skip-lock-tables "' . DB_NAME . '" > ' . $brace . $file . $brace;
860
ob_start();
861
$result = $this->iwp_mmb_exec($command);
862
ob_get_clean();
@@ -1286,7 +1287,7 @@ elseif (isset($task['task_results'][$result_id]['ftp'])) {
1286
}
1287
1288
$brace = (substr(PHP_OS, 0, 3) == 'WIN') ? '"' : '';
1289
- $command = $brace . $paths['mysql'] . $brace . ' --host="' . DB_HOST . '" --user="' . DB_USER . '" --password="' . DB_PASSWORD . '" ' . DB_NAME . ' < ' . $brace . $file_name . $brace;
1290
1291
ob_start();
1292
$result = $this->iwp_mmb_exec($command);
108
}
109
110
if ( (int) @ini_get('max_execution_time') < 1200 ) {
111
+ @ini_set('max_execution_time', 1200);//twenty minutes
112
+ @set_time_limit(1200);
113
$changed['execution_time'] = 1;
114
}
115
260
}
261
262
}
263
+
264
265
function task_now($task_name){
266
267
+ $settings = $this->tasks;
268
if(!array_key_exists($task_name,$settings)){
269
return array('error' => $task_name." does not exist.");
270
} else {
857
global $wpdb;
858
$paths = $this->check_mysql_paths();
859
$brace = (substr(PHP_OS, 0, 3) == 'WIN') ? '"' : '';
860
+ $command = $brace . $paths['mysqldump'] . $brace . ' --force --host="' . DB_HOST . '" --user="' . DB_USER . '" --password="' . DB_PASSWORD . '" --add-drop-table --skip-lock-tables "' . DB_NAME . '" > ' . $brace . $file . $brace;
861
ob_start();
862
$result = $this->iwp_mmb_exec($command);
863
ob_get_clean();
1287
}
1288
1289
$brace = (substr(PHP_OS, 0, 3) == 'WIN') ? '"' : '';
1290
+ $command = $brace . $paths['mysql'] . $brace . ' --host="' . DB_HOST . '" --user="' . DB_USER . '" --password="' . DB_PASSWORD . '" --default-character-set="utf8" ' . DB_NAME . ' < ' . $brace . $file_name . $brace;
1291
1292
ob_start();
1293
$result = $this->iwp_mmb_exec($command);
core.class.php CHANGED
@@ -461,7 +461,7 @@ class IWP_MMB_Core extends IWP_MMB_Helper
461
delete_option('iwp_client_action_message_id');
462
}
463
464
- delete_option('iwp_client_backup_tasks');
465
delete_option('iwp_client_notifications');
466
delete_option('iwp_client_brand');
467
delete_option('iwp_client_pageview_alerts');
@@ -523,7 +523,7 @@ class IWP_MMB_Core extends IWP_MMB_Helper
523
524
//Delete options
525
delete_option('iwp_client_maintenace_mode');
526
- delete_option('iwp_client_backup_tasks');
527
wp_clear_scheduled_hook('iwp_client_backup_tasks');
528
delete_option('iwp_client_notifications');
529
wp_clear_scheduled_hook('iwp_client_notifications');
461
delete_option('iwp_client_action_message_id');
462
}
463
464
+ //delete_option('iwp_client_backup_tasks');
465
delete_option('iwp_client_notifications');
466
delete_option('iwp_client_brand');
467
delete_option('iwp_client_pageview_alerts');
523
524
//Delete options
525
delete_option('iwp_client_maintenace_mode');
526
+ //delete_option('iwp_client_backup_tasks');
527
wp_clear_scheduled_hook('iwp_client_backup_tasks');
528
delete_option('iwp_client_notifications');
529
wp_clear_scheduled_hook('iwp_client_notifications');
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.1.1
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.1.1');
30
31
32
if ( !defined('IWP_MMB_XFRAME_COOKIE')){
@@ -149,6 +149,9 @@ if( !function_exists ('iwp_mmb_parse_request')) {
149
unset($params['secure']);
150
} else $params['secure'] = $decrypted;
151
}
152
}
153
154
if( !$iwp_mmb_core->register_action_params( $action, $params ) ){
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.1.2
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.1.2');
30
31
32
if ( !defined('IWP_MMB_XFRAME_COOKIE')){
149
unset($params['secure']);
150
} else $params['secure'] = $decrypted;
151
}
152
+ elseif(isset($params['secure']['account_info'])){
153
+ $params['account_info'] = $params['secure']['account_info'];
154
+ }
155
}
156
157
if( !$iwp_mmb_core->register_action_params( $action, $params ) ){
readme.txt CHANGED
@@ -48,6 +48,11 @@ Credits: [Vladimir Prelovac](http://prelovac.com/vladimir) for his worker plugin
48
49
== Changelog ==
50
51
= 1.1.1 =
52
* Improved backups
53
* Bug fixes
48
49
== Changelog ==
50
51
+ = 1.1.2 =
52
+ * Respository issue when openSSL is not available, fixed
53
+ * Restore MySQL charset issue fixed
54
+ * Backups will not be removed when sites are re-added
55
+
56
= 1.1.1 =
57
* Improved backups
58
* Bug fixes