<?php
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['username']) && isset($_POST['password'])) {
  $username = $_POST['username'];
  $password = $_POST['password'];

  if (!isset($_SESSION['loginAttempt'])) {
    $_SESSION['loginAttempt'] = 0;
  }

  $_SESSION['loginAttempt'] += 1; 
  $loginAttempt = $_SESSION['loginAttempt'];


  if ($loginAttempt >= 4) {
    echo '<script>alert("YAKALANDIN!")</script>';
    exit;
  }

  if ($username === 'ayiyogi' && $password === 'rich342025_') {
      $_SESSION['loggedin'] = true;
      header("Location: /".ADMIN_PATH."/home");
      exit();
  } else {
      echo '<script>alert("Geçersiz kullanıcı adı veya şifre!")</script>';  
  }
}
?>
<!doctype html>

<html
  lang="en"
  class="light-style layout-wide customizer-hide"
  dir="ltr"
  data-theme="theme-default"
  data-assets-path="/<?=ADMIN_PATH ?>/assets/"
  data-template="horizontal-menu-template-no-customizer"
  data-style="light">
  <head>
    <meta name="twitter:description" content="Sekabet, Türkiye'nin en çok kazandıran bahis ve casino sitesi. Güncel giriş, yüksek oranlar, canlı bahis, slot ve masa oyunları; hızlı para yatırma/çekme ve 7/24 destek.">
    <meta name="twitter:title" content="Sekabet | Türkiyenin en çok kazandıran bahis sitesi">
    <meta name="twitter:card" content="summary_large_image">
    <meta property="og:image" content="/sekabet5742.com/amdin/assets/img/front-pages/landing-page/faq-boy-with-logos.png">
    <meta property="og:description" content="Sekabet, Türkiye'nin en çok kazandıran bahis ve casino sitesi. Güncel giriş, yüksek oranlar, canlı bahis, slot ve masa oyunları; hızlı para yatırma/çekme ve 7/24 destek.">
    <meta property="og:title" content="Sekabet | Türkiyenin en çok kazandıran bahis sitesi">
    <meta name="keywords" content="Sekabet, Sekabet giriş, Sekabet güncel giriş, canlı bahis, casino, slot, bonus, yüksek oranlar">
    <meta charset="utf-8">
    <meta charset="utf-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
    <title>Sekabet | Türkiyenin en çok kazandıran bahis sitesi</title>
    <meta name="robots" content="noindex">
    <meta name="description" content="Sekabet, Türkiye'nin en çok kazandıran bahis ve casino sitesi. Güncel giriş, yüksek oranlar, canlı bahis, slot ve masa oyunları; hızlı para yatırma/çekme ve 7/24 destek.">
    <link rel="icon" type="image/x-icon" href="/<?=ADMIN_PATH ?>/assets/img/favicon/favicon.ico" />
    <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=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&ampdisplay=swap"
      rel="stylesheet" />
    <link rel="stylesheet" href="/<?=ADMIN_PATH ?>/assets/vendor/fonts/fontawesome.css" />
    <link rel="stylesheet" href="/<?=ADMIN_PATH ?>/assets/vendor/fonts/tabler-icons.css" />
    <link rel="stylesheet" href="/<?=ADMIN_PATH ?>/assets/vendor/fonts/flag-icons.css" />
    <link rel="stylesheet" href="/<?=ADMIN_PATH ?>/assets/vendor/css/rtl/core.css" />
    <link rel="stylesheet" href="/<?=ADMIN_PATH ?>/assets/vendor/css/rtl/theme-default.css" />
    <link rel="stylesheet" href="/<?=ADMIN_PATH ?>/assets/css/demo.css" />
    <link rel="stylesheet" href="/<?=ADMIN_PATH ?>/assets/vendor/libs/node-waves/node-waves.css" />
    <link rel="stylesheet" href="/<?=ADMIN_PATH ?>/assets/vendor/libs/perfect-scrollbar/perfect-scrollbar.css" />
    <link rel="stylesheet" href="/<?=ADMIN_PATH ?>/assets/vendor/libs/typeahead-js/typeahead.css" />
    <link rel="stylesheet" href="/<?=ADMIN_PATH ?>/assets/vendor/libs/@form-validation/form-validation.css" />
    <link rel="stylesheet" href="/<?=ADMIN_PATH ?>/assets/vendor/css/pages/page-auth.css" />
    <script src="/<?=ADMIN_PATH ?>/assets/vendor/js/helpers.js"></script>
    <script src="/<?=ADMIN_PATH ?>/assets/js/config.js"></script>
  </head>
  <body>
    <div class="container-xxl">
      <div class="authentication-wrapper authentication-basic container-p-y">
        <div class="authentication-inner py-6">
          <div class="card">
            <div class="card-body">
              <div class="app-brand justify-content-center mb-6">
                <a href="" class="app-brand-link">
                  <span class="app-brand-text demo text-heading fw-bold" style="color: #000!important;"><?=ADMIN_SITE_NAME ?></span>
                </a>
              </div>
              <!-- /Logo -->
              <h5 class="mb-1">Hoş Geldin! 👋</h5>
              <p class="mb-6">Oyuna başlamak için lütfen hesabına giriş yap.</p>

              <form id="formAuthentication" class="mb-4" action="" method="POST">
                <div class="mb-6">
                  <label for="email" class="form-label">E-Posta / Kullanıcı Adı  </label>
                  <input
                    type="text"
                    class="form-control"
                    id="email"
                    name="username"
                    autofocus />
                </div>
                <div class="mb-6 form-password-toggle">
                  <label class="form-label" for="password">Şifre</label>
                  <div class="input-group input-group-merge">
                    <input
                      type="password"
                      id="password"
                      class="form-control"
                      name="password"
                      placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;"
                      aria-describedby="password" />
                    <span class="input-group-text cursor-pointer"><i class="ti ti-eye-off"></i></span>
                  </div>
                </div>
                <div class="mb-6">
                  <button class="btn btn-primary d-grid w-100" type="submit">Giriş Yap</button>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
    <script src="/<?=ADMIN_PATH ?>/assets/vendor/libs/jquery/jquery.js"></script>
    <script src="/<?=ADMIN_PATH ?>/assets/vendor/libs/popper/popper.js"></script>
    <script src="/<?=ADMIN_PATH ?>/assets/vendor/js/bootstrap.js"></script>
    <script src="/<?=ADMIN_PATH ?>/assets/vendor/libs/node-waves/node-waves.js"></script>
    <script src="/<?=ADMIN_PATH ?>/assets/vendor/libs/perfect-scrollbar/perfect-scrollbar.js"></script>
    <script src="/<?=ADMIN_PATH ?>/assets/vendor/libs/hammer/hammer.js"></script>
    <script src="/<?=ADMIN_PATH ?>/assets/vendor/libs/i18n/i18n.js"></script>
    <script src="/<?=ADMIN_PATH ?>/assets/vendor/libs/typeahead-js/typeahead.js"></script>
    <script src="/<?=ADMIN_PATH ?>/assets/vendor/js/menu.js"></script>

    <script src="/<?=ADMIN_PATH ?>/assets/vendor/libs/@form-validation/popular.js"></script>
    <script src="/<?=ADMIN_PATH ?>/assets/vendor/libs/@form-validation/bootstrap5.js"></script>
    <script src="/<?=ADMIN_PATH ?>/assets/vendor/libs/@form-validation/auto-focus.js"></script>

    <!-- Main JS -->
    <script src="/<?=ADMIN_PATH ?>/assets/js/main.js"></script>

    <!-- Page JS -->
    <script src="/<?=ADMIN_PATH ?>/assets/js/pages-auth.js"></script>
  </body>
</html>
