<?php if (!defined('ABSPATH')) exit; if (!class_exists('MCWPAction')) : class MCWPAction { 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 MCInfo($settings); } public function activate() { if (!isset($_REQUEST['blogvaultkey'])) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended ##BVKEYSLOCATE## } if (MCAccount::isConfigured($this->settings)) { /* This informs the server about the activation */ $info = array(); $this->siteinfo->basic($info); $this->bvapi->pingbv('/bvapi/activate', $info); } else { MCAccount::setup($this->settings); } } public function deactivate() { $info = array(); $this->siteinfo->basic($info); ##DISABLECACHE## $this->process_deactivation_feedback($info); $this->bvapi->pingbv('/bvapi/deactivate', $info); } public static function uninstall() { do_action('mc_clear_pt_config'); do_action('mc_clear_dynsync_config'); ##CLEARCACHECONFIG## do_action('mc_clear_bv_services_config'); do_action('mc_clear_wp_2fa_config'); do_action('mc_remove_bv_preload_include'); do_action('mc_clear_php_error_config'); } public function clear_bv_services_config() { $this->settings->deleteOption($this->bvinfo->services_option_name); } public function clear_wp_2fa_config() { $meta_keys = array('mc_2fa_enabled', 'mc_2fa_secret'); foreach ($meta_keys as $meta_key) { $this->settings->deleteMetaData('user', null, $meta_key, '', true); } $this->settings->deleteOption(MCWP2FA::$wp_2fa_option); } ##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='.esc_url($bvfooter['badgeurl']).' target="_blank" ><img src="'.esc_url(plugins_url($bvfooter['badgeimg'], __FILE__)).'" alt="'.esc_attr($bvfooter['badgealt']).'" /></a></div>'; } } private function process_deactivation_feedback(&$info) { //phpcs:disable WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized if (!isset($_GET['bv_deactivation_assets']) || !is_string($_GET['bv_deactivation_assets'])) { return; } $deactivation_assets = wp_unslash($_GET['bv_deactivation_assets']); $info['deactivation_feedback'] = base64_encode($deactivation_assets); //phpcs:enable WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized } public function removeBVPreload() { $pattern = "@include '" . rtrim(ABSPATH, DIRECTORY_SEPARATOR) . "/bv-preload.php" . "';"; MCHelper::removePatternFromWpConfig($pattern); } } endif;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
admin | Folder | 0755 |
|
|
callback | Folder | 0755 |
|
|
css | Folder | 0755 |
|
|
form_testing | Folder | 0755 |
|
|
img | Folder | 0755 |
|
|
php_error_monitoring | Folder | 0755 |
|
|
protect | Folder | 0755 |
|
|
public_keys | Folder | 0755 |
|
|
wp_2fa | Folder | 0755 |
|
|
account.php | File | 7.14 KB | 0644 |
|
helper.php | File | 10.68 KB | 0644 |
|
info.php | File | 7.66 KB | 0644 |
|
license.txt | File | 19.46 KB | 0644 |
|
malcare.php | File | 8.49 KB | 0644 |
|
readme.txt | File | 32.06 KB | 0644 |
|
recover.php | File | 1.71 KB | 0644 |
|
wp_actions.php | File | 2.92 KB | 0644 |
|
wp_actlog.php | File | 17.52 KB | 0644 |
|
wp_admin.php | File | 12.67 KB | 0644 |
|
wp_api.php | File | 1.04 KB | 0644 |
|
wp_cli.php | File | 5.6 KB | 0644 |
|
wp_db.php | File | 6.1 KB | 0644 |
|
wp_dynsync.php | File | 34.75 KB | 0644 |
|
wp_file_system.php | File | 2.29 KB | 0644 |
|
wp_login_whitelabel.php | File | 1.48 KB | 0644 |
|
wp_settings.php | File | 2.06 KB | 0644 |
|
wp_site_info.php | File | 2.4 KB | 0644 |
|