-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
52 lines (43 loc) · 1.64 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
52
<?php
session_start();
if(!isset($_SESSION['username']) || !isset($_SESSION['role'])):
header("Location:".$base_url."login.php");
else:
include('config/header.php');
session_timeout();
?>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<?php include "config/page.php"; ?>
<?php include "config/sidebar.php"; ?>
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<?php include "config/topbar.php"; ?>
<?php if(isset($_SESSION['success'])):?>
<div class="flash-data-berhasil" data-berhasil="<?= $_SESSION['success']; ?>"></div>
<?php endif; unset($_SESSION['success']);?>
<?php if(isset($_SESSION['error'])):?>
<div class="flash-data-gagal" data-gagal="<?= $_SESSION['error']; ?>"></div>
<?php endif; unset($_SESSION['error']);?>
<?php include ($views); ?>
</div>
<!-- End of Main Content -->
<!-- Footer -->
<footer class="sticky-footer bg-white">
<div class="container my-auto">
<div class="copyright text-center my-auto">
<span>Copyright © Terapi Ponsel <?= date('Y'); ?>
</span>
</div>
</div>
</footer>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<?php include "config/footer.php"; ?>
<?php endif;?>