Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/blogvaul.../protect
File: ipstore.php
<?php
[0] Fix | Delete
if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit;
[1] Fix | Delete
[2] Fix | Delete
if (!class_exists('BVProtectIpstore_V565')) :
[3] Fix | Delete
require_once dirname( __FILE__ ) . '/request.php';
[4] Fix | Delete
require_once dirname( __FILE__ ) . '/ipstore/fs.php';
[5] Fix | Delete
require_once dirname( __FILE__ ) . '/ipstore/db.php';
[6] Fix | Delete
[7] Fix | Delete
class BVProtectIpstore_V565 {
[8] Fix | Delete
private $storage;
[9] Fix | Delete
private $storage_type;
[10] Fix | Delete
[11] Fix | Delete
const STORAGE_TYPE_FS = 0;
[12] Fix | Delete
const STORAGE_TYPE_DB = 1;
[13] Fix | Delete
[14] Fix | Delete
function __construct($storage_type = BVProtectIpstore_V565::STORAGE_TYPE_DB) {
[15] Fix | Delete
$this->storage_type = $storage_type;
[16] Fix | Delete
if ($this->storage_type == BVProtectIpstore_V565::STORAGE_TYPE_FS) {
[17] Fix | Delete
$this->storage = new BVProtectIpstoreFS_V565();
[18] Fix | Delete
} else {
[19] Fix | Delete
$this->storage = new BVProtectIpstoreDB_V565();
[20] Fix | Delete
}
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
public static function uninstall() {
[24] Fix | Delete
BVProtectIpstoreDB_V565::uninstall();
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
public function isLPIPBlacklisted($ip) {
[28] Fix | Delete
if ($this->storage_type == BVProtectIpstore_V565::STORAGE_TYPE_DB) {
[29] Fix | Delete
return $this->storage->isLPIPBlacklisted($ip);
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
public function isLPIPWhitelisted($ip) {
[34] Fix | Delete
if ($this->storage_type == BVProtectIpstore_V565::STORAGE_TYPE_DB) {
[35] Fix | Delete
return $this->storage->isLPIPWhitelisted($ip);
[36] Fix | Delete
}
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
public function getTypeIfBlacklistedIP($ip) {
[40] Fix | Delete
return $this->storage->getTypeIfBlacklistedIP($ip);
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
public function isFWIPBlacklisted($ip) {
[44] Fix | Delete
return $this->storage->isFWIPBlacklisted($ip);
[45] Fix | Delete
}
[46] Fix | Delete
[47] Fix | Delete
public function isFWIPWhitelisted($ip) {
[48] Fix | Delete
return $this->storage->isFWIPWhitelisted($ip);
[49] Fix | Delete
}
[50] Fix | Delete
}
[51] Fix | Delete
endif;
[52] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function