This repository has been archived by the owner on May 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
64 lines (55 loc) · 1.52 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
<?php
require_once('fwmon.class.php');
$fwmon = new fwmon();
$fwmon->buildHTMLResources();
$fwmon->buildHTMLTable($_GET['table']);
?><!DOCTYPE html><html>
<head>
<title>FWMon :: MikroTik Firewall Monitor (https://github.com/tomkap/fwmon/)</title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen">
<link rel="stylesheet" href="css/custom.min.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">System resources</h4>
</div>
<div class="modal-body">
<div id="modalBody">
<?php
echo $fwmon->info['platform'];
echo $fwmon->info['model'];
echo $fwmon->info['version'];
echo $fwmon->info['cpu'];
?>
</div>
</div>
<div class="modal-footer">
<div id="modalFooter">
<?php
echo $fwmon->info['uptime'];
echo $fwmon->info['cpu-load'];
echo $fwmon->info['memory-usage'];
echo $fwmon->info['hdd-usage'];
?>
</div>
<div class="btn-group btn-group-justified">
<?php
foreach ($fwmon->t_links as $table => $link)
echo $link;
?>
</div>
</div>
</div>
</div>
<table data-table="<?php echo $_GET['table']; ?>" class="table table-striped table-hover">
<thead><?php echo $fwmon->t_head; ?></thead>
<tbody><?php echo $fwmon->t_rows; ?></tbody>
</table>
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/fwmon.js"></script>
</body>
</html>