<?php
defined("ALLOW") or exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>RABBIT ANTIBOT</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta content="" name="keywords">
    <meta content="" name="description">
    <link rel="shortcut icon" href="<?= base_url() ?>RABBIT/OFC/favicons/favicon.ico" type="image/x-icon">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto:wght@500;700&display=swap" rel="stylesheet"> 
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
    <link href="<?= base_url() ?>RABBIT/Views/admin/lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
    <link href="<?= base_url() ?>RABBIT/Views/admin/lib/tempusdominus/css/tempusdominus-bootstrap-4.min.css" rel="stylesheet" />
    <link href="<?= base_url() ?>RABBIT/Views/admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?= base_url() ?>RABBIT/Views/admin/css/fxc.css" rel="stylesheet">
</head>

<body class="bg-black">
    <div class="container-fluid position-relative d-flex p-0">
        <!-- Spinner Start -->
        <div id="spinner" class="show bg-transparent position-fixed translate-middle w-100 vh-100 top-50 start-50 d-flex align-items-center justify-content-center">
            <div class="spinner-border text-dark" style="width: 3rem; height: 3rem;" role="status">
                <span class="sr-only">Loading...</span>
            </div>
        </div>

        <?php include "sidebar.php"; ?>
        <div class="card content bg-dark">
            <?php include "navbar.php"; ?>
            
     <div class="container d-flex justify-content-center align-items-center mt-5">
                <div style="width:500px; box-shadow: 0 0 0 3px gray; border-radius:15px;" class="card bg-dark">
                   <div class="row m-3">
                        <h4 class="text-center mt-2"><strong class="text-warning"><i class="bi bi-gear-wide-connected me-1 text-white"></i> ANTIBOT</strong></h4>
                            <div class="col-md-12">
                                <form action="/ap/admin/update" method="post">
                                    <div class="text-center">
                                        <input style="border:2px solid white; border-radius:15px;" class="form-control p-2 bg-dark text-white" type="text" name="antibot" value="<?php echo _antibot('KEY'); ?>" placeholder="APIKEY ANTIBOT">
                                    </div>
                                    <hr style="border:2px solid yellow">
                                    <div class="mt-3 mb-3">
                                        <button style="border: 2px solid green; padding:12px; border-radius: 25px; font-weight:bold;" class="btn btn-dark d-block w-100 text-white" type="submit" name="updateantibot">SUBMIT</button>
                                    </div>
                                </form>
                            </div> 
                        </div>  
                    </div>
                </div>
        </div>
    </div>
    <!-- JavaScript Libraries -->
   <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Views/admin/lib/chart/chart.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Views/admin/lib/easing/easing.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Views/admin/lib/waypoints/waypoints.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Views/admin/lib/owlcarousel/owl.carousel.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Views/admin/lib/tempusdominus/js/moment.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Views/admin/lib/tempusdominus/js/moment-timezone.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Views/admin/lib/tempusdominus/js/tempusdominus-bootstrap-4.min.js"></script>
    
    <script src="<?= base_url() ?>RABBIT/Assets/js/core/jquery.3.2.1.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/plugin/jquery-ui-1.12.1.custom/jquery-ui.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/core/popper.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/core/bootstrap.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/plugin/chartist/chartist.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/plugin/chartist/plugin/chartist-plugin-tooltip.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/plugin/bootstrap-toggle/bootstrap-toggle.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/plugin/jquery-mapael/jquery.mapael.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/plugin/jquery-mapael/maps/world_countries.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/plugin/chart-circle/circles.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/plugin/jquery-scrollbar/jquery.scrollbar.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/ready.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/demo.js"></script>

    <!-- Template Javascript -->
    <script src="<?= base_url() ?>RABBIT/Views/admin/js/main.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"></script>
    
</body>
<?php if (@$_SESSION['sukses']) { ?>
<script>
    <?php echo $_SESSION['sukses']; ?>
</script>
<?php unset($_SESSION['sukses']);
} ?>

</html>