This repository has been archived by the owner on Jun 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
51 lines (47 loc) · 1.59 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
session_start();
if (isset($_SESSION['role'])) {
if (strcmp($_SESSION['role'], "student") == 0 && isset($_SESSION['code'])) {
header("Location: student_home.php");
die();
} else if (strcmp($_SESSION['role'], "professor") == 0 && isset($_SESSION['username']) && isset($_SESSION['id'])) {
header("Location: teacher_home.php");
die();
}
}
?>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<title>Testovanie</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/dashboard.css" rel="stylesheet">
<script src="js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<link href="css/custom-style/index-style.css" rel="stylesheet">
</head>
<body>
<header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
<a class="navbar-brand col-md-3 col-lg-2 me-0 px-3" href="">Prihlásenie</a>
</header>
<div class="container-fluid">
<div class="row">
<main class="col px-md-4">
<div class="flex-row d-flex justify-content-center">
<script>
localStorage.clear();
</script>
<?php
include __DIR__ . "/partials/page-login.php";
?>
</div>
</main>
</div>
</div>
</body>
</html>