-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
40 lines (35 loc) 路 764 Bytes
/
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
<?php
session_start();
require_once "files/config.php";
require_once "files/inc.php";
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Login System</title>
</head>
<body>
<?php include "files/navbar.php"?>
<?php
if(isset($_SESSION["email"]))
{
?>
<div class="alert alert-success mt-2" role="alert">
<?php echo "Welcome:"." ".$username;?>
</div>
<?php
}
else
{
?>
<div class="alert alert-success mt-2" role="alert">
Not logged in. Please login. <a href="account.php">Login & Register</a>
</div>
<?php
}
?>
</body>
</html>