| Server IP : 146.59.209.152 / Your IP : 216.73.216.46 Web Server : Apache System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : infrafs ( 43850) PHP Version : 8.2.29 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/infrafs/www/wp-content/plugins/migrate-guru/ |
Upload File : |
<?php
if (!defined('ABSPATH')) exit;
if (!class_exists('MGWPAction')) :
class MGWPAction {
public $settings;
public $siteinfo;
public $bvinfo;
public $bvapi;
public function __construct($settings, $siteinfo, $bvapi) {
$this->settings = $settings;
$this->siteinfo = $siteinfo;
$this->bvapi = $bvapi;
$this->bvinfo = new MGInfo($settings);
}
public function activate() {
if (!isset($_REQUEST['blogvaultkey'])) {
##BVKEYSLOCATE##
}
if (MGAccount::isConfigured($this->settings)) {
/* This informs the server about the activation */
$info = array();
$this->siteinfo->basic($info);
$this->bvapi->pingbv('/bvapi/activate', $info);
} else {
MGAccount::setup($this->settings);
}
##ENABLECACHE##
}
public function deactivate() {
$info = array();
$this->siteinfo->basic($info);
##DISABLECACHE##
$this->bvapi->pingbv('/bvapi/deactivate', $info);
}
public static function uninstall() {
##CLEARPTCONFIG##
##CLEARIPSTORE##
##CLEARDYNSYNCCONFIG##
##CLEARCACHECONFIG##
do_action('clear_bv_services_config');
}
public function clear_bv_services_config() {
$this->settings->deleteOption($this->bvinfo->services_option_name);
}
##SOUNINSTALLFUNCTION##
public function footerHandler() {
$bvfooter = $this->settings->getOption($this->bvinfo->badgeinfo);
if ($bvfooter) {
echo '<div style="max-width:150px;min-height:70px;margin:0 auto;text-align:center;position:relative;">
<a href='.$bvfooter['badgeurl'].' target="_blank" ><img src="'.plugins_url($bvfooter['badgeimg'], __FILE__).'" alt="'.$bvfooter['badgealt'].'" /></a></div>';
}
}
}
endif;