- ';
- do_settings_sections(BDP_LV_PLUGIN_SLUG . '-limit-login-attempts');
- submit_button();
- echo '';
- break;
- case 'tab2':
- echo '
Blocklist
';
- echo '
';
- break;
- case 'tab3':
- echo '
Allowlist
';
- echo '
';
- break;
- case 'tab4':
- if (isset($_GET['action']) && $_GET['action'] == 'release') {
- $this->releaseIp(base64_decode($_GET['ip']));
- }
-
- if (isset($_GET['action']) && $_GET['action'] == 'toBlock') {
- $this->addToBlocklist(base64_decode($_GET['ip']));
- }
-
- if (isset($_GET['action']) && $_GET['action'] == 'toAllow') {
- $this->addToAllowlist(base64_decode($_GET['ip']));
- }
- $blockedIps = $this->getBlockedIps();
- echo '
'. __('Blocked IP addresses', BDP_LV_PLUGIN_SLUG) .'
';
-
- if (strlen($blockedIps) == 0) {
- echo '
';
- echo __('There are no ip addresses blocked.', BDP_LV_PLUGIN_SLUG);
- echo '
';
- } else { ?>
-
-
-
-
-
-
-
- = __('IP address', BDP_LV_PLUGIN_SLUG); ?> |
- = __('Blocked until', BDP_LV_PLUGIN_SLUG); ?> |
- = __('Actions', BDP_LV_PLUGIN_SLUG); ?> |
-
-
-
- = $blockedIps ?>
-
-
-
-