User’s Manual
WHG Controller / HSG Gateway
ENGLISH
238
gwmac
MAC format
(separated by ':')
Gateway activated WAN MAC address
client_ip
IP format
Client IP address
ipv6_addr
IPv6 format
Client IPv6 address
umac
MAC format
(separated by ':')
Client MAC address
session
String
Encrypted session information, includes:
client IP address, MAC address, date,
and return URL.
You will need to parse the required parameters in your html code. The following
HTML code segment is an example of parsing
loginurl
parameter with a self defined
javascript function:
<FORM action="" method="post" name="form">
<script language="Javascript">
form.action = getVarFromURL(window.location.href, 'loginurl');
</script>
<INPUT type="text" name="myusername" size="25">
<INPUT type="password" name="mypassword" size="25">
<INPUT name="button_submit" type="submit" value="Enter">
<INPUT name="button_clear" type="button" value="Clear">
</FORM>
The following shows the corresponding self-defined javascript function used to
parse the
loginurl
parameter:
function getVarFromURL(url, name) {
if(name == "" || url == "") { return ""; }
name = name.replace(/[\[]/|"\\\[").replace(/[\]]/|"\\\]");
var regObj = new RegExp("[\\?&]"+name+"=([^&#]*)");
var result = regObj.exec(url);
if(result == null) { return ""; }
else { return decodeURIComponent(result[1]); }
Summary of Contents for WHG315
Page 1: ...User s Manual V2 20 WHG HSG Series Secure WLAN Controller Wireless Hotspot Gateway...
Page 57: ...User s Manual WHG Controller HSG Gateway ENGLISH 57...
Page 131: ...User s Manual WHG Controller HSG Gateway ENGLISH 131 corresponding configuration pages...
Page 146: ...User s Manual WHG Controller HSG Gateway ENGLISH 146...
Page 148: ...User s Manual WHG Controller HSG Gateway ENGLISH 148...
Page 183: ...User s Manual WHG Controller HSG Gateway ENGLISH 183...
Page 257: ...User s Manual WHG Controller HSG Gateway ENGLISH 257...
Page 293: ...User s Manual WHG Controller HSG Gateway ENGLISH 293...
Page 330: ...User s Manual WHG Controller HSG Gateway ENGLISH 330...
Page 362: ...User s Manual WHG Controller HSG Gateway ENGLISH 362...