PluginProbe
The WP Remote WordPress Plugin / 4.74
The WP Remote WordPress Plugin v4.74
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 +11 -111 5.654.74 View file →
@@ -8,10 +8,10 @@
8 8 public $plugname = 'wpremote';
9 9 public $brandname = 'WP Remote';
10 10 public $badgeinfo = 'wprbadge';
11 11 public $ip_header_option = 'wpripheader';
12 - public $brand_option = 'bv_whitelabel_infos';
13 - public $version = '5.65';
12 + public $brand_option = 'wprbrand';
13 + public $version = '4.74';
14 14 public $webpage = 'https://wpremote.com';
15 15 public $appurl = 'https://app.wpremote.com';
16 16 public $slug = 'wpremote/plugin.php';
17 17 public $plug_redirect = 'wprredirect';
@@ -17,12 +17,10 @@
17 17 public $plug_redirect = 'wprredirect';
18 18 public $logo = '../img/wprlogo.png';
19 19 public $brand_icon = '/img/icon.png';
20 20 public $services_option_name = 'wprconfig';
21 - public $author = 'WP Remote';
22 - public $title = 'WP Remote';
23 21
24 - const DB_VERSION = '4';
22 + const DB_VERSION = '3';
25 23
26 24 public function __construct($settings) {
27 25 $this->settings = $settings;
28 26 $this->config = $this->settings->getOption($this->services_option_name);
@@ -39,51 +37,8 @@
39 37 public function hasValidDBVersion() {
40 38 return WPRInfo::DB_VERSION === $this->getCurrentDBVersion();
41 39 }
42 40
43 - public function getLatestWooCommerceDBVersion() {
44 - if (defined('WC_ABSPATH') && file_exists(WC_ABSPATH . 'includes/class-wc-install.php')) {
45 - include_once WC_ABSPATH . 'includes/class-wc-install.php';
46 -
47 - if (class_exists('WC_Install')) {
48 - $update_versions = array_keys(WC_Install::get_db_update_callbacks());
49 -
50 - if (!empty($update_versions)) {
51 - asort($update_versions);
52 - return end($update_versions);
53 - }
54 - }
55 - }
56 -
57 - return false;
58 - }
59 -
60 - public function getConnectionKey() {
61 - require_once dirname( __FILE__ ) . '/recover.php';
62 - $bvsiteinfo = new WPRWPSiteInfo();
63 - $encoded_url = base64_encode($bvsiteinfo->siteurl());
64 - $secret = WPRRecover::defaultSecret($this->settings);
65 -
66 - return base64_encode("v1:".$secret.":".$encoded_url);
67 - }
68 -
69 - public function getDefaultSecret() {
70 - require_once dirname( __FILE__ ) . '/recover.php';
71 - $bvsiteinfo = new WPRWPSiteInfo();
72 - return WPRRecover::defaultSecret($this->settings);
73 - }
74 -
75 - public function getLatestElementorDBVersion($file) {
76 - $managerClass = $file === "elementor/elementor.php" ? '\Elementor\Core\Upgrade\Manager' : '\ElementorPro\Core\Upgrade\Manager';
77 -
78 - if (!class_exists($managerClass)) {
79 - return false;
80 - }
81 -
82 - $manager = new $managerClass();
83 - return $manager->get_new_version();
84 - }
85 -
86 41 public static function getRequestID() {
87 42 if (!defined("BV_REQUEST_ID")) {
88 43 define("BV_REQUEST_ID", uniqid(mt_rand()));
89 44 }
@@ -104,54 +59,15 @@
104 59
105 60 return false;
106 61 }
107 62
108 - public function canWhiteLabel($slug = NULL) {
109 - if (array_key_exists("bv_override_global_whitelabel", $_REQUEST)) {
110 - return false;
111 - }
112 - if (array_key_exists("bv_override_plugin_whitelabel", $_REQUEST) && isset($slug) &&
113 - $_REQUEST["bv_override_plugin_whitelabel"] === $slug) {
114 - return false;
115 - }
116 - return true;
117 - }
118 -
119 - public function getPluginWhitelabelInfo($slug = null) {
120 - if ($slug === null) {
121 - $slug = $this->slug;
122 - }
123 - $whitelabel_infos = $this->getPluginsWhitelabelInfos();
124 - if (!array_key_exists($slug, $whitelabel_infos) || !is_array($whitelabel_infos[$slug])) {
125 - return array();
126 - }
127 - return $whitelabel_infos[$slug];
128 - }
129 -
130 63 public function getBrandInfo() {
131 64 return $this->settings->getOption($this->brand_option);
132 65 }
133 66
134 - public function getPluginsWhitelabelInfos() {
135 - $whitelabel_infos = $this->settings->getOption($this->brand_option);
136 - return is_array($whitelabel_infos) ? $whitelabel_infos : array();
137 - }
138 -
139 - public function getPluginsWhitelabelInfoByTitle() {
140 - $whitelabel_infos = $this->getPluginsWhitelabelInfos();
141 - $whitelabel_infos_by_title = array();
142 - foreach ($whitelabel_infos as $slug => $whitelabel_info) {
143 - if (is_array($whitelabel_info) && array_key_exists('default_title', $whitelabel_info) && isset($whitelabel_info['default_title'])) {
144 - $whitelabel_info['slug'] = $slug;
145 - $whitelabel_infos_by_title[$whitelabel_info['default_title']] = $whitelabel_info;
146 - }
147 - }
148 - return $whitelabel_infos_by_title;
149 - }
150 -
151 67 public function getBrandName() {
152 - $brand = $this->getPluginWhitelabelInfo();
153 - if (is_array($brand) && array_key_exists('menuname', $brand)) {
68 + $brand = $this->getBrandInfo();
69 + if ($brand && array_key_exists('menuname', $brand)) {
154 70 return $brand['menuname'];
155 71 }
156 72
157 73 return $this->brandname;
@@ -157,10 +73,10 @@
157 73 return $this->brandname;
158 74 }
159 75
160 76 public function getBrandIcon() {
161 - $brand = $this->getPluginWhitelabelInfo();
162 - if (is_array($brand) && array_key_exists('brand_icon', $brand)) {
77 + $brand = $this->getBrandInfo();
78 + if ($brand && array_key_exists('brand_icon', $brand)) {
163 79 return $brand['brand_icon'];
164 80 }
165 81 return $this->brand_icon;
166 82 }
@@ -173,10 +89,10 @@
173 89 public function appUrl() {
174 90 if (defined('BV_APP_URL')) {
175 91 return BV_APP_URL;
176 92 } else {
177 - $brand = $this->getPluginWhitelabelInfo();
178 - if (is_array($brand) && array_key_exists('appurl', $brand)) {
93 + $brand = $this->getBrandInfo();
94 + if ($brand && array_key_exists('appurl', $brand)) {
179 95 return $brand['appurl'];
180 96 }
181 97 return $this->appurl;
182 98 }
@@ -186,26 +102,10 @@
186 102 $expiry_time = time() - (3 * 24 * 3600);
187 103 return ($this->getWatchTime() > $expiry_time);
188 104 }
189 105
190 - public function isValidEnvironment(){
191 - $bvsiteinfo = new WPRWPSiteInfo();
192 - $bvconfig = $this->config;
193 -
194 - if (is_multisite()) {
195 - return true;
196 - } elseif ($bvconfig && array_key_exists("siteurl_scheme", $bvconfig)) {
197 - $siteurl = $bvsiteinfo->siteurl('', $bvconfig["siteurl_scheme"]);
198 - if (array_key_exists("abspath", $bvconfig) &&
199 - array_key_exists("siteurl", $bvconfig) && !empty($siteurl)) {
200 - return ($bvconfig["abspath"] == ABSPATH && $bvconfig["siteurl"] == $siteurl);
201 - }
202 - }
203 - return true;
204 - }
205 -
206 106 public function isProtectModuleEnabled() {
207 - return $this->isServiceActive("protect") && $this->isValidEnvironment();
107 + return $this->isServiceActive("protect");
208 108 }
209 109
210 110 public function isDynSyncModuleEnabled() {
211 111 if ($this->isServiceActive("dynsync")) {
@@ -229,9 +129,9 @@
229 129 return ($this->settings->getOption($this->plug_redirect) === 'yes') ? true : false;
230 130 }
231 131
232 132 public function isMalcare() {
233 - return $this->getBrandName() === 'MalCare';
133 + return $this->getBrandName() === 'MalCare - Pro';
234 134 }
235 135
236 136 public function isBlogvault() {
237 137 return $this->getBrandName() === 'BlogVault';