PluginProbe
The WP Remote WordPress Plugin / 5.65
The WP Remote WordPress Plugin v5.65
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 +69 -39 4.975.65 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.97
8 +Version: 5.65
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();
@@ -63,9 +64,9 @@
63 64 if (is_admin()) {
64 65 require_once dirname( __FILE__ ) . '/wp_admin.php';
65 66 $wpadmin = new WPRWPAdmin($bvsettings, $bvsiteinfo);
66 67 add_action('admin_init', array($wpadmin, 'initHandler'));
67 - add_filter('all_plugins', array($wpadmin, 'initBranding'));
68 + add_filter('all_plugins', array($wpadmin, 'initWhitelabel'));
68 69 add_filter('plugin_row_meta', array($wpadmin, 'hidePluginDetails'), 10, 2);
69 70 add_filter('debug_information', array($wpadmin, 'handlePluginHealthInfo'), 10, 1);
70 71 if ($bvsiteinfo->isMultisite()) {
71 72 add_action('network_admin_menu', array($wpadmin, 'menu'));
@@ -83,8 +84,11 @@
83 84 if ((array_key_exists('bvreqmerge', $_POST)) || (array_key_exists('bvreqmerge', $_GET))) {
84 85 $_REQUEST = array_merge($_GET, $_POST);
85 86 }
86 87
88 +require_once dirname( __FILE__ ) . '/php_error_monitoring/monitoring.php';
89 +WPRWPPHPErrorMonitoring::init();
90 +
87 91 if ($bvinfo->hasValidDBVersion()) {
88 92 if ($bvinfo->isServiceActive('activity_log')) {
89 93 require_once dirname( __FILE__ ) . '/wp_actlog.php';
90 94 $bvconfig = $bvinfo->config;
@@ -91,8 +95,15 @@
91 95 $actlog = new BVWPActLog($bvdb, $bvsettings, $bvinfo, $bvconfig['activity_log']);
92 96 $actlog->init();
93 97 }
94 98
99 + if ($bvinfo->isServiceActive('maintenance_mode')) {
100 + require_once dirname( __FILE__ ). '/maintenance/wp_maintenance.php';
101 + $bvconfig = $bvinfo->config;
102 + $maintenance = new BVWPMaintenance($bvconfig['maintenance_mode']);
103 + $maintenance->init();
104 + }
105 +
95 106 }
96 107
97 108 if ((array_key_exists('bvplugname', $_REQUEST)) && ($_REQUEST['bvplugname'] == "wpremote")) {
98 109 require_once dirname( __FILE__ ) . '/callback/base.php';
@@ -107,58 +118,76 @@
107 118 } else {
108 119 $account = WPRAccount::find($bvsettings, $pubkey);
109 120 }
110 121
111 - $request = new BVCallbackRequest($account, $_REQUEST);
122 + $request = new BVCallbackRequest($account, $_REQUEST, $bvsettings);
112 123 $response = new BVCallbackResponse($request->bvb64cksize);
113 124
114 - if ($account && (1 === $account->authenticate($request))) {
115 - define('WPRBASEPATH', plugin_dir_path(__FILE__));
125 + if ($request->authenticate() === 1) {
126 + if (array_key_exists('bv_ignr_frm_cptch', $_REQUEST)) {
127 + #handling of Contact Forms 7
128 + add_filter('wpcf7_skip_spam_check', '__return_true', PHP_INT_MAX, 2);
116 129
130 + #handling of Formidable plugin
131 + add_filter('frm_is_field_hidden', '__return_true', PHP_INT_MAX, 3);
117 132
118 - require_once dirname( __FILE__ ) . '/callback/handler.php';
133 + #handling of WP Forms plugin
134 + add_filter('wpforms_process_bypass_captcha', '__return_true', PHP_INT_MAX, 3);
119 135
120 - $params = $request->processParams($_REQUEST);
121 - if ($params === false) {
122 - $resp = array(
123 - "account_info" => $account->info(),
124 - "request_info" => $request->info(),
125 - "bvinfo" => $bvinfo->info(),
126 - "statusmsg" => "BVPRMS_CORRUPTED"
127 - );
128 - $response->terminate($resp);
129 - }
130 - $request->params = $params;
131 - $callback_handler = new BVCallbackHandler($bvdb, $bvsettings, $bvsiteinfo, $request, $account, $response);
132 - if ($request->is_afterload) {
133 - add_action('wp_loaded', array($callback_handler, 'execute'));
134 - } else if ($request->is_admin_ajax) {
135 - add_action('wp_ajax_bvadm', array($callback_handler, 'bvAdmExecuteWithUser'));
136 - add_action('wp_ajax_nopriv_bvadm', array($callback_handler, 'bvAdmExecuteWithoutUser'));
136 + #handling of Forminator plugin
137 + if (defined('WP_PLUGIN_DIR')) {
138 + $abstractFrontActionFilePath = WP_PLUGIN_DIR . '/forminator/library/abstracts/abstract-class-front-action.php';
139 + $frontActionFilePath = WP_PLUGIN_DIR . '/forminator/library/modules/custom-forms/front/front-action.php';
140 +
141 + if (file_exists($abstractFrontActionFilePath) && file_exists($frontActionFilePath)) {
142 + require_once $abstractFrontActionFilePath;
143 + require_once $frontActionFilePath;
144 + if (class_exists('Forminator_CForm_Front_Action')) {
145 + Forminator_CForm_Front_Action::$hidden_fields[] = "bv-stripe-";
146 + }
147 + }
148 + }
149 +
150 + #handling of CleanTalk Antispam plugin
151 + add_action('init', function() {
152 + global $apbct;
153 + if (isset($apbct) && is_object($apbct)) {
154 + $apbct->settings['forms__contact_forms_test'] = 0;
155 + }
156 + });
137 157 } else {
138 - $callback_handler->execute();
158 + define('WPRBASEPATH', plugin_dir_path(__FILE__));
159 +
160 +
161 + require_once dirname( __FILE__ ) . '/callback/handler.php';
162 +
163 + $params = $request->processParams($_REQUEST);
164 + if ($params === false) {
165 + $response->terminate($request->corruptedParamsResp());
166 + }
167 + $request->params = $params;
168 + $callback_handler = new BVCallbackHandler($bvdb, $bvsettings, $bvsiteinfo, $request, $account, $response);
169 + if ($request->is_afterload) {
170 + add_action('wp_loaded', array($callback_handler, 'execute'));
171 + } else if ($request->is_admin_ajax) {
172 + add_action('wp_ajax_bvadm', array($callback_handler, 'bvAdmExecuteWithUser'));
173 + add_action('wp_ajax_nopriv_bvadm', array($callback_handler, 'bvAdmExecuteWithoutUser'));
174 + } else {
175 + $callback_handler->execute();
176 + }
139 177 }
140 178 } else {
141 - $resp = array(
142 - "account_info" => $account ? $account->info() : array("error" => "ACCOUNT_NOT_FOUND"),
143 - "request_info" => $request->info(),
144 - "bvinfo" => $bvinfo->info(),
145 - "statusmsg" => "FAILED_AUTH",
146 - "api_pubkey" => substr(WPRAccount::getApiPublicKey($bvsettings), 0, 8),
147 - "def_sigmatch" => substr(WPRAccount::getSigMatch($request, WPRRecover::getDefaultSecret($bvsettings)), 0, 8)
148 - );
149 - $response->terminate($resp);
179 + $response->terminate($request->authFailedResp());
150 180 }
151 181 } else {
152 182 if ($bvinfo->hasValidDBVersion()) {
153 183 if ($bvinfo->isProtectModuleEnabled()) {
154 - require_once dirname( __FILE__ ) . '/protect/wp/protect.php';
155 - $bvprotect = new BVProtect($bvdb, $bvsettings);
156 - $bvprotect->init();
157 - if ($bvinfo->isActivePlugin() && !(defined( 'WP_CLI' ) && WP_CLI)) {
158 - $bvprotect->run();
184 + require_once dirname( __FILE__ ) . '/protect/protect.php';
185 + add_action('clear_pt_config', array('WPRProtect_V565', 'uninstall'));
186 + if ($bvinfo->isActivePlugin()) {
187 + WPRProtect_V565::init(WPRProtect_V565::MODE_WP);
188 + }
159 189 }
160 - }
161 190
162 191 if ($bvinfo->isDynSyncModuleEnabled()) {
163 192 require_once dirname( __FILE__ ) . '/wp_dynsync.php';
164 193 $bvconfig = $bvinfo->config;
@@ -191,5 +220,6 @@
191 220 if (is_admin()) {
192 221 add_filter('site_transient_update_plugins', array($wpadmin, 'hidePluginUpdate'));
193 222 }
194 223
224 + ##THIRDPARTYCACHINGMODULE##
195 225 }