PluginProbe
The WP Remote WordPress Plugin / trunk
The WP Remote WordPress Plugin vtrunk
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 5.73 All 53 releases
← All changes | callback/wings/ipstore.php +8 -8 5.38trunk View file →
@@ -1,14 +1,14 @@
1 1 <?php
2 2 if (!defined('ABSPATH')) exit;
3 3
4 -if (!class_exists('BVIPStoreCallback')) :
4 +if (!class_exists('WPRIPStoreCallback')) :
5 5 require_once dirname( __FILE__ ) . '/../../protect/ipstore.php';
6 6
7 -class BVIPStoreCallback extends BVCallbackBase {
7 +class WPRIPStoreCallback extends WPRCallbackBase {
8 8 public $db;
9 9
10 - const IPSTORE_WING_VERSION = 1.3;
10 + const IPSTORE_WING_VERSION = 1.4;
11 11
12 12 public function __construct($callback_handler) {
13 13 $this->db = $callback_handler->db;
14 14 }
@@ -49,9 +49,9 @@
49 49 }
50 50
51 51 public function getIPs($table, $auto_increment_offset, $type, $category) {
52 52 $query = "SELECT `start_ip_range` FROM $table WHERE id < $auto_increment_offset AND `type` in (" . implode(',', $type) . ") AND ";
53 - $query .= ($category == MCProtectIpstoreDB::CATEGORY_FW) ? "`is_fw` = true;" : "`is_lp` = true;";
53 + $query .= ($category == WPRProtectIpstoreDB_V672::CATEGORY_FW) ? "`is_fw` = true;" : "`is_lp` = true;";
54 54 return $this->db->getCol($query);
55 55 }
56 56
57 57 public function getIPStoreOffset($table, $auto_increment_offset) {
@@ -63,15 +63,15 @@
63 63 $db = $this->db;
64 64 $info = array();
65 65
66 66 $info['fw_blacklisted_ips'] = $this->getIPs($table, $auto_increment_offset,
67 - MCProtectIpstoreDB::blacklistedTypes(), MCProtectIpstoreDB::CATEGORY_FW);
67 + WPRProtectIpstoreDB_V672::blacklistedTypes(), WPRProtectIpstoreDB_V672::CATEGORY_FW);
68 68 $info['lp_blacklisted_ips'] = $this->getIPs($table, $auto_increment_offset,
69 - MCProtectIpstoreDB::blacklistedTypes(), MCProtectIpstoreDB::CATEGORY_LP);
69 + WPRProtectIpstoreDB_V672::blacklistedTypes(), WPRProtectIpstoreDB_V672::CATEGORY_LP);
70 70 $info['fw_whitelisted_ips'] = $this->getIPs($table, $auto_increment_offset,
71 - MCProtectIpstoreDB::whitelistedTypes(), MCProtectIpstoreDB::CATEGORY_FW);
71 + WPRProtectIpstoreDB_V672::whitelistedTypes(), WPRProtectIpstoreDB_V672::CATEGORY_FW);
72 72 $info['lp_whitelisted_ips'] = $this->getIPs($table, $auto_increment_offset,
73 - MCProtectIpstoreDB::whitelistedTypes(), MCProtectIpstoreDB::CATEGORY_LP);
73 + WPRProtectIpstoreDB_V672::whitelistedTypes(), WPRProtectIpstoreDB_V672::CATEGORY_LP);
74 74 $info['ip_store_offset'] = $this->getIPStoreOffset($table, $auto_increment_offset);
75 75 $info['country_ips_size'] = intval($db->getVar("SELECT COUNT(id) FROM $table WHERE id >= $auto_increment_offset"));
76 76
77 77 return $info;