$blockedUntil) {
            $ips .= '
' .
                        '| ' . $ip . ' | ' .
                        '' . date('d.m.Y H:i', $blockedUntil) . ' Uhr | ' .
                        '
                            Freigeben | ' .
                    '
';
        };
        return $ips;
    }
    public function limit_login_option_page() {
        global $errors;
        $showMessage = null;
        if (isset($_POST['update_options'])) {
            update_settings($_POST);
            $showMessage = 'Die Einstellungen wurden gespeichert';
        }
        if (isset($_GET['action']) && $_GET['action'] == 'release') {
            $showMessage = 'Die IP-Adresse wurde freigegeben.';
        }
        if(isset($_POST['save_kompass_balist_list_type'])) {
            $showMessage = 'Die Liste wurde gespeichert.';
        }
        if (null !== $showMessage && $errors === false) {
            echo '';
            echo $showMessage;
            echo '
';
        }
        if ($errors) {
            echo '';
            echo 'Beim Durchführen der Aktion ist ein Fehler aufgetreten.';
            echo '
';
        }
        $tab = isset($_GET['tab']) ? $_GET['tab'] : 'tab1';
        ?>
        
            Protect Login - Einstellungen
            
            = kompass_print_tab_header($tab); ?>
            
                ';
                        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']));
                        }
                        $blockedIps = $this->getBlockedIps();
                        ?>
                        Gesperrte IPs
                        ';
                                echo 'Derzeit sind keine Adressen gesperrt.';
                                echo '';
                            } else { ?>
                                
                                    
                                        | IP | 
                                        Gesperrt bis | 
                                        Aktion | 
                                    
                                    = $blockedIps ?>