-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsidebar.php
81 lines (78 loc) · 3.39 KB
/
sidebar.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<div id="sidebar">
<!-- Widget Area -->
<div id="widgets">
<!-- Main menu -->
<nav id="mainmenu">
<ul>
<?php if(isLoggedIn()) {
$off = hasPerm("officer");
$dev = hasPerm("all");
$cmd = hasPerm("pdcmd");
$dtu = hasPerm("dtu");?><li><a href="index.php" class="active">Home</a></li><?php } else {?>
<li><a href="login.php" class="active">Login</a></li><?php }?>
<?php
require_once("php_includes/base.inc.php");
if($off) {
?>
<li><a href="addBolo.php">BOLO Dashboard</a></li>
<li><a href="freq.php">Frequencies & Threat</a></li>
<li><a href="#">Records</a>
<ul>
<li><a href="crime.php">Criminal Database</a></li>
<li><a href="traffic.php">Infractions</a></li>
<li><a href="doc.php">DOC Panel</a></li>
<?php if(hasPerm("doj")) { ?>
<li><a href="expungement.php">Expungements</a></li>
<?php } ?>
</ul>
</li>
<?php
}
if($off) {
?>
<li><a href="#">Useful Information</a>
<ul>
<li><a href="roster.php">Police Roster</a></li>
<li><a href="arrests.php">Recent Arrests</a></li>
<li><a href="citations.php">Recent Citations</a></li>
<li><a href="info.php">Useful Links</a></li>
</ul>
</li>
<li><a href="#">Warrants</a>
<ul>
<li><a href="wname.php">Search/Add Warrants</a></li>
<li><a href="warrants.php">View All Warrants</a></li>
</ul>
</li>
<?php
}
if($off && $cmd) {
?>
<li><a href="#">Command Tools</a>
<ul>
<li><a href="dashboard.php">Dashboard</a></li>
<li><a href="verify.php">User Requests</a></li>
<li><a href="control.php">Officer Management</a></li>
</ul>
</li>
<?php
}
if($dev) {
?>
<li><a href="#">Admin Tools</a>
<ul>
<li><a href="admin.php">Database Settings</a></li>
<li><a href="all.php">All Arrests</a></li>
<li><a href="passhasher.php">Password Hasher</a></li>
</ul>
</li>
<?php
}
?>
<?php if(isLoggedIn()) { ?>
<li><a href="settings.php">User Settings</a></li>
<li><a href="changes.php">Changelog</a></li>
<li><a href="logout.php">Logout</a></li><?php } ?>
</ul>
</nav>
</div>