: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit;
if (!class_exists('BVProtectIpstore_V565')) :
require_once dirname( __FILE__ ) . '/request.php';
require_once dirname( __FILE__ ) . '/ipstore/fs.php';
require_once dirname( __FILE__ ) . '/ipstore/db.php';
class BVProtectIpstore_V565 {
const STORAGE_TYPE_FS = 0;
const STORAGE_TYPE_DB = 1;
function __construct($storage_type = BVProtectIpstore_V565::STORAGE_TYPE_DB) {
$this->storage_type = $storage_type;
if ($this->storage_type == BVProtectIpstore_V565::STORAGE_TYPE_FS) {
$this->storage = new BVProtectIpstoreFS_V565();
$this->storage = new BVProtectIpstoreDB_V565();
public static function uninstall() {
BVProtectIpstoreDB_V565::uninstall();
public function isLPIPBlacklisted($ip) {
if ($this->storage_type == BVProtectIpstore_V565::STORAGE_TYPE_DB) {
return $this->storage->isLPIPBlacklisted($ip);
public function isLPIPWhitelisted($ip) {
if ($this->storage_type == BVProtectIpstore_V565::STORAGE_TYPE_DB) {
return $this->storage->isLPIPWhitelisted($ip);
public function getTypeIfBlacklistedIP($ip) {
return $this->storage->getTypeIfBlacklistedIP($ip);
public function isFWIPBlacklisted($ip) {
return $this->storage->isFWIPBlacklisted($ip);
public function isFWIPWhitelisted($ip) {
return $this->storage->isFWIPWhitelisted($ip);