-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatus.html
177 lines (161 loc) · 5.56 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>سوبر ويفي</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
$(if refresh-timeout)
<meta http-equiv="refresh" content="$(refresh-timeout-secs)">
$(endif)
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-rtl.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link href="rtl.css" rel="stylesheet">
<!-- Latest compiled and minified JavaScript -->
<script src="js/jquery-1.12.1.min.js"></script>
<script src="parallax.min.js" ></script>
<script src="js/bootstrap.min.js" ></script>
<style type="text/css">
body{
padding-top: 40px;
}
</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)
>
<nav class="navbar navbar-inverse navbar-fixed-top" id="my-navbar">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/" class="navbar-brand">شبكة سوبر ويفي</a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse">
<!--ul class="nav navbar-nav">
<li><a href="#services">خدماتنا</a>
<li><a href="#contact">إتصل بنا</a>
<li><a href="#feedback">Feedback</a>
</ul-->
<ul class="navbar-form navbar-left">
$(if login-by == 'trial')
<li style="color: #fff;">مرحبا المستخدم التجريبي</li>
$(elif login-by != 'mac')
<li style="color: #fff;">مرحبا $(username)!</li>
$(endif)
</ul>
</div>
</div>
</nav>
<form action="$(link-logout)" name="logout" onSubmit="return openLogout()">
<table class="table table-hover table-inverse" style = "margin: 50px 0 0 0;">
<tbody>
<tr>
<th scope="row">1</th>
<td>عنوان الـIP</td>
<td>$(ip)</td>
</tr>
<tr>
<th scope="row">1</th>
<td style="text-direction: ltr;">حجم التحميل:</td>
<td style="text-direction: ltr;">$(bytes-out-nice)</td>
</tr>
$(if session-time-left)
<tr>
<th scope="row">1</th>
<td >متبقىي من الوقت / مدة الاتصال</td>
<td>$(uptime) / $(session-time-left)</td>
</tr>
$(else)
<tr>
<th scope="row">1</th>
<td >متصل:</td>
<td>$(uptime)</td>
</tr>
$(endif)
$(if blocked == 'yes')
<tr>
<th scope="row">1</th>
<td>الحالة:</td>
<td><div style="color: #FF8080">
<a href="$(link-advert)" target="hotspot_advert">إعلان </a> مطلوب</div></td>
</tr>
$(elif refresh-timeout)
<tr>
<th scope="row">1</th>
<td >وضع التحديث:</td>
<td>$(refresh-timeout)</td>
</tr>
$(endif)
</tbody>
</table>
<div class="container text-center" >
$(if login-by-mac != 'yes')
<br>
<!-- 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" class="btn btn-danger" value="خروج">
$(endif)
</form>
</div>
<!--table width="100%" height="100%">
<tr>
<td align="center" valign="middle">
<form action="$(link-logout)" name="logout" onSubmit="return openLogout()">
<table border="1" class="tabula">
<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')
<br>
<!-- 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 class="btn btn-lg btn-warning text-center" type="submit" value="log off">
$(endif)
</form>
</td>
</table-->
</body>
</html>