-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstatus.html
158 lines (106 loc) · 4.1 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-US" prefix="og: http://ogp.me/ns#">
<head>
<title>Status | Kathmandu Univerisity Free Wifi</title>
$(if refresh-timeout)
<meta http-equiv="refresh" content="$(refresh-timeout-secs)">
$(endif)
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
$(if refresh-timeout)
<meta http-equiv="refresh" content="$(refresh-timeout-secs)">
$(endif)
<link rel="stylesheet" href="style.css" type="text/css" />
<script language="JavaScript">
function readablizeBytes(bytes) {
var s = ['bytes', 'kb', 'MB', 'GB', 'TB', 'PB'];
var e = Math.floor(Math.log(bytes)/Math.log(1024));
return (bytes/Math.pow(1024, Math.floor(e))).toFixed(2)+" "+s[e];
}
</script>
</head>
<body>
<body>
<div class="layout">
<header>
<div id="top" class="top">
<div class="headerwrap">
<div class="logo">
<a href="/">
<span style="color:green;">K</span>U
<span>
<span style="color:yellow"> Wifi</span>
</span>
</a>
</div>
</div>
<div style="clear:both;"></div>
</div>
<div style="clear:both;"></div>
<div class="separator">
<span class="s1"></span>
<span class="s2"></span>
<span class="s3"></span>
<span class="s4"></span>
</div>
<div style="clear:both;"></div>
</header>
<div class="pagewrap">
<div class="grid group">
<div class=" grid-1-1">
<div class="module">
<h2>Status:</h2>
<hr>
$(if link-orig)
<p>Your requested URL is <a href=" $(link-orig) ">this</a>. </p>
$(endif)
<p>$(if error)$(error)$(endif)</p>
<table border="1" class="tabula">
$(if login-by == 'trial')
<br><div style="text-align: center;">Welcome trial user!</div><br>
$(elif login-by != 'mac')
<br><div style="text-align: center;"><h1>Welcome $(username)!</h1></div><br>
$(endif)
<tr><td align="center">This Session bytes up/down</td><td>$(bytes-in-nice) / $(bytes-out-nice)</td></tr>
$(if uptime)
<tr><td align="center">This Session connected time </td><td>$(uptime)</td></tr>
$(endif)
$(if session-time-left)
<tr><td align="center">Your Time left:</td><td>$(session-time-left)</td></tr>
$(endif)
$(if remain-bytes-out)
<tr><td align="center">Megabytes Remaining:</td><td><script language="JavaScript">document.write(readablizeBytes($(remain-bytes-out)));</script></td></tr>
$(endif)
$(if blocked == 'yes')
<tr><td align="center">status:</td><td><div style="color: #FF8080">
<a href="$(link-advert)" target="hotspot_advert">advertisement</a> required</div></td></tr>
$(elif refresh-timeout)
<tr><td align="center">status refresh:</td><td>$(refresh-timeout)</td></tr>
$(endif)
</table>
<a href="logout"><input type="submit" class="button" value="log off"></a>
<br><br>
<a href="logout?erase-cookie=true"><input type="submit" class="button" value="log off full"></a>
<hr/>
<h2>Your Information</h2>
<table>
$(if login-by)
<tr><td align="center">Logged in By:</td><td>$(login-by)</td></tr>
$(endif)
$(if mac)
<tr><td align="center">Mac Address : </td><td>$(mac)</td></tr>
$(endif)
$(if ip)
<tr><td align="center">Ip Address : </td><td>$(ip)</td></tr>
$(endif)
</table>
</div>
</div>
</div>
</div>
</div>
</body>
</body>
</html>