PluginProbe
The WP Remote WordPress Plugin / 5.88
The WP Remote WordPress Plugin v5.88
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 | info.php +16 -4 5.535.88 View file →
@@ -9,9 +9,10 @@
9 9 public $brandname = 'WP Remote';
10 10 public $badgeinfo = 'wprbadge';
11 11 public $ip_header_option = 'wpripheader';
12 12 public $brand_option = 'bv_whitelabel_infos';
13 - public $version = '5.53';
13 + public $wp_lp_whitelabel_option = 'wprLpWhitelabelConf';
14 + public $version = '5.88';
14 15 public $webpage = 'https://wpremote.com';
15 16 public $appurl = 'https://app.wpremote.com';
16 17 public $slug = 'wpremote/plugin.php';
17 18 public $plug_redirect = 'wprredirect';
@@ -20,9 +21,10 @@
20 21 public $services_option_name = 'wprconfig';
21 22 public $author = 'WP Remote';
22 23 public $title = 'WP Remote';
23 24
24 - const DB_VERSION = '4';
25 + const DB_VERSION = '5';
26 + const AL_CONF_VERSION = '1.1';
25 27
26 28 public function __construct($settings) {
27 29 $this->settings = $settings;
28 30 $this->config = $this->settings->getOption($this->services_option_name);
@@ -59,9 +61,12 @@
59 61
60 62 public function getConnectionKey() {
61 63 require_once dirname( __FILE__ ) . '/recover.php';
62 64 $bvsiteinfo = new WPRWPSiteInfo();
63 - return base64_encode(WPRRecover::defaultSecret($this->settings).":".$bvsiteinfo->siteurl());
65 + $encoded_url = base64_encode($bvsiteinfo->siteurl());
66 + $secret = WPRRecover::defaultSecret($this->settings);
67 +
68 + return base64_encode("v2:".$secret.":".$encoded_url.":".$this->plugname);
64 69 }
65 70
66 71 public function getDefaultSecret() {
67 72 require_once dirname( __FILE__ ) . '/recover.php';
@@ -81,9 +86,9 @@
81 86 }
82 87
83 88 public static function getRequestID() {
84 89 if (!defined("BV_REQUEST_ID")) {
85 - define("BV_REQUEST_ID", uniqid(mt_rand()));
90 + define("BV_REQUEST_ID", uniqid(mt_rand())); // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand
86 91 }
87 92 return BV_REQUEST_ID;
88 93 }
89 94
@@ -102,8 +107,9 @@
102 107 return false;
103 108 }
104 109
105 110 public function canWhiteLabel($slug = NULL) {
111 + // phpcs:disable WordPress.Security.NonceVerification.Recommended
106 112 if (array_key_exists("bv_override_global_whitelabel", $_REQUEST)) {
107 113 return false;
108 114 }
109 115 if (array_key_exists("bv_override_plugin_whitelabel", $_REQUEST) && isset($slug) &&
@@ -109,8 +115,9 @@
109 115 if (array_key_exists("bv_override_plugin_whitelabel", $_REQUEST) && isset($slug) &&
110 116 $_REQUEST["bv_override_plugin_whitelabel"] === $slug) {
111 117 return false;
112 118 }
119 + // phpcs:enable WordPress.Security.NonceVerification.Recommended
113 120 return true;
114 121 }
115 122
116 123 public function getPluginWhitelabelInfo($slug = null) {
@@ -130,8 +137,13 @@
130 137
131 138 public function getPluginsWhitelabelInfos() {
132 139 $whitelabel_infos = $this->settings->getOption($this->brand_option);
133 140 return is_array($whitelabel_infos) ? $whitelabel_infos : array();
141 + }
142 +
143 + public function getLPWhitelabelInfo() {
144 + $infos = $this->settings->getOption($this->wp_lp_whitelabel_option);
145 + return is_array($infos) ? $infos : array();
134 146 }
135 147
136 148 public function getPluginsWhitelabelInfoByTitle() {
137 149 $whitelabel_infos = $this->getPluginsWhitelabelInfos();