-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.php
More file actions
57 lines (57 loc) · 1.41 KB
/
dashboard.php
File metadata and controls
57 lines (57 loc) · 1.41 KB
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
52
53
54
55
56
57
<?php
session_start();
$msg='';
if(!$_SESSION['logged'])
{
header("Location: index.php");
exit;
}
else
{
$user_name = $_SESSION['user_name'];
$msg = "<div class=\"alert alert-success alert-dismissible fade show\" role=\"alert\" align=\"center\"> Welcome <strong> ".$user_name." </strong> <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button></div>";
}
if(isset($_POST['logout']))
{
header("Location: logout.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
User Authentication
</title>
<link href="css/style_register.css" rel='stylesheet' type='text/css' />
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div class="main">
<div class="header" >
<h1>User Authentication</h1>
</div>
<p> User details matched with the registered credentails </p>
<form method="POST" name="form">
<div class="container">
<div class="row">
<div class="col-sm-5"></div>
<div class="col-sm-4">
<input type="submit" class="btn btn-info btn-lg" value="Sign Out" name="logout">
<div class="clear"> </div>
</div>
</div>
</div>
</form>
<div class="clear"> </div>
</div>
<br />
<div class="container">
<div class="row">
<?php echo $msg; ?>
</div>
</div>
</body>
</html>