PluginProbe
The WP Remote WordPress Plugin / 6.02
The WP Remote WordPress Plugin v6.02
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 +27 -19 5.476.02 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.47';
13 + public $wp_lp_whitelabel_option = 'wprLpWhitelabelConf';
14 + public $version = '6.02';
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);
@@ -56,8 +58,23 @@
56 58
57 59 return false;
58 60 }
59 61
62 + public function getConnectionKey() {
63 + require_once dirname( __FILE__ ) . '/recover.php';
64 + $bvsiteinfo = new WPRWPSiteInfo();
65 + $encoded_url = base64_encode($bvsiteinfo->siteurl());
66 + $secret = WPRRecover::defaultSecret($this->settings);
67 +
68 + return base64_encode("v2:".$secret.":".$encoded_url.":".$this->plugname);
69 + }
70 +
71 + public function getDefaultSecret() {
72 + require_once dirname( __FILE__ ) . '/recover.php';
73 + $bvsiteinfo = new WPRWPSiteInfo();
74 + return WPRRecover::defaultSecret($this->settings);
75 + }
76 +
60 77 public function getLatestElementorDBVersion($file) {
61 78 $managerClass = $file === "elementor/elementor.php" ? '\Elementor\Core\Upgrade\Manager' : '\ElementorPro\Core\Upgrade\Manager';
62 79
63 80 if (!class_exists($managerClass)) {
@@ -69,29 +86,15 @@
69 86 }
70 87
71 88 public static function getRequestID() {
72 89 if (!defined("BV_REQUEST_ID")) {
73 - define("BV_REQUEST_ID", uniqid(mt_rand()));
90 + define("BV_REQUEST_ID", uniqid(mt_rand())); // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand
74 91 }
75 92 return BV_REQUEST_ID;
76 93 }
77 94
78 - public function canSetCWBranding() {
79 - if (WPRWPSiteInfo::isCWServer()) {
80 -
81 - $bot_protect_accounts = WPRAccount::accountsByType($this->settings, 'botprotect');
82 - if (sizeof($bot_protect_accounts) >= 1)
83 - return true;
84 -
85 - $bot_protect_accounts = WPRAccount::accountsByPattern($this->settings, 'email', '/@cw_user\.com$/');
86 - if (sizeof($bot_protect_accounts) >= 1)
87 - return true;
88 - }
89 -
90 - return false;
91 - }
92 -
93 95 public function canWhiteLabel($slug = NULL) {
96 + // phpcs:disable WordPress.Security.NonceVerification.Recommended
94 97 if (array_key_exists("bv_override_global_whitelabel", $_REQUEST)) {
95 98 return false;
96 99 }
97 100 if (array_key_exists("bv_override_plugin_whitelabel", $_REQUEST) && isset($slug) &&
@@ -97,8 +100,9 @@
97 100 if (array_key_exists("bv_override_plugin_whitelabel", $_REQUEST) && isset($slug) &&
98 101 $_REQUEST["bv_override_plugin_whitelabel"] === $slug) {
99 102 return false;
100 103 }
104 + // phpcs:enable WordPress.Security.NonceVerification.Recommended
101 105 return true;
102 106 }
103 107
104 108 public function getPluginWhitelabelInfo($slug = null) {
@@ -120,8 +124,13 @@
120 124 $whitelabel_infos = $this->settings->getOption($this->brand_option);
121 125 return is_array($whitelabel_infos) ? $whitelabel_infos : array();
122 126 }
123 127
128 + public function getLPWhitelabelInfo() {
129 + $infos = $this->settings->getOption($this->wp_lp_whitelabel_option);
130 + return is_array($infos) ? $infos : array();
131 + }
132 +
124 133 public function getPluginsWhitelabelInfoByTitle() {
125 134 $whitelabel_infos = $this->getPluginsWhitelabelInfos();
126 135 $whitelabel_infos_by_title = array();
127 136 foreach ($whitelabel_infos as $slug => $whitelabel_info) {
@@ -137,9 +146,8 @@
137 146 $brand = $this->getPluginWhitelabelInfo();
138 147 if (is_array($brand) && array_key_exists('menuname', $brand)) {
139 148 return $brand['menuname'];
140 149 }
141 -
142 150 return $this->brandname;
143 151 }
144 152
145 153 public function getBrandIcon() {