-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.html
95 lines (93 loc) · 2.54 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
<html>
<head>
<title>Hotspot > status</title>
$(if refresh-timeout)
<meta http-equiv="refresh" content="$(refresh-timeout-secs)">
$(endif)
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<link href="bootstrap.min.css" rel="stylesheet">
<link href="bootstrap-theme.css" rel="stylesheet">
<style type="text/css">
html, body{
height: 100%;
background: #f0f0f0;
}
.panel{
border-radius: 10px;
box-shadow: 5px 5px 10px rgba(0, 0, 0, .4);
}
.panel-heading{
border-radius: 9px 9px 0px 0px;
}
</style>
<script language="JavaScript">
<!--
$(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>
</head>
<body bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0"
$(if advert-pending == 'yes')
onLoad="openAdvert()"
$(endif)
>
<div class="container" style="padding-top: 10%;">
<div class="col-md-4 col-md-offset-4">
<div class="panel panel-primary">
<div class="panel-heading">$(if login-by == 'trial') <b>Welcome trial user !</b> $(elif login-by != 'mac') <b>Welcome $(username) !</b> $(endif)</div>
<div class="panel-body" align="center">
<table class="table table-responsive table-bordered">
<tr>
<td>IP address</td><td>$(ip)</td>
</tr>
<tr>
<td>MAC address</td><td>$(mac)</td>
</tr>
<tr>
<td>bytes up / down</td><td>$(bytes-in-nice) / $(bytes-out-nice)</td>
</tr>
$(if session-time-left)
<tr>
<td>Uptime left</td><td>$(uptime)</td>
</tr>
$(else)
<tr>
<td>Uptime</td><td>$(uptime)</td>
</tr>
$(endif)$(if blocked == 'yes')
<tr>
<td>Status</td><td><a href="$(link-advert)" target="hotspot_advert">advertisement</a> required</td>
</tr>
$(elif refresh-timeout)
<tr>
<td>Status refresh</td><td>$(refresh-timeout)</td>
</tr>
$(endif)
</table>
<form action="$(link-logout)" name="logout" onSubmit="return openLogout()">
<input type="submit" value="log off" class="btn btn-danger">
</form>
</div>
</div>
</div>
</div>
<script src="bootstrap.min.js"></script>
</body>
</html>