-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstatus.php
More file actions
85 lines (76 loc) · 2.32 KB
/
status.php
File metadata and controls
85 lines (76 loc) · 2.32 KB
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
<?php
require_once('config.php');
$page = 'status';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Support Center » <?php echo $sitename; ?></title>
<?php require_once('assets/inc/inc.head.php'); ?>
</head>
<body>
<?php require_once('assets/inc/inc.nav.php'); ?>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="page-header">Status <small>Find out if services are online</small></h1>
</div>
</div>
<div class="row">
<div class="col-md-3 well">
<h3>Help</h3>
<p>
From here, you can view the current status of our online services. This can be helpful when trying to find out if you are experiencing issues yourself or if the entire service is unavailable.
</p>
</div>
<div class="col-md-9">
<?php
$check = $frontend->statusCheck();
?>
<table class="table table-responsive table-bordered table-striped">
<thead>
<th>Service</th>
<th>Host</th>
<th>Port</th>
<th>Status</th>
</thead>
<tbody>
<?php
foreach ($check as $innerArray => $key) {
if($key['check'] == 1) {
echo '<tr class="success">';
$online = true;
}
else
{
echo '<tr class="danger">';
$online = false;
}
echo '<td>'.$innerArray.'</td>';
echo '<td>'.$key['host'].'</td>';
echo '<td>'.$key['port'].'</td>';
if($online) {
echo '<td><i class="glyphicon glyphicon-ok"></i> Online</td>';
}
else
{
echo '<td><i class="glyphicon glyphicon-remove"></i> Offline</td>';
}
}
?>
</tbody>
</table>
</div>
</div>
<hr>
<footer>
<?php require_once('assets/inc/inc.footer.php'); ?>
</footer>
</div> <!-- /container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="<?php echo $system_url; ?>assets/js/bootstrap.min.js"></script>
</body>
</html>