storage_type = $storage_type; if ($this->storage_type == WPRProtectIpstore_V676::STORAGE_TYPE_FS) { $this->storage = new WPRProtectIpstoreFS_V676(); } else { $this->storage = new WPRProtectIpstoreDB_V676(); } } public static function uninstall() { WPRProtectIpstoreDB_V676::uninstall(); } public function isLPIPBlacklisted($ip) { if ($this->storage_type == WPRProtectIpstore_V676::STORAGE_TYPE_DB) { return $this->storage->isLPIPBlacklisted($ip); } } public function isLPIPWhitelisted($ip) { if ($this->storage_type == WPRProtectIpstore_V676::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); } } endif;