<?php
  session_start();
  include '../database/connect.php';
  if (isset($_SESSION['user_id'])) {
      echo "<script>window.location.href = '../admin/index.php'</script>";
  }
?>
<?php
  $server_url = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
 ?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="apple-touch-icon" sizes="76x76" href="login_assets/img/apple-icon.png">
  <link rel="stylesheet" type="text/css" href="../assets/styles/bootstrap.css">
  <link rel="stylesheet" type="text/css" href="../assets/fonts/css/fontawesome-all.min.css">
  <link rel="stylesheet" href="../others/lineawesome/css/line-awesome.min.css">
  <title><?php echo $website_name ?> - Admin login</title>
  <!--     Fonts and icons     -->
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />
  <!-- Nucleo Icons -->
  <link href="login_assets/css/nucleo-icons.css" rel="stylesheet" />
  <link href="login_assets/css/nucleo-svg.css" rel="stylesheet" />
  <!-- Font Awesome Icons -->
  <script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
  <link href="login_assets/css/nucleo-svg.css" rel="stylesheet" />
  <!-- CSS Files -->
  <link id="pagestyle" href="login_assets/css/argon-dashboard.css?v=2.0.4" rel="stylesheet" />
</head>

<body class="">
  <!-- Navbar -->
  <nav class="navbar navbar-expand-lg position-absolute top-0 z-index-3 w-100 shadow-none my-3 navbar-transparent mt-4">
    <div class="container">
      <a class="navbar-brand font-weight-bolder ms-lg-0 ms-3 text-white" href="<?php echo $website_url ?>">
        <img src="../images/<?php echo $logo_img ?>" alt="" style="max-width:10%; background:#fff; padding:1%; border-radius:5px;"> <?php echo strtoupper($name); ?>
      </a>
    </div>
  </nav>
  <!-- End Navbar -->
