Appendix g – disclaimer for on-demand users – AirLive WIAS-1200G User Manual

Page 144

Advertising
background image

AirLive WIAS-1200G

User’s Guide

136

Appendix G – Disclaimer for On-Demand Users

In AirLive WIAS-1200G, the end user first gets a login page when she/he opens its web browser right after

associating with an access point. However, in some situations, the hotspot owners or MIS staff may want

to display “terms of use” or announcement information before the login page. Hotspot owners or MIS staff

can design a new disclaimer/announcement page and save the page in their local server. After the

agreement shown on the page is read, users are asked whether they agree or disagree with the

disclaimer. By clicking “I agree,” users are able to log in. If users choose to decline, they will get a popup

window saying they are unable to log in. The basic design is to have the disclaimer and login function in

the same page but with the login function hidden until users agree with the disclaimer.

Here the codes are supplied. Please note that the blue part is for the login feature, the red part is the

disclaimer, and the green part can be modified freely by administrators to suit the situation better. Now

the default is set to “I disagree” with the disclaimer. Administrators can change the purple part to set

“agree” as the default or set no default. These codes should be saved in local storage with a name

followed by .html, such as login_with_disclaimer.html.

<html>

<head>

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">

<link href="../include/style.css" rel="stylesheet" type="text/css">

<title>Login</title>

<script

language="javascript1.2">

var

pham

=

document.cookie;

var

disableButton=false;

function getCookie(name)

{

name += "="; // append '=' to name string

var i = 0; // index of first name=value pair

while (i < pham.length) {

var offset = i + name.length; // end of section to compare name string

if (pham.substring(i, offset) == name) { // if string matches

var endstr = pham.indexOf(";", offset); //end of name=value pair

if (endstr == -1) endstr = pham.length;

return

unescape(pham.substring(offset,

endstr));

Advertising