| @@ -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 | |