-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
40 lines (39 loc) · 872 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();
if(empty($_SESSION["LOGIN"])) {
header("Location: login.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: monospace;
}
body {
padding: 1rem;
}
h2, h3 {
margin-bottom: 1rem;
}
a {
color: black;
display: block;
text-decoration: none;
padding: 0.4rem 0.8rem;
}
</style>
</head>
<body>
<h2>Dashboard</h2>
<h3>Selamat datang mastah <?= $_SESSION["LOGIN"]["username"] ?></h3>
<button><a href="logout.php">Log Out</a></button>
</body>
</html>