-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
100 lines (86 loc) · 3.08 KB
/
login.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>NJ Hotspot > login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"/>
<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);
opacity: 0.9;
}
</style>
</head>
<body>
$(if chap-id)
<form name="sendin" action="$(link-login-only)" method="post">
<input type="hidden" name="username" />
<input type="hidden" name="password" />
<input type="hidden" name="dst" value="$(link-orig)" />
<input type="hidden" name="popup" value="true" />
</form>
<script type="text/javascript" src="/md5.js"></script>
<script type="text/javascript">
<!--
function doLogin() {
document.sendin.username.value = document.login.username.value;
document.sendin.password.value = hexMD5('$(chap-id)' + document.login.password.value + '$(chap-challenge)');
document.sendin.submit();
return false;
}
//-->
</script>
$(endif)
<div class="container" style="padding-top: 3%;">
<div class="col-md-4 col-md-offset-4">
$(if error)<div class="alert alert-danger">$(error)</div>$(endif)
<div class="panel panel-default">
<div class="panel-body">
<div align="center">
<img src="img/hotspotnj.png">
</div>
<br/>
<div align="center" style="margin-bottom:20px; font-style:italic; color:#3c763d; display:block;">Santri bijak & hebat tentu berinternet sehat</div>
$(if trial == 'yes')<div class="alert alert-warning">Bisa coba gratis, <a href="$(link-login-only)?dst=$(link-orig-esc)&username=T-$(mac-esc)">klik disini</a>.</div>$(endif)
<form name="login" action="$(link-login-only)" method="post" $(if chap-id) onSubmit="return doLogin()" $(endif)>
<input type="hidden" name="dst" value="$(link-orig)" />
<input type="hidden" name="popup" value="true" />
<div class="form-group">
<input type="text" name="username" class="form-control" value="$(username)" placeholder="Username" required autofocus>
</div>
<div class="form-group">
<input type="password" name="password" class="form-control" placeholder="Password">
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary btn-block" value="Login" />
</div>
</form>
<div>
<hr/>
<b>INFO USER :</b> <br/>MAC address : $(mac)<br/>IP address : $(ip)
</div>
</div>
</div>
<div class="alert alert-info">
<ol>
<li>Belum terdaftar layanan hotspot pesantren?
Silahkan kontak tim IT Pesantren untuk register.
<li>Aplikasi kepesantrenan bisa diakses langsung tanpa harus login.
</ol>
</div>
</div>
</div>
<script src="jquery.min.js"></script>
<script src="bootstrap.min.js"></script>
</body>
</html>