-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
86 lines (73 loc) · 2.34 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
$page = "Dashboard";
$rootPath = ".";
require("header.php");
?>
<div class="content-wrapper">
<section class="content-header">
<h1>
Dashboard
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-green"><i class="fa fa-clock-o"></i></span>
<div class="info-box-content">
<span class="info-box-text">Uptime</span>
<span class="info-box-number" id="serverUptime"><i class="fa fa-refresh fa-spin"></i></span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<!-- /.col -->
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-aqua"><i class="fa fa-users"></i></span>
<div class="info-box-content">
<span class="info-box-text">Players Online</span>
<span class="info-box-number" id="playerCount"><i class="fa fa-refresh fa-spin"></i></span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<!-- /.col -->
<!-- fix for small devices only -->
<div class="clearfix visible-sm-block"></div>
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-red"><i class="fa fa-ticket"></i></span>
<div class="info-box-content">
<span class="info-box-text">New Tickets</span>
<span class="info-box-number" id="ticketCount"><i class="fa fa-refresh fa-spin"></i></span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<!-- /.col -->
</div>
</section>
</div>
<script>
$(document).ready(function() {
$.ajax({
type: 'POST',
url: 'dashboard.php',
data: {},
dataType: 'json',
success: function(response) {
$('#playerCount').html((response.playerCount.success == false) ? 'Offline' : response.playerCount);
$('#serverUptime').html((response.uptime.success == false) ? 'Offline' : response.uptime);
$('#ticketCount').html(response.activeTickets);
}
});
});
</script>
<?php
require("footer.php");
?>