| Server IP : 104.21.21.239 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/domains/siparent/wp-content/plugins/wp-site-migrate/ |
Upload File : |
<?php
if (!defined('ABSPATH')) exit;
if (!class_exists('WPEInfo')) :
class WPEInfo {
public $settings;
public $config;
public $plugname = 'wpengine';
public $brandname = 'WPEngine Migration';
public $badgeinfo = 'wpebadge';
public $ip_header_option = 'wpeipheader';
public $brand_option = 'wpebrand';
public $version = '4.69';
public $webpage = 'https://wpengine.com';
public $appurl = 'https://wpengine.blogvault.net';
public $slug = 'wp-site-migrate/wpengine.php';
public $plug_redirect = 'wperedirect';
public $logo = '../assets/img/wpe-logo.svg';
public $brand_icon = '/assets/img/favicon.ico';
public $services_option_name = 'BVSERVICESOPTIONNAME';
const DB_VERSION = '3';
public function __construct($settings) {
$this->settings = $settings;
$this->config = $this->settings->getOption($this->services_option_name);
}
public function getCurrentDBVersion() {
$bvconfig = $this->config;
if ($bvconfig && array_key_exists('db_version', $bvconfig)) {
return $bvconfig['db_version'];
}
return false;
}
public function hasValidDBVersion() {
return WPEInfo::DB_VERSION === $this->getCurrentDBVersion();
}
public static function getRequestID() {
if (!defined("BV_REQUEST_ID")) {
define("BV_REQUEST_ID", uniqid(mt_rand()));
}
return BV_REQUEST_ID;
}
public function canSetCWBranding() {
if (WPEWPSiteInfo::isCWServer()) {
$bot_protect_accounts = WPEAccount::accountsByType($this->settings, 'botprotect');
if (sizeof($bot_protect_accounts) >= 1)
return true;
$bot_protect_accounts = WPEAccount::accountsByPattern($this->settings, 'email', '/@cw_user\.com$/');
if (sizeof($bot_protect_accounts) >= 1)
return true;
}
return false;
}
public function getBrandInfo() {
return $this->settings->getOption($this->brand_option);
}
public function getBrandName() {
$brand = $this->getBrandInfo();
if ($brand && array_key_exists('menuname', $brand)) {
return $brand['menuname'];
}
return $this->brandname;
}
public function getBrandIcon() {
$brand = $this->getBrandInfo();
if ($brand && array_key_exists('brand_icon', $brand)) {
return $brand['brand_icon'];
}
return $this->brand_icon;
}
public function getWatchTime() {
$time = $this->settings->getOption('bvwatchtime');
return ($time ? $time : 0);
}
public function appUrl() {
if (defined('BV_APP_URL')) {
return BV_APP_URL;
} else {
$brand = $this->getBrandInfo();
if ($brand && array_key_exists('appurl', $brand)) {
return $brand['appurl'];
}
return $this->appurl;
}
}
public function isActivePlugin() {
$expiry_time = time() - (3 * 24 * 3600);
return ($this->getWatchTime() > $expiry_time);
}
public function isProtectModuleEnabled() {
return $this->isServiceActive("protect");
}
public function isDynSyncModuleEnabled() {
if ($this->isServiceActive("dynsync")) {
$dynconfig = $this->config['dynsync'];
if (array_key_exists('dynplug', $dynconfig) && ($dynconfig['dynplug'] === $this->plugname)) {
return true;
}
}
return false;
}
public function isServiceActive($service) {
$bvconfig = $this->config;
if ($bvconfig && array_key_exists('services', $bvconfig)) {
return in_array($service, $bvconfig['services']) && $this->isActivePlugin();
}
return false;
}
public function isActivateRedirectSet() {
return ($this->settings->getOption($this->plug_redirect) === 'yes') ? true : false;
}
public function isMalcare() {
return $this->getBrandName() === 'MalCare - Pro';
}
public function isBlogvault() {
return $this->getBrandName() === 'BlogVault';
}
public function info() {
return array(
"bvversion" => $this->version,
"sha1" => "true",
"plugname" => $this->plugname
);
}
}
endif;