-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
72 lines (54 loc) · 1.43 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
include 'header.php';
?>
<div class="pageContent">
<div id="main">
<div class="container">
<h1></h1>
</div>
<div class="container">
<?if (isset($_SESSION['id'])) {
if (isset($_GET['what'])) {
if (isset($_GET['step'])) {
echo file_select($_GET['what'], $_GET['step']);
}
elseif (isset($_GET['page'])) {
echo file_select($_GET['what'], $_GET['page']);
}
else {
echo file_select('', '');
}
}
else {
?>
<h3>Please Select from one of the options below</h3>
<br><br>
<h1>
<center>
<table border><tr><td>
<a href="/page/reports">Reports</a></td><td>
<a href="/page/checkin">CheckIn</a></td>
</tr>
</table>
</center>
</h1>
<?php
if (isset($_SESSION['USER_ID_ADMIN_RES']) and $_SESSION['USER_ID_ADMIN_RES'] == true) {
echo <<<END
<h3>Administration</h3><br>
<button type="button" onClick="parent.location='add-admin.php'">Add Assets</button><br>
<button type="button" onClick="parent.location='reservations-admin.php'">Manage Reservations</button><br>
END;
}
}
}
else {
?> <p>Welcome to the Can Management System please login using the above panel</p>
<?}?>
</div>
<div class="container tutorial-info">
This System was Designed by <a href="http://rileychilds.net">Riley Childs</a> and is Licensed under the GNU GPL</div>
</div>
</div>
</body>
</html>