C:\xampp\htdocs\landing\wp-content\updraft\plugins-old\malcare-security\info.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php

if (!defined('ABSPATH')) exit;
if (!
class_exists('MCInfo')) :
    class 
MCInfo {
        public 
$settings;
        public 
$plugname 'malcare';
        public 
$brandname 'MalCare';
        public 
$badgeinfo 'mcbadge';
        public 
$ip_header_option 'mcipheader';
        public 
$brand_option 'mcbrand';
        public 
$version '4.53';
        public 
$webpage 'https://www.malcare.com';
        public 
$appurl 'https://app.malcare.com';
        public 
$slug 'malcare-security/malcare.php';
        public 
$plug_redirect 'mcredirect';
        public 
$logo '../img/logo.png';
        public 
$brand_icon '/img/icon.png';

        public function 
__construct($settings) {
            
$this->settings $settings;
        }

        public function 
canSetCWBranding() {
            if (
MCWPSiteInfo::isCWServer()) {

                
$bot_protect_accounts MCAccount::accountsByType($this->settings'botprotect');
                if (
sizeof($bot_protect_accounts) >= 1)
                    return 
true;

                
$bot_protect_accounts MCAccount::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'];
            }
          
$bvinfo = new MCInfo($this->settings);
if (
$bvinfo->canSetCWBranding()) {
                return 
"Cloudways";
            }

            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() - (24 3600);
            return (
$this->getWatchTime() > $expiry_time);
        }

        public function 
isProtectModuleEnabled() {
            return (
$this->settings->getOption('bvptplug') === $this->plugname) &&
                
$this->isActivePlugin();
        }

        public function 
isDynSyncModuleEnabled() {
            return (
$this->settings->getOption('bvdynplug') === $this->plugname) &&
                
$this->isActivePlugin();
        }

        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;
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586