PluginProbe
The WP Remote WordPress Plugin / trunk
The WP Remote WordPress Plugin vtrunk
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 +19 -26 5.73trunk 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.73';
13 + public $wp_lp_whitelabel_option = 'wprLpWhitelabelConf';
14 + public $version = '6.72';
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';
@@ -62,16 +63,17 @@
62 63 require_once dirname( __FILE__ ) . '/recover.php';
63 64 $bvsiteinfo = new WPRWPSiteInfo();
64 65 $encoded_url = base64_encode($bvsiteinfo->siteurl());
65 66 $secret = WPRRecover::defaultSecret($this->settings);
67 + $tag = WPRRecover::connectionTag($this->settings);
66 68
67 - return base64_encode("v1:".$secret.":".$encoded_url);
68 - }
69 + #No tag means this site has no salt material in wp-config.php, and there
70 + #is no connection key that would be safe to hand out.
71 + if (empty($secret) || empty($tag)) {
72 + return null;
73 + }
69 74
70 - public function getDefaultSecret() {
71 - require_once dirname( __FILE__ ) . '/recover.php';
72 - $bvsiteinfo = new WPRWPSiteInfo();
73 - return WPRRecover::defaultSecret($this->settings);
75 + return base64_encode("v3:".$secret.":".$encoded_url.":".$this->plugname.":".$tag);
74 76 }
75 77
76 78 public function getLatestElementorDBVersion($file) {
77 79 $managerClass = $file === "elementor/elementor.php" ? '\Elementor\Core\Upgrade\Manager' : '\ElementorPro\Core\Upgrade\Manager';
@@ -84,30 +86,16 @@
84 86 return $manager->get_new_version();
85 87 }
86 88
87 89 public static function getRequestID() {
88 - if (!defined("BV_REQUEST_ID")) {
89 - define("BV_REQUEST_ID", uniqid(mt_rand()));
90 + if (!defined("WPR_REQUEST_ID")) {
91 + define("WPR_REQUEST_ID", uniqid(mt_rand())); // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand
90 92 }
91 - return BV_REQUEST_ID;
93 + return WPR_REQUEST_ID;
92 94 }
93 95
94 - public function canSetCWBranding() {
95 - if (WPRWPSiteInfo::isCWServer()) {
96 -
97 - $bot_protect_accounts = WPRAccount::accountsByType($this->settings, 'botprotect');
98 - if (sizeof($bot_protect_accounts) >= 1)
99 - return true;
100 -
101 - $bot_protect_accounts = WPRAccount::accountsByPattern($this->settings, 'email', '/@cw_user\.com$/');
102 - if (sizeof($bot_protect_accounts) >= 1)
103 - return true;
104 - }
105 -
106 - return false;
107 - }
108 -
109 96 public function canWhiteLabel($slug = NULL) {
97 + // phpcs:disable WordPress.Security.NonceVerification.Recommended
110 98 if (array_key_exists("bv_override_global_whitelabel", $_REQUEST)) {
111 99 return false;
112 100 }
113 101 if (array_key_exists("bv_override_plugin_whitelabel", $_REQUEST) && isset($slug) &&
@@ -113,8 +101,9 @@
113 101 if (array_key_exists("bv_override_plugin_whitelabel", $_REQUEST) && isset($slug) &&
114 102 $_REQUEST["bv_override_plugin_whitelabel"] === $slug) {
115 103 return false;
116 104 }
105 + // phpcs:enable WordPress.Security.NonceVerification.Recommended
117 106 return true;
118 107 }
119 108
120 109 public function getPluginWhitelabelInfo($slug = null) {
@@ -136,8 +125,13 @@
136 125 $whitelabel_infos = $this->settings->getOption($this->brand_option);
137 126 return is_array($whitelabel_infos) ? $whitelabel_infos : array();
138 127 }
139 128
129 + public function getLPWhitelabelInfo() {
130 + $infos = $this->settings->getOption($this->wp_lp_whitelabel_option);
131 + return is_array($infos) ? $infos : array();
132 + }
133 +
140 134 public function getPluginsWhitelabelInfoByTitle() {
141 135 $whitelabel_infos = $this->getPluginsWhitelabelInfos();
142 136 $whitelabel_infos_by_title = array();
143 137 foreach ($whitelabel_infos as $slug => $whitelabel_info) {
@@ -153,9 +147,8 @@
153 147 $brand = $this->getPluginWhitelabelInfo();
154 148 if (is_array($brand) && array_key_exists('menuname', $brand)) {
155 149 return $brand['menuname'];
156 150 }
157 -
158 151 return $this->brandname;
159 152 }
160 153
161 154 public function getBrandIcon() {