forked from MallombasiMattawang/antrian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
system.php
42 lines (35 loc) · 948 Bytes
/
system.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
<?php
session_start();
error_reporting(0);
include "timeout.php";
if($_SESSION[login]==1){
if(!cek_login()){
$_SESSION[login] = 0;
}
}
if($_SESSION[login]==0){
header('location:logout.php');
}
else{
if (empty($_SESSION['username']) AND empty($_SESSION['passuser']) AND $_SESSION['login']==0){
echo "<link href='style.css' rel='stylesheet' type='text/css'>
<center>Untuk mengakses modul, Anda harus login <br>";
echo "<a href=index.php><b>LOGIN</b></a></center>";
}
else{
include('headerSystem.php');
?>
<div id="main-container">
<div id="main-content" class="main-content container-fluid">
<?php
include "root/content_admin.php";
?>
</div>
<!-- // main-content -->
</div>
<!-- // main-container -->
<?php
}
}
?>
<?php include('footer.php'); ?>