PluginProbe
The WP Remote WordPress Plugin / 5.41
The WP Remote WordPress Plugin v5.41
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 +39 -39 4.875.41 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: 4.87
8 +Version: 5.41
9 9 Network: True
10 10 */
11 11
12 12 /* Copyright 2017 WP Remote (email : support@wpremote.com)
@@ -36,8 +36,9 @@
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';
40 41 ##WPCACHEMODULE##
41 42
42 43
43 44 $bvsettings = new WPRWPSettings();
@@ -56,8 +57,10 @@
56 57 add_action('wp_footer', array($wp_action, 'footerHandler'), 100);
57 58 add_action('clear_bv_services_config', array($wp_action, 'clear_bv_services_config'));
58 59 ##SOADDUNINSTALLACTION##
59 60
61 +##DISABLE_OTHER_OPTIMIZATION_PLUGINS##
62 +
60 63 ##WPCLIMODULE##
61 64 if (is_admin()) {
62 65 require_once dirname( __FILE__ ) . '/wp_admin.php';
63 66 $wpadmin = new WPRWPAdmin($bvsettings, $bvsiteinfo);
@@ -105,58 +108,54 @@
105 108 } else {
106 109 $account = WPRAccount::find($bvsettings, $pubkey);
107 110 }
108 111
109 - $request = new BVCallbackRequest($account, $_REQUEST);
112 + $request = new BVCallbackRequest($account, $_REQUEST, $bvsettings);
110 113 $response = new BVCallbackResponse($request->bvb64cksize);
111 114
112 - if ($account && (1 === $account->authenticate($request))) {
113 - define('WPRBASEPATH', plugin_dir_path(__FILE__));
115 + if ($request->authenticate() === 1) {
116 + if (array_key_exists('bv_ignr_frm_cptch', $_REQUEST)) {
117 + #handling of Contact Forms 7
118 + add_filter('wpcf7_skip_spam_check', '__return_true', PHP_INT_MAX, 2);
114 119
120 + #handling of Formidable plugin
121 + add_filter('frm_is_field_hidden', '__return_true', PHP_INT_MAX, 3);
115 122
116 - require_once dirname( __FILE__ ) . '/callback/handler.php';
123 + #handling of WP Forms plugin
124 + add_filter('wpforms_process_bypass_captcha', '__return_true', PHP_INT_MAX, 3);
125 + } else {
126 + define('WPRBASEPATH', plugin_dir_path(__FILE__));
117 127
118 - $params = $request->processParams($_REQUEST);
119 - if ($params === false) {
120 - $resp = array(
121 - "account_info" => $account->info(),
122 - "request_info" => $request->info(),
123 - "bvinfo" => $bvinfo->info(),
124 - "statusmsg" => "BVPRMS_CORRUPTED"
125 - );
126 - $response->terminate($resp);
128 +
129 + require_once dirname( __FILE__ ) . '/callback/handler.php';
130 +
131 + $params = $request->processParams($_REQUEST);
132 + if ($params === false) {
133 + $response->terminate($request->corruptedParamsResp());
134 + }
135 + $request->params = $params;
136 + $callback_handler = new BVCallbackHandler($bvdb, $bvsettings, $bvsiteinfo, $request, $account, $response);
137 + if ($request->is_afterload) {
138 + add_action('wp_loaded', array($callback_handler, 'execute'));
139 + } else if ($request->is_admin_ajax) {
140 + add_action('wp_ajax_bvadm', array($callback_handler, 'bvAdmExecuteWithUser'));
141 + add_action('wp_ajax_nopriv_bvadm', array($callback_handler, 'bvAdmExecuteWithoutUser'));
142 + } else {
143 + $callback_handler->execute();
144 + }
127 145 }
128 - $request->params = $params;
129 - $callback_handler = new BVCallbackHandler($bvdb, $bvsettings, $bvsiteinfo, $request, $account, $response);
130 - if ($request->is_afterload) {
131 - add_action('wp_loaded', array($callback_handler, 'execute'));
132 - } else if ($request->is_admin_ajax) {
133 - add_action('wp_ajax_bvadm', array($callback_handler, 'bvAdmExecuteWithUser'));
134 - add_action('wp_ajax_nopriv_bvadm', array($callback_handler, 'bvAdmExecuteWithoutUser'));
135 - } else {
136 - $callback_handler->execute();
137 - }
138 146 } else {
139 - $resp = array(
140 - "account_info" => $account ? $account->info() : array("error" => "ACCOUNT_NOT_FOUND"),
141 - "request_info" => $request->info(),
142 - "bvinfo" => $bvinfo->info(),
143 - "statusmsg" => "FAILED_AUTH",
144 - "api_pubkey" => substr(WPRAccount::getApiPublicKey($bvsettings), 0, 8),
145 - "def_sigmatch" => substr(WPRAccount::getSigMatch($request, WPRRecover::getDefaultSecret($bvsettings)), 0, 8)
146 - );
147 - $response->terminate($resp);
147 + $response->terminate($request->authFailedResp());
148 148 }
149 149 } else {
150 150 if ($bvinfo->hasValidDBVersion()) {
151 151 if ($bvinfo->isProtectModuleEnabled()) {
152 - require_once dirname( __FILE__ ) . '/protect/wp/protect.php';
153 - $bvprotect = new BVProtect($bvdb, $bvsettings);
154 - $bvprotect->init();
155 - if ($bvinfo->isActivePlugin() && !(defined( 'WP_CLI' ) && WP_CLI)) {
156 - $bvprotect->run();
152 + require_once dirname( __FILE__ ) . '/protect/protect.php';
153 + add_action('clear_pt_config', array('WPRProtect_V541', 'uninstall'));
154 + if ($bvinfo->isActivePlugin() && !(defined( 'WP_CLI' ) && WP_CLI)) {
155 + WPRProtect_V541::init(WPRProtect_V541::MODE_WP);
156 + }
157 157 }
158 - }
159 158
160 159 if ($bvinfo->isDynSyncModuleEnabled()) {
161 160 require_once dirname( __FILE__ ) . '/wp_dynsync.php';
162 161 $bvconfig = $bvinfo->config;
@@ -189,5 +188,6 @@
189 188 if (is_admin()) {
190 189 add_filter('site_transient_update_plugins', array($wpadmin, 'hidePluginUpdate'));
191 190 }
192 191
192 + ##THIRDPARTYCACHINGMODULE##
193 193 }