| @@ -9,9 +9,9 @@ | ||
| 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.45'; | |
| 13 | + public $version = '5.53'; | |
| 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'; |
| @@ -56,24 +56,29 @@ | ||
| 56 | 56 | |
| 57 | 57 | return false; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - public function getLatestElementorDBVersion($file) { | |
| 61 | - if (defined('ELEMENTOR_PATH') && file_exists(ELEMENTOR_PATH . 'core/upgrade/manager.php')) { | |
| 62 | - include_once ELEMENTOR_PATH . 'core/upgrade/manager.php'; | |
| 60 | + public function getConnectionKey() { | |
| 61 | + require_once dirname( __FILE__ ) . '/recover.php'; | |
| 62 | + $bvsiteinfo = new WPRWPSiteInfo(); | |
| 63 | + return base64_encode(WPRRecover::defaultSecret($this->settings).":".$bvsiteinfo->siteurl()); | |
| 64 | + } | |
| 63 | 65 | |
| 64 | - if ($file === 'elementor-pro/elementor-pro.php') { | |
| 65 | - $managerClass = '\ElementorPro\Core\Upgrade\Manager'; | |
| 66 | - } else { | |
| 67 | - $managerClass = '\Elementor\Core\Upgrade\Manager'; | |
| 68 | - } | |
| 66 | + public function getDefaultSecret() { | |
| 67 | + require_once dirname( __FILE__ ) . '/recover.php'; | |
| 68 | + $bvsiteinfo = new WPRWPSiteInfo(); | |
| 69 | + return WPRRecover::defaultSecret($this->settings); | |
| 70 | + } | |
| 69 | 71 | |
| 70 | - $manager = new $managerClass(); | |
| 72 | + public function getLatestElementorDBVersion($file) { | |
| 73 | + $managerClass = $file === "elementor/elementor.php" ? '\Elementor\Core\Upgrade\Manager' : '\ElementorPro\Core\Upgrade\Manager'; | |
| 71 | 74 | |
| 72 | - return $manager->get_new_version(); | |
| 75 | + if (!class_exists($managerClass)) { | |
| 76 | + return false; | |
| 73 | 77 | } |
| 74 | 78 | |
| 75 | - return false; | |
| 79 | + $manager = new $managerClass(); | |
| 80 | + return $manager->get_new_version(); | |
| 76 | 81 | } |
| 77 | 82 | |
| 78 | 83 | public static function getRequestID() { |
| 79 | 84 | if (!defined("BV_REQUEST_ID")) { |