forked from TheCJGCJG/CJFreedom-Panel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaps.php
56 lines (41 loc) · 1.26 KB
/
maps.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
<?php
$PAGE['title'] = "Maps";
include 'inc/config.php';
include 'inc/sessions.php';
include 'inc/functions.php';
if ($_SESSION['user']['rank'] < 3) {
die('You must be a Senior Admin.');
}
?>
<!DOCTYPE html>
<html>
<head>
<?php include 'pageparts/head.php'; ?>
</head>
<body>
<div id="wrapper">
<?php include 'pageparts/nav.php'; ?>
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">CJFreedom Panel <small>Maps</small></h1> <span class="pull-right">Instant Reset <input type="checkbox" id="instant" /></span>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<?php
// Create the wipe flatlands tab
echo createMapTab("Wipe Flatlands", "images/maps/flatlands.png", "wipeflatlands", "Wipe Flatlands", "danger");
//Query time
$result = sqlQuery("SELECT * FROM cjf_panel_maps");
while($row = mysqli_fetch_array($result)) {
echo createMapTab($row['mapname'], $row['map_image_href'], $row['map_folder_location'], "Restore " . $row['mapname'], "danger");
}
?>
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<?php include 'pageparts/footerjs.php'; ?>
</body>
</html>