<?php
echo '<div class="health-check-body health-check-debug-tab hide-if-no-js">';
echo '<h2>Erweiterte Sicherheitseinstellungen</h2>';
if (isset($_POST['submit'])) {
    echo '<div id="bdp_success">Die Einstellungen wurden gespeichert.</div>';
    update_option('whl_page', $_POST['login_url']);
}
?>

<form method="post" action="admin.php?page=bdp-kompass%2Fmodules%2Findex.php&loadmodule=security">
    <div class="bdp_security_outer">
        <table>
                <tr style="vertical-align: top;">
                    <td style="font-weight: bold; padding-right: 10px;"><br />Login-URL:</td>
                    <td style="vertical-align: top;">
                        <label>
                            <?php echo get_site_url(); ?>/</label><input style="width: 100px;" class="long_text" type="text" name="login_url" id="login_url" required
                               value = "<?php echo get_option('whl_page', 'bdp_login'); ?>"
                        >/<br />
                        <label style="font-weight: normal; color: #a0a0a0; font-style: italic">
                            Du erreichst das Dashboard deiner Seite zukünftig nur noch unter dieser URL
                        </label>
                    </td>
                </tr>
            </table><br /><br />

    <input class="button" type="submit" name="submit" value="Einstellungen speichern">
    </div>
</form>

</div>