-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.html
158 lines (149 loc) · 6.57 KB
/
status.html
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html lang="en">
<head>
$(if refresh-timeout)
<meta http-equiv="refresh" content="$(refresh-timeout-secs)"> $(endif)
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Status - Voucher WiFi Hotspot</title>
<!-- Favicon-->
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<!-- Bootstrap icons-->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="css/styles.css" rel="stylesheet" />
<!-- Custom CSS -->
<link href="css/custom.css" rel="stylesheet" />
</head>
<body $(if advert-pending=='yes' ) onLoad="openAdvert()" $(endif)>
<!-- Navigation-->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container px-4 px-lg-5">
<a class="navbar-brand" href="#!">Voucher WiFi</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0 ms-lg-4">
<li class="nav-item"><a class="nav-link active" aria-current="page" href="#!">Utama</a></li>
<li class="nav-item"><a class="nav-link" href="#!">Tentang</a></li>
</ul>
<form class="d-flex">
<button class="btn btn-outline-dark" type="submit">
<i class="bi-telephone-fill me-1"></i>
Hubungi Kami
</button>
</form>
</div>
</div>
</nav>
<!-- Header-->
<header class="bg-dark py-5">
<div class="container px-4 px-lg-5">
<div class="text-center text-white">
<h1 class="display-4 fw-bolder">Voucher WiFi</h1>
<p class="lead fw-normal text-white-50 mb-0">Hotspot</p>
</div>
</div>
</header>
<!-- Section -->
<section class="py-5">
<div class="wrapper fadeInDown">
<div id="formContent">
<h4 class="mt-3">STATUS</h4>
<div class="m-4 table-responsive">
<table class="table">
<tbody>
<tr>
<th scope="row">Kode Voucher</th>
<td>$(username)</td>
</tr>
<tr>
<th scope="row">Alamat IP</th>
<td>$(ip)</td>
</tr>
<tr>
<th scope="row">Alamat MAC</th>
<td>$(mac)</td>
</tr>
$(if session-time-left)
<tr>
<th scope="row">Terhubung / Sisa</th>
<td>$(uptime) / $(session-time-left)</td>
</tr>
$(else)
<tr>
<th scope="row">Terhubung</th>
<td>$(uptime)</td>
</tr>
$(endif)
<tr>
<th scope="row">Unduh / Unggah</th>
<td>$(bytes-out-nice) / $(bytes-in-nice)</td>
</tr>
$(if limit-bytes-total)
<tr>
<th scope="row">Sisa Kuota</th>
<td>
$(if limit-bytes-total != '')
<script>
result = ($(limit - bytes - total) / 1000000).toFixed(2)
document.write(result)
</script>
MiB $(else) Unlimited $(endif)
</td>
</tr>
$(endif) $(if refresh-timeout)
<tr>
<th scope="row">Status refresh</th>
<td>$(refresh-timeout)</td>
</tr>
$(endif)
</tbody>
</table>
<form action="$(link-logout)" name="logout" onSubmit="return openLogout()">
$(if login-by-mac != 'yes')
<!-- user manager link. if user manager resides on other router, replace $(hostname) by its address
<button onclick="document.location='http://$(hostname)/user?subs='; return false;">status</button>
<!-- end of user manager link -->
<input type="submit" value="Keluar"> $(endif)
</form>
</div>
</div>
</div>
</section>
<!-- Footer-->
<footer class="py-5 bg-dark">
<div class="container">
<p class="m-0 text-center text-white">
© Voucher WiFi 2021 by
<a href="">Villamas</a>
</p>
</div>
</footer>
<!-- Bootstrap core JS-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- Core theme JS-->
<script src="js/scripts.js"></script>
<!-- RouterOS Script -->
<script>
$(
if advert - pending == 'yes')
var popup = '';
function focusAdvert() {
if (window.focus) popup.focus();
}
function openAdvert() {
popup = open('$(link-advert)', 'hotspot_advert', '');
setTimeout("focusAdvert()", 1000);
}
$(endif)
function openLogout() {
if (window.name != 'hotspot_status') return true;
open('$(link-logout)', 'hotspot_logout', 'toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=1,width=280,height=250');
window.close();
return false;
}
</script>
</body>
</html>