-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminAuth.php
42 lines (39 loc) · 1.57 KB
/
adminAuth.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();
include "auth.php";
if (authMain() == "admin") {
authCheck();
} else {
die("You do not have the adequate credentials to view this page.");
}
?>
<title>TR37 Tree Lot | Admin Browser</title>
<link rel="icon" href="favicon.png">
<style>
body {text-align:center;font-family:"Arial";}
</style>
<body style="text-align:center;">
<a><b>TR37 Admin Authorized Pages</b></a><br />
<a href="adminAuth.php?signup">Sign up for new shifts</a><br />
<a href="adminAuth.php?comment">View or add shift comments</a><br />
<a href="adminAuth.php?reset">Reset & backup shifts</a><br />
<a href="adminAuth.php?view">View past years' shifts</a><br />
<a href="adminAuth.php?delete">Manage shift deletions</a><br />
<a href="adminAuth.php?preferences">Set website preferences</a><br />
<hr />
<?php
if (isset($_GET["reset"])) {
echo '<iframe width="100%" height="84%"src="reset.php" style="border:0;"></iframe>';
} else if (isset($_GET["view"])) {
echo '<iframe width="100%" height="84%"src="archive/index.php" style="border:0;"></iframe>';
} else if (isset($_GET["signup"])) {
echo '<iframe width="100%" height="84%"src="index.php?admin" style="border:0;"></iframe>';
} else if (isset($_GET["comment"])) {
echo '<iframe width="100%" height="84%"src="comment/index.php?admin" style="border:0;"></iframe>';
} else if (isset($_GET["delete"])) {
echo '<iframe width="100%" height="84%"src="delete/requests.php?admin" style="border:0;"></iframe>';
} else if (isset($_GET["preferences"])) {
echo '<iframe width="100%" height="84%"src="preferences.php" style="border:0;"></iframe>';
}
?>
</body>