PluginProbe
The WP Remote WordPress Plugin / 4.69
The WP Remote WordPress Plugin v4.69
6.72 6.69 6.65 6.62 6.48 6.47 4.87 4.97 5.05 5.09 5.16 5.22 5.24 5.25 5.38 5.41 5.42 5.45 5.47 5.53 5.56 5.65 5.68 5.72 5.73 All 53 releases
← All changes | plugin.php +27 -27 5.164.69 View file →
@@ -4,9 +4,9 @@
4 4 Plugin URI: https://wpremote.com
5 5 Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>.
6 6 Author: WP Remote
7 7 Author URI: https://wpremote.com
8 -Version: 5.16
8 +Version: 4.69
9 9 Network: True
10 10 */
11 11
12 12 /* Copyright 2017 WP Remote (email : support@wpremote.com)
@@ -36,10 +36,8 @@
36 36 require_once dirname( __FILE__ ) . '/wp_api.php';
37 37 require_once dirname( __FILE__ ) . '/wp_actions.php';
38 38 require_once dirname( __FILE__ ) . '/info.php';
39 39 require_once dirname( __FILE__ ) . '/account.php';
40 -require_once dirname( __FILE__ ) . '/helper.php';
41 -##WPCACHEMODULE##
42 40
43 41
44 42 $bvsettings = new WPRWPSettings();
45 43 $bvsiteinfo = new WPRWPSiteInfo();
@@ -55,12 +53,9 @@
55 53 register_deactivation_hook(__FILE__, array($wp_action, 'deactivate'));
56 54
57 55 add_action('wp_footer', array($wp_action, 'footerHandler'), 100);
58 56 add_action('clear_bv_services_config', array($wp_action, 'clear_bv_services_config'));
59 -##SOADDUNINSTALLACTION##
60 57
61 -##DISABLE_OTHER_OPTIMIZATION_PLUGINS##
62 -
63 58 ##WPCLIMODULE##
64 59 if (is_admin()) {
65 60 require_once dirname( __FILE__ ) . '/wp_admin.php';
66 61 $wpadmin = new WPRWPAdmin($bvsettings, $bvsiteinfo);
@@ -66,9 +61,8 @@
66 61 $wpadmin = new WPRWPAdmin($bvsettings, $bvsiteinfo);
67 62 add_action('admin_init', array($wpadmin, 'initHandler'));
68 63 add_filter('all_plugins', array($wpadmin, 'initBranding'));
69 64 add_filter('plugin_row_meta', array($wpadmin, 'hidePluginDetails'), 10, 2);
70 - add_filter('debug_information', array($wpadmin, 'handlePluginHealthInfo'), 10, 1);
71 65 if ($bvsiteinfo->isMultisite()) {
72 66 add_action('network_admin_menu', array($wpadmin, 'menu'));
73 67 } else {
74 68 add_action('admin_menu', array($wpadmin, 'menu'));
@@ -76,26 +70,15 @@
76 70 add_filter('plugin_action_links', array($wpadmin, 'settingsLink'), 10, 2);
77 71 add_action('admin_head', array($wpadmin, 'removeAdminNotices'), 3);
78 72 add_action('admin_notices', array($wpadmin, 'activateWarning'));
79 73 add_action('admin_enqueue_scripts', array($wpadmin, 'wprsecAdminMenu'));
80 - ##ALPURGECACHEFUNCTION##
81 - ##ALADMINMENU##
82 74 }
83 75
76 +
84 77 if ((array_key_exists('bvreqmerge', $_POST)) || (array_key_exists('bvreqmerge', $_GET))) {
85 78 $_REQUEST = array_merge($_GET, $_POST);
86 79 }
87 80
88 -if ($bvinfo->hasValidDBVersion()) {
89 - if ($bvinfo->isServiceActive('activity_log')) {
90 - require_once dirname( __FILE__ ) . '/wp_actlog.php';
91 - $bvconfig = $bvinfo->config;
92 - $actlog = new BVWPActLog($bvdb, $bvsettings, $bvinfo, $bvconfig['activity_log']);
93 - $actlog->init();
94 - }
95 -
96 -}
97 -
98 81 if ((array_key_exists('bvplugname', $_REQUEST)) && ($_REQUEST['bvplugname'] == "wpremote")) {
99 82 require_once dirname( __FILE__ ) . '/callback/base.php';
100 83 require_once dirname( __FILE__ ) . '/callback/response.php';
101 84 require_once dirname( __FILE__ ) . '/callback/request.php';
@@ -108,12 +91,12 @@
108 91 } else {
109 92 $account = WPRAccount::find($bvsettings, $pubkey);
110 93 }
111 94
112 - $request = new BVCallbackRequest($account, $_REQUEST, $bvsettings);
95 + $request = new BVCallbackRequest($account, $_REQUEST);
113 96 $response = new BVCallbackResponse($request->bvb64cksize);
114 97
115 - if ($request->authenticate() === 1) {
98 + if ($account && (1 === $account->authenticate($request))) {
116 99 define('WPRBASEPATH', plugin_dir_path(__FILE__));
117 100
118 101
119 102 require_once dirname( __FILE__ ) . '/callback/handler.php';
@@ -119,9 +102,15 @@
119 102 require_once dirname( __FILE__ ) . '/callback/handler.php';
120 103
121 104 $params = $request->processParams($_REQUEST);
122 105 if ($params === false) {
123 - $response->terminate($request->corruptedParamsResp());
106 + $resp = array(
107 + "account_info" => $account->info(),
108 + "request_info" => $request->info(),
109 + "bvinfo" => $bvinfo->info(),
110 + "statusmsg" => "BVPRMS_CORRUPTED"
111 + );
112 + $response->terminate($resp);
124 113 }
125 114 $request->params = $params;
126 115 $callback_handler = new BVCallbackHandler($bvdb, $bvsettings, $bvsiteinfo, $request, $account, $response);
127 116 if ($request->is_afterload) {
@@ -132,9 +121,17 @@
132 121 } else {
133 122 $callback_handler->execute();
134 123 }
135 124 } else {
136 - $response->terminate($request->authFailedResp());
125 + $resp = array(
126 + "account_info" => $account ? $account->info() : array("error" => "ACCOUNT_NOT_FOUND"),
127 + "request_info" => $request->info(),
128 + "bvinfo" => $bvinfo->info(),
129 + "statusmsg" => "FAILED_AUTH",
130 + "api_pubkey" => substr(WPRAccount::getApiPublicKey($bvsettings), 0, 8),
131 + "def_sigmatch" => substr(WPRAccount::getSigMatch($request, WPRRecover::getDefaultSecret($bvsettings)), 0, 8)
132 + );
133 + $response->terminate($resp);
137 134 }
138 135 } else {
139 136 if ($bvinfo->hasValidDBVersion()) {
140 137 if ($bvinfo->isProtectModuleEnabled()) {
@@ -152,9 +149,16 @@
152 149 $dynsync = new BVWPDynSync($bvdb, $bvsettings, $bvconfig['dynsync']);
153 150 $dynsync->init();
154 151 }
155 152
153 + if ($bvinfo->isServiceActive('activity_log')) {
154 + require_once dirname( __FILE__ ) . '/wp_actlog.php';
155 + $bvconfig = $bvinfo->config;
156 + $actlog = new BVWPActLog($bvdb, $bvsettings, $bvinfo, $bvconfig['activity_log']);
157 + $actlog->init();
156 158 }
159 +
160 + }
157 161 $bv_site_settings = $bvsettings->getOption('bv_site_settings');
158 162 if (isset($bv_site_settings)) {
159 163 if (isset($bv_site_settings['wp_auto_updates'])) {
160 164 $wp_auto_updates = $bv_site_settings['wp_auto_updates'];
@@ -172,11 +176,7 @@
172 176 if (array_key_exists('block_auto_update_translation', $wp_auto_updates)) {
173 177 add_filter('auto_update_translation', '__return_false' );
174 178 }
175 179 }
176 - }
177 -
178 - if (is_admin()) {
179 - add_filter('site_transient_update_plugins', array($wpadmin, 'hidePluginUpdate'));
180 180 }
181 181
182 182 }