PluginProbe
The WP Remote WordPress Plugin / 6.76
The WP Remote WordPress Plugin v6.76
6.76 6.72 6.69 6.65 6.62 6.48 6.47 4.87 4.97 5.05 5.09 5.16 5.22 5.24 5.25 5.38 5.41 5.42 5.45 5.47 5.53 5.56 5.65 5.68 5.72 All 54 releases
← All changes | protect/ipstore.php +9 -9 6.726.76 View file →
@@ -1,13 +1,13 @@
1 1 <?php
2 2 if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit;
3 3
4 -if (!class_exists('WPRProtectIpstore_V672')) :
4 +if (!class_exists('WPRProtectIpstore_V676')) :
5 5 require_once dirname( __FILE__ ) . '/request.php';
6 6 require_once dirname( __FILE__ ) . '/ipstore/fs.php';
7 7 require_once dirname( __FILE__ ) . '/ipstore/db.php';
8 8
9 -class WPRProtectIpstore_V672 {
9 +class WPRProtectIpstore_V676 {
10 10 private $storage;
11 11 private $storage_type;
12 12
13 13 const STORAGE_TYPE_FS = 0;
@@ -12,29 +12,29 @@
12 12
13 13 const STORAGE_TYPE_FS = 0;
14 14 const STORAGE_TYPE_DB = 1;
15 15
16 - function __construct($storage_type = WPRProtectIpstore_V672::STORAGE_TYPE_DB) {
16 + function __construct($storage_type = WPRProtectIpstore_V676::STORAGE_TYPE_DB) {
17 17 $this->storage_type = $storage_type;
18 - if ($this->storage_type == WPRProtectIpstore_V672::STORAGE_TYPE_FS) {
19 - $this->storage = new WPRProtectIpstoreFS_V672();
18 + if ($this->storage_type == WPRProtectIpstore_V676::STORAGE_TYPE_FS) {
19 + $this->storage = new WPRProtectIpstoreFS_V676();
20 20 } else {
21 - $this->storage = new WPRProtectIpstoreDB_V672();
21 + $this->storage = new WPRProtectIpstoreDB_V676();
22 22 }
23 23 }
24 24
25 25 public static function uninstall() {
26 - WPRProtectIpstoreDB_V672::uninstall();
26 + WPRProtectIpstoreDB_V676::uninstall();
27 27 }
28 28
29 29 public function isLPIPBlacklisted($ip) {
30 - if ($this->storage_type == WPRProtectIpstore_V672::STORAGE_TYPE_DB) {
30 + if ($this->storage_type == WPRProtectIpstore_V676::STORAGE_TYPE_DB) {
31 31 return $this->storage->isLPIPBlacklisted($ip);
32 32 }
33 33 }
34 34
35 35 public function isLPIPWhitelisted($ip) {
36 - if ($this->storage_type == WPRProtectIpstore_V672::STORAGE_TYPE_DB) {
36 + if ($this->storage_type == WPRProtectIpstore_V676::STORAGE_TYPE_DB) {
37 37 return $this->storage->isLPIPWhitelisted($ip);
38 38 }
39 39 }
40 40