<?php
if(!defined('ANTIBOT')) die('access denied');
$form_user = isset($_GET['form_user']) ? trim(strip_tags($_GET['form_user'])) : ''; // email
$form_pass = isset($_GET['form_pass']) ? trim(strip_tags($_GET['form_pass'])) : ''; // pass
?>
<!doctype html>
<html lang="<?php echo abTranslate('en'); ?>">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>AntiBot Admin Panel</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
<meta name="theme-color" content="#563d7c">
    <style>
html,
body {
  height: 100%;
}

body {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #f5f5f5;
}

.form-signin {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  margin: auto;
}

.form-signin .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
}
.form-signin .form-control:focus {
  z-index: 2;
}
.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
  margin-top: 13px;
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
    </style>


  </head>
  <body class="text-center">
    
<form class="form-signin" action="" method="post">
<span class="text-danger"><?php echo $error_msg; ?></span>
  <h1 class="h3 mb-3 font-weight-normal">AntiBot Admin Panel</h1>
  <label for="inputEmail" class="sr-only">Email address</label>
  <input value="<?php echo $form_user; ?>" name="auth_user" type="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus>
  <label for="inputPassword" class="sr-only">Password</label>
  <input value="<?php echo $form_pass; ?>" name="auth_pass" type="password" id="inputPassword" class="form-control" placeholder="Password" required>
  <?php if ($ab_config['secondpass'] != '') { ?>
  <label for="secondpass" class="sr-only">Second Password</label>
  <input name="auth_second_pass" type="text" autocomplete="off" id="secondpass" class="form-control" placeholder="Second Password (<?php echo abTranslate('if specified'); ?>)">  <br />
  <?php } ?>
  <button class="btn btn-lg btn-primary btn-block" type="submit" name="auth_post"><?php echo abTranslate('Log in'); ?></button>
  <p><br /><small class="mt-5 mb-3 text-muted"><a href="https://antibot.cloud/" target="_blank" rel="noopener noreferrer">Powered by AntiBot Cloud</a> © 2017-2023</small></p>
</form>


    
  </body>
</html>
