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

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>RABBIT COMPLETED</title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
    <link href="https://fonts.googleapis.com/css?family=Poppins:400,600&display=swap" rel="stylesheet">
    <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css'>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.33.1/sweetalert2.min.css" rel="stylesheet">
    <link rel="stylesheet" href="<?= base_url() ?>RABBIT/Assets/css/rb.install.style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
    <link rel="shortcut icon" href="<?= base_url() ?>RABBIT/OFC/favicons/favicon.ico" type="image/x-icon">
</head>

<body class="bg-dark">
    <header class="header mt-2 text-center">
        <img style="margin-top:50px;" src="<?= base_url()?>RABBIT/OFC/logo-r.png" alt="" width="150">
    </header>
    <div style="width:100%; max-width:700px;" class="content bg-dark">
        <div class="content__inner bg-dark">
            <div class="container overflow-hidden">
                <div class="multisteps-form bg-dark">
                    <div style="border:none; outline:none;" class="row">
                        <div class="col-12 col-lg-8 m-auto">
                            <form class="multisteps-form__form">
                                <div class="multisteps-form__panel p-4 bg-transparent js-active" data-animation="slideHorz">
                                    <h2 class="multisteps-form__title" style="text-align:center; color:green; margin-top:-40px;">COMPLETED</h2>
                                    <p class="text-center text-white" style="font-size:14px; text-transform:uppercase;">Your configuration has been saved to the system.</p>
                                    <div class="multisteps-form__content bg-dark mt-2">
                                        <h5 class="text-center text-danger">ADMIN ACCESS</h5>
                                        <code>
                                            <div class="form-row text-center">
                                                <div class="col text-dark">
                                                    <input type="text" value="<?php echo _config('ADMINACCESS') ?>" id="mytoken" hidden><button style="border:2px solid white; border-radius:25px;" title="Click to copy" class="btn btn-dark d-block w-100 p-3 text-white" onclick="copytoken()"><?php echo _config('ADMINACCESS')?></button><br>
                                                    <hr style="border:1px solid white;" />
                                                    <br>
                                                    <div class="center"><a style="border:2px solid yellow; border-radius:25px;" class="btn btn-dark p-2 d-block w-100 text-warning" href="<?php echo @$_COOKIE["panel"] ? $_COOKIE["panel"] : '#'; ?>" title="Login to Admin Panel" target="_blank">GO TO ADMIN PANEL</a></div>
                                                    <hr />
                                                </div><br>
                                            </div>
                                            <div class="text-center mt-4">
                                            <p class="text-white">Powered by <a style="text-decoration: none; font-weight: bold;" class="text-danger" href="#"> Rabbit 🐰</a> <br>
                                            &copy; 2025 - All Right Reserved </p>
                                            </div>
                                            <p class="text-center" hidden><a style="color:red; font-family:Calibri; font-size:16px; text-decoration:none;" href="#"> <?php echo @$_COOKIE["copyright"] ? $_COOKIE["copyright"] : 'HIDDEN'; ?></a></p>
                                        </code>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    
    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/js/all.min.js"></script>
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.33.1/sweetalert2.min.js"></script>
    <script src="<?= base_url() ?>RABBIT/Assets/js/rb.install.script.js"></script>
    <?php if (@$_SESSION['sukses']) { ?>
        <script>
            <?php echo $_SESSION['sukses']; ?>
        </script>
    <?php unset($_SESSION['sukses']);
    } ?>
    <script>
        function copytoken() {
            var copyText = document.getElementById("mytoken");
            copyText.select();
            copyText.setSelectionRange(0, 99999);
            navigator.clipboard.writeText(copyText.value);
            alert("Copied success: " + copyText.value);
        }
    </script>
</body>

</html>