Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads
<?php include $_SERVER['DOCUMENT_ROOT'] . "/inc/data.php"; ?>
<?php
Session::CheckLogin();
?>
<!DOCTYPE html>
<html lang="nl">
<?php include $_SERVER['DOCUMENT_ROOT'] . "/inc/site/head.php"; ?>
<body>
<?php include $_SERVER['DOCUMENT_ROOT'] . "/inc/site/header.php"; ?>
<div class="page-center">
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$email = $_POST['email'];
$password = $_POST['password'];
if ($auth->checkEmailExists($email)) {
$auth->login($email, $password);
} else {
echo 'email dosnt exist';
}
}
?>
<form method="post">
<label for="email">email</label>
<input name="email" type="email" placeholder="example@gmail.com"> <br>
<label for="password">Password</label>
<input name="password" type="password" placeholder="password">
<button type="submit">login</button>
<a href="/register.php">register</a>
</form>
</div>
</body>
</html>