PluginProbe
The WP Remote WordPress Plugin / 4.79
The WP Remote WordPress Plugin v4.79
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/protect.php +7 -4 5.684.79 View file →
@@ -1,15 +1,18 @@
1 1 <?php
2 +
2 3 if (!defined('ABSPATH')) exit;
4 +if (!class_exists('BVProtectCallback')) :
3 5
4 -if (!class_exists('BVProtectCallback')) :
5 -require_once dirname( __FILE__ ) . '/../../protect/lp.php';
6 +require_once dirname( __FILE__ ) . '/../../protect/wp/protect.php';
7 +require_once dirname( __FILE__ ) . '/../../protect/fw/config.php';
8 +require_once dirname( __FILE__ ) . '/../../protect/wp/lp/config.php';
6 9
7 10 class BVProtectCallback extends BVCallbackBase {
8 11 public $db;
9 12 public $settings;
10 13
11 - const PROTECT_WING_VERSION = 1.2;
14 + const PROTECT_WING_VERSION = 1.0;
12 15
13 16 public function __construct($callback_handler) {
14 17 $this->db = $callback_handler->db;
15 18 $this->settings = $callback_handler->settings;
@@ -39,9 +42,9 @@
39 42 return $this->settings->getTransient('bvlp_block_logins');
40 43 }
41 44
42 45 public function unBlockIP($ip, $attempts, $time) {
43 - $transient_name = WPRProtectLP_V568::UNBLOCK_IP_TRANSIENT_PREFIX . $ip;
46 + $transient_name = BVWPLP::$unblock_ip_transient.$ip;
44 47 $this->settings->setTransient($transient_name, $attempts, $time);
45 48 return $this->settings->getTransient($transient_name);
46 49 }
47 50