-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.php
63 lines (47 loc) · 1.27 KB
/
home.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
52
53
54
55
56
57
58
59
60
61
62
63
<?php
//cek session
session_start();
if (empty($_SESSION['loggedin'])) {
header("Location: ./");
die();
} elseif ($_SESSION['level'] === 'Administrator') {
header("Location: ./dashboard.php");
} else {
?>
<!DOCTYPE html>
<html lang="en">
<?php include('_partials/head.php'); ?>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php include('_partials/navbar.php'); ?>
<?php include('_partials/sidebar.php'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Home
<small>
</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="callout callout-info">
<h4>Hello <?=$_SESSION['nama_user'] . "!";?></h4>
Anda login sebagai <?=$_SESSION['level'];?>.
</div>
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php include('_partials/footer.php'); ?>
</div>
<!-- ./wrapper -->
<?php include('_partials/modal.php'); ?>
<?php include('_partials/js.php'); ?>
</body>
</html>
<?php
}
?>