forked from x-ian/pfSensePortal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
captiveportal-apzu_portal_page.html
164 lines (160 loc) · 4.71 KB
/
captiveportal-apzu_portal_page.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
<span style="font-variant:small-caps; font-size:200%">
<p align="center">
Abwenzi Pa Za Umoyo / Partners In Health
</p>
</span>
<table>
<tr>
<td>
<img src="/captiveportal-apzu.jpg" />
</td>
<td>
Everybody gets connected - But please play fair!
<p>The Internet access is a limited resource and we must ensure a
functional network for the work of the Ministries and APZU.</p>
<p>Therefore there might be times when the Internet access is
restricted or not available due to excessive use or technical
outages. If necessary, the IT team might restrict or disconnected
single users/computers from the network. For further information
please refer to the <a href="captiveportal-apzu_acceptable_use_policy.html" target="_blank">Acceptable Use Policy</a>.</p>
<p>Thanks for your understanding, <i>the APZU-IT team</i>.</p>
</td>
</tr>
<tr>
<td />
<td>
<br />
<br />
<hr />
<br />
<br />
</td>
</tr>
<tr>
<td />
<td>
To connect to the network either register your computer once (1.) or provide the username/password/voucher if you have received them (2.).<br/><br/>
<table>
<colgroup>
<col width="50%">
<col width="50%">
</colgroup>
<tr>
<td>
1. Provide details to self-register
<form method="post" action="/captiveportal-apzu_add_radius_user.php"
onSubmit="return validateMacAuth() ;">
<table>
<tr>
<td>Name:</td>
<td>
<input name="name" id="name" type="text"/>
</td>
</tr>
<tr>
<td>Email:</td>
<td>
<input name="email" id="email" type="text"/>
</td>
</tr>
<tr>
<td>Owned by:</td>
<td>
<input id="owner_gov" type="radio" name="owner" value="gov"/>Government
<input id="owner_apzu" type="radio" name="owner" value="apzu"/>APZU
<input id="owner_private" type="radio" name="owner" value="priv"/>Private
<input id="owner_other" type="radio" name="owner" value="oth" checked/>Other
<td/>
</tr>
<tr>
<td />
<td>
<input id="iagree" type="checkbox" name="iagree" value="1"/>
Agree to <a href="captiveportal-apzu_acceptable_use_policy.html" target="_blank">Acceptable Use Policy</a>
</p>
<td/>
</tr>
<tr>
<td />
<td>
<input name="accept" type="submit" value="Continue"/>
</td>
</tr>
</table>
</form>
</td>
<td>
2. Enter username/password or voucher code (use guest/guest for limited 10
minutes access or check your welcome package for further
information)
<form method="post" action="$PORTAL_ACTION$" onSubmit="return validate() ;">
<input name="redirurl" type="hidden" value="$PORTAL_REDIRURL$" />
<table>
<tr>
<td>Username:</td>
<td>
<input name="auth_user" type="text"/>
</td>
</tr>
<tr>
<td>Password:</td>
<td>
<input name="auth_pass" type="password"/>
</td>
</tr>
<tr>
<td>Voucher code:</td>
<td>
<input name="auth_voucher" type="text"/>
</td>
</tr>
<tr>
<td />
<td>
<input id="iagree2" type="checkbox" name="iagree2" value="1"/>
Agree to <a href="captiveportal-apzu_acceptable_use_policy.html" target="_blank">Acceptable Use Policy</a>
</p>
<td/>
</tr>
<tr>
<td />
<td>
<input name="accept" type="submit" value="Continue"/>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript">
function validateMacAuth() {
if(document.getElementById('iagree').checked == false) {
alert("Please read and agree to the Acceptable Use Policy!");
return false;
}
document.getElementById('name').value = document.getElementById('name').value.split(' ').join('_');
if (document.getElementById('name').value == null || document.getElementById('name').value == "") {
alert("Please provide a name!");
return false;
}
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var address = document.getElementById('email').value;
if(reg.test(address) == false) {
alert('Please specify a valid Email Address!');
return false;
}
return true;
}
function validate() {
if(document.getElementById('iagree2').checked == false) {
alert("Please read and agree to the Acceptable Use Policy!");
return false;
} else {
return true;
}
}
</script>