-
Notifications
You must be signed in to change notification settings - Fork 27
/
status.html
128 lines (124 loc) · 3.89 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
<html>
<head>
<title>Status - Internet Hotspot</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="css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
body {
background: url(background.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
</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)?erase-cookie=on', '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="page-header" align="center">
<!-- TODO:
* Change To fit your Hotspot name
* Ganti ke nama Hotspot anda
-->
<h1 style="color:#323131;text-shadow: 2px 2px 4px #FFFFFF;">iBNuX Hotspot<br />
<small>Wireless Internet</small></h1>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-4">
<div class="panel panel-primary">
$(if login-by == 'trial')
<div class="panel-heading">
<h3 class="panel-title">Welcome trial user!</h3>
</div>
$(elif login-by != 'mac')
<div class="panel-heading">
<h3 class="panel-title">Welcome $(username)!</h3>
</div>
$(else)
<div class="panel-heading">
<h3 class="panel-title">Welcome!</h3>
</div>
$(endif)
<table border="1" class="table">
<tr><td align="right">IP address:</td><td>$(ip)</td></tr>
<tr><td align="right">bytes up/down:</td><td>$(bytes-in-nice) / $(bytes-out-nice)</td></tr>
$(if session-time-left)
<tr><td align="right">connected / left:</td><td>$(uptime) / $(session-time-left)</td></tr>
$(else)
<tr><td align="right">connected:</td><td>$(uptime)</td></tr>
$(endif)
$(if blocked == 'yes')
<tr><td align="right">status:</td><td><div style="color: #FF8080">
<a href="$(link-advert)" target="hotspot_advert">advertisement</a> required</div></td>
$(elif refresh-timeout)
<tr><td align="right">status refresh:</td><td>$(refresh-timeout)</td>
$(endif)
</table>
$(if login-by-mac != 'yes')
<div class="panel-footer">
<!-- TODO:
* Change url to your phpmixbill url, to login page
* Ganti url ke alamat server phpmixbill, ke halaman login
-->
<a href="http://billing.ibnux.com" class="btn btn-block btn-primary" target="_blank">Billing/Voucher Info</a>
</div>
<div class="panel-footer">
<form action="$(link-logout)" name="logout" onSubmit="return openLogout()">
<input type="hidden" name="erase-cookie" value="on">
<input type="submit" class="btn btn-block btn-danger" value="Log Off">
</form>
</div>
$(endif)
</div>
</div>
<div class="col-md-4">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Information</h3>
</div>
<div class="panel-body" id="Announcement"></div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Voucher Info</h3>
</div>
<div class="panel-body" id="voucherInformation"></div>
</div>
</div>
</div>
</div>
<script src="jquery-3.2.0.slim.min.js"></script>
<script src="billing.js"></script>
</body>
</html>