InfiniteWP Client - Version 1.8.3

Version Description

  • May 15th 2018 =
  • Improvement: Auto cron task is enabled by default for Phoenix method backups.
  • Improvement: Calling Next Function failed error when Shell DB dump backup fails error.
Download this release

Release Info

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

Code changes from version 1.8.1 to 1.8.3

addons/itheme_security/class-iwp-client-ithemes-security-class.php CHANGED
@@ -145,7 +145,7 @@ final class IWP_MMB_IThemes_Security extends IWP_MMB_Core {
145
$and = '';
146
} else {
147
148
- $module_sql = "`log_type` = '" . esc_sql($module) . "'";
149
$and = ' AND ';
150
}
151
@@ -162,7 +162,7 @@ final class IWP_MMB_IThemes_Security extends IWP_MMB_Core {
162
$order_statement = ' ORDER BY `' . esc_sql($order) . '`';
163
} else {
164
165
- $order_statement = ' ORDER BY `log_id`';
166
}
167
168
if ($limit !== null) {
@@ -193,14 +193,14 @@ final class IWP_MMB_IThemes_Security extends IWP_MMB_Core {
193
$range_search = '';
194
if (isset($datefrom) || isset($dateto)) {
195
if (isset($datefrom)) {
196
- $range_search .= $and . "`log_date_gmt`>='" . esc_sql($datefrom) . "'";
197
}
198
if (isset($dateto)) {
199
- $range_search .= $and . "`log_date_gmt`<='" . esc_sql($dateto) . "'";
200
}
201
}
202
203
- $items = $wpdb->get_results("SELECT * FROM `" . $wpdb->base_prefix . "itsec_log`" . $where . $module_sql . $param_search . $range_search . $order_statement . $order_direction . $result_limit . ";", ARRAY_A);
204
return $items;
205
}
206
145
$and = '';
146
} else {
147
148
+ $module_sql = "`module` = '" . esc_sql($module) . "' AND code != 'scan'";
149
$and = ' AND ';
150
}
151
162
$order_statement = ' ORDER BY `' . esc_sql($order) . '`';
163
} else {
164
165
+ $order_statement = ' ORDER BY `id`';
166
}
167
168
if ($limit !== null) {
193
$range_search = '';
194
if (isset($datefrom) || isset($dateto)) {
195
if (isset($datefrom)) {
196
+ $range_search .= $and . "`init_timestamp`>='" . esc_sql($datefrom) . "'";
197
}
198
if (isset($dateto)) {
199
+ $range_search .= $and . "`init_timestamp`<='" . esc_sql($dateto) . "'";
200
}
201
}
202
203
+ $items = $wpdb->get_results("SELECT * FROM `" . $wpdb->base_prefix . "itsec_logs`" . $where . $module_sql . $param_search . $range_search . $order_statement . $order_direction . $result_limit . ";", ARRAY_A);
204
return $items;
205
}
206
backup.class.multicall.php CHANGED
@@ -149,8 +149,17 @@ class IWP_MMB_Backup_Multicall extends IWP_MMB_Core
149
$status = $responseParams['status'];
150
if(empty($action))
151
{
152
- manual_debug('', 'triggerError');
153
- return $this->statusLog($datas['backupParentHID'], array('stage' => 'trigger_check', 'status' => 'error', 'statusMsg' => 'Calling Next Function failed - Error while fetching table data', 'statusCode' => 'calling_next_function_failed_error_while_fetching_table_data'));
154
}
155
156
unset($responseParams);
@@ -410,6 +419,7 @@ class IWP_MMB_Backup_Multicall extends IWP_MMB_Core
410
$command = $brace . $paths['mysqldump'] . $brace . ' --force --host="' . DB_HOST . '" --user="' . DB_USER . '" --password="' . DB_PASSWORD . '" --add-drop-table --skip-lock-tables --extended-insert=FALSE "' . DB_NAME . '" "'.$wp_tables.'" > ' . $brace . $file . $brace;
411
iwp_mmb_print_flush('DB DUMP CMD: Start');
412
ob_start();
413
$result = $this->iwp_mmb_exec($command);
414
ob_get_clean();
415
iwp_mmb_print_flush('DB DUMP CMD: End');
@@ -651,7 +661,11 @@ class IWP_MMB_Backup_Multicall extends IWP_MMB_Core
651
if ($db_result) {
652
$db_result = $this->backup_db_dump_multi($historyID);
653
}
654
if ($db_result == false) {
655
$db_result = $this->backupDBPHP($historyID);
656
}
657
149
$status = $responseParams['status'];
150
if(empty($action))
151
{
152
+ $iwp_multical_db_dump_flag = get_option('iwp_multical_db_dump_flag');
153
+ if ($iwp_multical_db_dump_flag) {
154
+ delete_option('iwp_multical_db_dump_flag');
155
+ $db_result = $this->backupDBPHP($datas['backupParentHID']);
156
+ return $db_result;
157
+ }
158
+ if (empty($datas['params']['success']['nextFunc'])) {
159
+ manual_debug('', 'triggerError');
160
+ return $this->statusLog($datas['backupParentHID'], array('stage' => 'trigger_check', 'status' => 'error', 'statusMsg' => 'Calling Next Function failed - Error while fetching table data', 'statusCode' => 'calling_next_function_failed_error_while_fetching_table_data'));
161
+ }
162
+ $action = $datas['params']['success']['nextFunc'];
163
}
164
165
unset($responseParams);
419
$command = $brace . $paths['mysqldump'] . $brace . ' --force --host="' . DB_HOST . '" --user="' . DB_USER . '" --password="' . DB_PASSWORD . '" --add-drop-table --skip-lock-tables --extended-insert=FALSE "' . DB_NAME . '" "'.$wp_tables.'" > ' . $brace . $file . $brace;
420
iwp_mmb_print_flush('DB DUMP CMD: Start');
421
ob_start();
422
+ update_option('iwp_multical_db_dump_flag', 1);
423
$result = $this->iwp_mmb_exec($command);
424
ob_get_clean();
425
iwp_mmb_print_flush('DB DUMP CMD: End');
661
if ($db_result) {
662
$db_result = $this->backup_db_dump_multi($historyID);
663
}
664
+ if ($db_result === true) {
665
+ delete_option('iwp_multical_db_dump_flag');
666
+ }
667
if ($db_result == false) {
668
+ delete_option('iwp_multical_db_dump_flag');
669
$db_result = $this->backupDBPHP($historyID);
670
}
671
backup/backup.core.class.php CHANGED
@@ -1541,10 +1541,12 @@ class IWP_MMB_Backup_Core {
1541
// Argh. In fact, this has limited effect, as apparently (at least on another install seen), the saving of the updated transient via jobdata_set() also took no effect. Still, it does not hurt.
1542
if ($resumption_no >= 1 && 'finished' == $this->jobdata_get('jobstatus')) {
1543
$this->log('Terminate: This backup job is already finished (1).');
1544
die;
1545
} elseif ('backup' == $job_type && !empty($this->backup_is_already_complete)) {
1546
$this->jobdata_set('jobstatus', 'finished');
1547
$this->log('Terminate: This backup job is already finished (2).');
1548
die;
1549
}
1550
1541
// Argh. In fact, this has limited effect, as apparently (at least on another install seen), the saving of the updated transient via jobdata_set() also took no effect. Still, it does not hurt.
1542
if ($resumption_no >= 1 && 'finished' == $this->jobdata_get('jobstatus')) {
1543
$this->log('Terminate: This backup job is already finished (1).');
1544
+ delete_option('IWP_backup_status');
1545
die;
1546
} elseif ('backup' == $job_type && !empty($this->backup_is_already_complete)) {
1547
$this->jobdata_set('jobstatus', 'finished');
1548
$this->log('Terminate: This backup job is already finished (2).');
1549
+ delete_option('IWP_backup_status');
1550
die;
1551
}
1552
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.8.1
8
Author URI: http://www.revmakx.com
9
*/
10
/************************************************************
@@ -28,7 +28,7 @@ if(basename($_SERVER['SCRIPT_FILENAME']) == "init.php"):
28
exit;
29
endif;
30
if(!defined('IWP_MMB_CLIENT_VERSION'))
31
- define('IWP_MMB_CLIENT_VERSION', '1.8.1');
32
33
34
@@ -685,9 +685,9 @@ if( !function_exists ( 'iwp_mmb_new_scheduled_backup' )) {
685
$params['restrict_files_to_override']= explode(',', $params['args']['exclude']);
686
}
687
// return true;
688
- if (defined('IWP_PHOENIX_BACKUP_CRON_START') && IWP_PHOENIX_BACKUP_CRON_START) {
689
$params['cron_start'] = 1;
690
- }
691
$params['use_nonce'] = $backupId;
692
$params['label'] = $params['task_name'];
693
$params['backup_name'] = $params['args']['backup_name'];
@@ -803,9 +803,9 @@ if( !function_exists ( 'iwp_mmb_new_run_task_now' )) {
803
$params['restrict_files_to_override']= explode(',', $params['args']['exclude']);
804
}
805
// return true;
806
- if (defined('IWP_PHOENIX_BACKUP_CRON_START') && IWP_PHOENIX_BACKUP_CRON_START) {
807
$params['cron_start'] = 1;
808
- }
809
$params['use_nonce'] = $backupId;
810
$params['label'] = $params['task_name'];
811
$params['backup_name'] = $params['args']['backup_name'];
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.8.3
8
Author URI: http://www.revmakx.com
9
*/
10
/************************************************************
28
exit;
29
endif;
30
if(!defined('IWP_MMB_CLIENT_VERSION'))
31
+ define('IWP_MMB_CLIENT_VERSION', '1.8.3');
32
33
34
685
$params['restrict_files_to_override']= explode(',', $params['args']['exclude']);
686
}
687
// return true;
688
+ //if (defined('IWP_PHOENIX_BACKUP_CRON_START') && IWP_PHOENIX_BACKUP_CRON_START) {
689
$params['cron_start'] = 1;
690
+ //}
691
$params['use_nonce'] = $backupId;
692
$params['label'] = $params['task_name'];
693
$params['backup_name'] = $params['args']['backup_name'];
803
$params['restrict_files_to_override']= explode(',', $params['args']['exclude']);
804
}
805
// return true;
806
+ //if (defined('IWP_PHOENIX_BACKUP_CRON_START') && IWP_PHOENIX_BACKUP_CRON_START) {
807
$params['cron_start'] = 1;
808
+ //}
809
$params['use_nonce'] = $backupId;
810
$params['label'] = $params['task_name'];
811
$params['backup_name'] = $params['args']['backup_name'];
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.1
5
- Tested up to: 4.9.4
6
Stable tag: trunk
7
8
Install this plugin on unlimited sites and manage them all from a central dashboard.
@@ -47,6 +47,13 @@ Credits: [Vladimir Prelovac](http://prelovac.com/vladimir) for his worker plugin
47
5. One-click updates
48
49
== Changelog ==
50
= 1.8.1 - Apr 3rd 2018 =
51
* Feature: New backup method introduced named Phoenix.
52
* Improvement: Multicall method is implemented for Restore process.
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.1
5
+ Tested up to: 4.9.7
6
Stable tag: trunk
7
8
Install this plugin on unlimited sites and manage them all from a central dashboard.
47
5. One-click updates
48
49
== Changelog ==
50
+ = 1.8.3 - May 15th 2018 =
51
+ * Improvement: Auto cron task is enabled by default for Phoenix method backups.
52
+ * Improvement: Calling Next Function failed error when Shell DB dump backup fails error.
53
+
54
+ = 1.8.2 - Apr 11th 2018 =
55
+ * Fix: Itheme security's action not displaying while generating Report.
56
+
57
= 1.8.1 - Apr 3rd 2018 =
58
* Feature: New backup method introduced named Phoenix.
59
* Improvement: Multicall method is implemented for Restore process.