-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
37 lines (37 loc) · 1.28 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
require_once(__DIR__ . "/classes/LoginAudit.php");
require_once(__DIR__ . "/classes/controllers/LoginAuditController.php");
session_start();
?>
<!DOCTYPE html>
<html lang="sk">
<head>
<title>Autentifikácia</title>
<meta charset="UTF-8">
<meta name="author" content="Juraj Lapčák">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link href="/authentication/assets/css/style.css" rel="stylesheet">
<script src="/authentication/assets/js/script.js"></script>
</head>
<body>
<div class="container-fluid">
<?php include("./partials/header.php"); ?>
<div class="row mt-5">
<div class="col-lg ">
<main class="site-content">
<?php
if (isset($_SESSION["email"])) {
include __DIR__ . "/partials/page-user.php";
} else {
include __DIR__ . "/partials/page-login.php";
}
?>
</main>
</div>
</div>
</div>
<?php include("./partials/footer.php"); ?>
</body>
</html>