????JFIF??x?x????'
| Server IP : 104.21.30.238 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././././home/tempvsty/peekmysite.com/wp-content/plugins/malcare-security/protect/ |
Upload File : |
<?php
if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit;
if (!class_exists('MCProtectWPUser_V602')) :
class MCProtectWPUser_V602 {
public $id;
public $role;
public $role_level;
public $capabilities;
public $capability_names = array();
public $time;
const COOKIE_NAME = "mcfw-wp-user-cookie";
public function __construct($id, $role_level, $capabilities, $time) {
$this->id = $id;
$this->role_level = $role_level;
$this->capabilities = $capabilities;
$this->time = $time;
}
public static function defaultUser() {
$time = (int) floor(time() / 43200);
return (new MCProtectWPUser_V602(0, 0, array(), $time));
}
public static function _serialize($user) {
return $user->id . '|' . $user->role_level . '|' . implode(',', $user->capabilities) . '|' .
$user->time;
}
public static function _unserialize($serialized_user) {
if (!is_string($serialized_user)) {
return null;
}
$user_attrs = explode('|', $serialized_user);
if (count($user_attrs) !== 4) {
return null;
}
list($id, $role_level, $capabilities, $time) = $user_attrs;
$capabilities = array_map('intval', explode(',', $capabilities));
return (new MCProtectWPUser_V602((int) $id, (int) $role_level, $capabilities, (int) $time));
}
public function isIdentical($user) {
return (($this->id === $user->id) && ($this->role_level === $user->role_level) &&
($this->capabilities === $user->capabilities) && ($this->time === $user->time));
}
public function isLoggedIn() {
return $this->id !== 0;
}
public function getInfo() {
return array(
'id' => $this->id,
'role' => $this->role,
'capabilities' => $this->capability_names
);
}
}
endif;