PluginProbe
The WP Remote WordPress Plugin / 4.86
The WP Remote WordPress Plugin v4.86
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 +6 -89 5.684.86 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.68';
12 + public $brand_option = 'wprbrand';
13 + public $version = '4.86';
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';
@@ -20,10 +20,9 @@
20 20 public $services_option_name = 'wprconfig';
21 21 public $author = 'WP Remote';
22 22 public $title = 'WP Remote';
23 23
24 - const DB_VERSION = '5';
25 - const AL_CONF_VERSION = '1.1';
24 + const DB_VERSION = '3';
26 25
27 26 public function __construct($settings) {
28 27 $this->settings = $settings;
29 28 $this->config = $this->settings->getOption($this->services_option_name);
@@ -40,51 +39,8 @@
40 39 public function hasValidDBVersion() {
41 40 return WPRInfo::DB_VERSION === $this->getCurrentDBVersion();
42 41 }
43 42
44 - public function getLatestWooCommerceDBVersion() {
45 - if (defined('WC_ABSPATH') && file_exists(WC_ABSPATH . 'includes/class-wc-install.php')) {
46 - include_once WC_ABSPATH . 'includes/class-wc-install.php';
47 -
48 - if (class_exists('WC_Install')) {
49 - $update_versions = array_keys(WC_Install::get_db_update_callbacks());
50 -
51 - if (!empty($update_versions)) {
52 - asort($update_versions);
53 - return end($update_versions);
54 - }
55 - }
56 - }
57 -
58 - return false;
59 - }
60 -
61 - public function getConnectionKey() {
62 - require_once dirname( __FILE__ ) . '/recover.php';
63 - $bvsiteinfo = new WPRWPSiteInfo();
64 - $encoded_url = base64_encode($bvsiteinfo->siteurl());
65 - $secret = WPRRecover::defaultSecret($this->settings);
66 -
67 - return base64_encode("v1:".$secret.":".$encoded_url);
68 - }
69 -
70 - public function getDefaultSecret() {
71 - require_once dirname( __FILE__ ) . '/recover.php';
72 - $bvsiteinfo = new WPRWPSiteInfo();
73 - return WPRRecover::defaultSecret($this->settings);
74 - }
75 -
76 - public function getLatestElementorDBVersion($file) {
77 - $managerClass = $file === "elementor/elementor.php" ? '\Elementor\Core\Upgrade\Manager' : '\ElementorPro\Core\Upgrade\Manager';
78 -
79 - if (!class_exists($managerClass)) {
80 - return false;
81 - }
82 -
83 - $manager = new $managerClass();
84 - return $manager->get_new_version();
85 - }
86 -
87 43 public static function getRequestID() {
88 44 if (!defined("BV_REQUEST_ID")) {
89 45 define("BV_REQUEST_ID", uniqid(mt_rand()));
90 46 }
@@ -105,53 +61,14 @@
105 61
106 62 return false;
107 63 }
108 64
109 - public function canWhiteLabel($slug = NULL) {
110 - if (array_key_exists("bv_override_global_whitelabel", $_REQUEST)) {
111 - return false;
112 - }
113 - if (array_key_exists("bv_override_plugin_whitelabel", $_REQUEST) && isset($slug) &&
114 - $_REQUEST["bv_override_plugin_whitelabel"] === $slug) {
115 - return false;
116 - }
117 - return true;
118 - }
119 -
120 - public function getPluginWhitelabelInfo($slug = null) {
121 - if ($slug === null) {
122 - $slug = $this->slug;
123 - }
124 - $whitelabel_infos = $this->getPluginsWhitelabelInfos();
125 - if (!array_key_exists($slug, $whitelabel_infos) || !is_array($whitelabel_infos[$slug])) {
126 - return array();
127 - }
128 - return $whitelabel_infos[$slug];
129 - }
130 -
131 65 public function getBrandInfo() {
132 66 return $this->settings->getOption($this->brand_option);
133 67 }
134 68
135 - public function getPluginsWhitelabelInfos() {
136 - $whitelabel_infos = $this->settings->getOption($this->brand_option);
137 - return is_array($whitelabel_infos) ? $whitelabel_infos : array();
138 - }
139 -
140 - public function getPluginsWhitelabelInfoByTitle() {
141 - $whitelabel_infos = $this->getPluginsWhitelabelInfos();
142 - $whitelabel_infos_by_title = array();
143 - foreach ($whitelabel_infos as $slug => $whitelabel_info) {
144 - if (is_array($whitelabel_info) && array_key_exists('default_title', $whitelabel_info) && isset($whitelabel_info['default_title'])) {
145 - $whitelabel_info['slug'] = $slug;
146 - $whitelabel_infos_by_title[$whitelabel_info['default_title']] = $whitelabel_info;
147 - }
148 - }
149 - return $whitelabel_infos_by_title;
150 - }
151 -
152 69 public function getBrandName() {
153 - $brand = $this->getPluginWhitelabelInfo();
70 + $brand = $this->getBrandInfo();
154 71 if (is_array($brand) && array_key_exists('menuname', $brand)) {
155 72 return $brand['menuname'];
156 73 }
157 74
@@ -158,9 +75,9 @@
158 75 return $this->brandname;
159 76 }
160 77
161 78 public function getBrandIcon() {
162 - $brand = $this->getPluginWhitelabelInfo();
79 + $brand = $this->getBrandInfo();
163 80 if (is_array($brand) && array_key_exists('brand_icon', $brand)) {
164 81 return $brand['brand_icon'];
165 82 }
166 83 return $this->brand_icon;
@@ -174,9 +91,9 @@
174 91 public function appUrl() {
175 92 if (defined('BV_APP_URL')) {
176 93 return BV_APP_URL;
177 94 } else {
178 - $brand = $this->getPluginWhitelabelInfo();
95 + $brand = $this->getBrandInfo();
179 96 if (is_array($brand) && array_key_exists('appurl', $brand)) {
180 97 return $brand['appurl'];
181 98 }
182 99 return $this->appurl;