-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
62 lines (49 loc) · 1.86 KB
/
header.php
File metadata and controls
62 lines (49 loc) · 1.86 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
58
59
60
61
62
<?php
header("refresh:3600;url=login.php");
session_cache_limiter('private_no_expire');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>SCRP Admin Panel</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<script src="https://use.fontawesome.com/8065b95ffc.js"></script>
<link href="css/simple-sidebar.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
</head>
<body>
<div id="wrapper">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand">
<a href="#">
SCRP Admin Panel
</a>
</li>
<?php
//session_start();
if(!isset($_SESSION['user_type'])){
require_once('navs/guest_nav.php');
}else{
switch($_SESSION['user_type']){
case "a":
require_once('navs/admin_nav.php');
break;
case "m":
require_once('navs/mgmt_nav.php');
break;
}
}
?>
</ul>
</div>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper"><a href="#menu-toggle" class="btn btn-secondary hamburger-menu" id="menu-toggle"><i class="fa fa-bars" aria-hidden="true"></i></a>