Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- *********************************************************
- * Copyright 2003, CyberTAN Inc. All Rights Reserved *
- *********************************************************
- This is SOURCE CODE of CyberTAN Inc.
- the contents of this file may not be disclosed to third parties,
- copied or duplicated in any form without the prior written
- permission of CyberTAN Inc.
- This software should be used as a reference only, and it not
- intended for production use!
- THIS SOFTWARE IS OFFERED "AS IS", AND CYBERTAN GRANTS NO WARRANTIES OF ANY
- KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. CYBERTAN
- SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
- FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE
- -->
- <HTML ><HEAD><TITLE></TITLE>
- <meta http-equiv="expires" content="0">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <!--
- <link rel="stylesheet" type="text/css" href="style.css">
- -->
- <link rel="stylesheet" type="text/css" href="style_gn.css">
- <!--
- <link rel="stylesheet" type="text/css" href="style_rtl.css">
- -->
- <SCRIPT src="position.js"></SCRIPT>
- <script src="common.js"></script>
- <!-- Desktop view-->
- <style type="text/css">/*<![CDATA[*/
- @import "main.css";
- /*]]>*/</style>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="main.js"></script>
- <!-- Mobile view-->
- <!--
- <style type="text/css">/*<![CDATA[*/
- @import "mobile/styles/main.css";
- /*]]>*/</style>
- <script type="text/javascript" src="mobile/scripts/jquery.js"></script>
- <script type="text/javascript" src="mobile/scripts/main.js"></script>
- <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
- -->
- <SCRIPT language=JavaScript>
- var device_type = '0';
- //document.onkeydown = onInputKeydown;
- /*
- function onInputKeydown(event)
- {
- if(typeof event == "undefined")
- {
- return handleKeyDown(window.event);
- }
- else
- {
- return handleKeyDown(event);
- }
- }
- function handleKeyDown(event)
- {
- if(event.keyCode == 10)
- {
- event.cancelBubble = true;
- event.returnValue = false;
- }
- else if (event.keyCode == 13) {
- return to_submit(document.login);
- }
- return true;
- }
- */
- /*function setCookie(value, expiredays)*/
- function setCookie()
- {
- var F = document.login;
- /*when current login page is in mobile state, and the "alt-view" is "Desktop view,
- device_type should be 1, so when click "Desktop view", set cookie mobile_view_type
- to 2. otherwise set cookie to 1*/
- if (device_type == '1')
- document.cookie = "mobile_view_type=2";
- else
- document.cookie = "mobile_view_type=1";
- /*
- if (host_url)
- window.location.replace("login.asp?" + host_url);
- else
- window.location.replace("login.asp");
- */
- window.location.replace("login.asp?" + F.gn_host_url.value);
- }
- function to_submit(F)
- {
- // F.gn_host_url.value=host_url;
- // F.action.value='Apply';
- // F.submit_button.value = "login";
- F.submit();
- }
- function valid_name2(I,M,flag)
- {
- isascii(I,M);
- }
- function init()
- {
- document.title="Guest access";
- document.login.gn_view_type.value=device_type;
- //document.login.gn_host_url.value=host_url;
- var oPassword = document.getElementById("password");//wangfei sync patch from RC4-RC8
- oPassword.focus();
- }
- </SCRIPT>
- </head>
- <body id="blocked" onload=init()>
- <div id="content">
- <div class="h1">
- <h1><span><script>document.write("Guest access")</script>
- </span>
- </h1>
- </div>
- <div class="divider">
- <span><img src="image/layout/Divider_03.jpg"> </span>
- </div>
- <div class="info-text">
- <p><span><script>document.write("Enter the guest access password to access the Internet. Ask the owner if you don't know the password. The guest access password can be found using Cisco Connect.")</script></span></p>
- <div class="formwrapper">
- <form name=login method=post action="guestnetwork.cgi" autocomplete="off">
- <input type=hidden name=submit_button value="login">
- <input type=hidden name=action value="Apply">
- <input type=hidden name=wait_time value=19>
- <input type=hidden name=submit_type>
- <input type=hidden name=gn_view_type>
- <input type=hidden name=gn_host_url value='archive.canonical.com/ubuntu/dists/precise/InRelease'>
- <div class="field"> <label for="password"><script>document.write("Password")</script>:</label>
- <INPUT id="password" type=password maxlength="35" name="guest_login" onBlur=valid_name2(this,"Password",SPACE_NO)>
- </div>
- <div class="error">
- <p>
- <script>
- var deny='0';
- if(deny == '1')
- document.write("The password is incorrect.");
- else
- document.write("<BR>");
- document.login.guest_login.focus();
- </script>
- </p>
- </div>
- <div class="button"><p></p>
- <script>
- document.write("<a href='javascript:to_submit(document.forms[0])'>" + "Login" + "</a>");
- </script>
- </div>
- </form>
- </div>
- <!--
- <div class="alt-view"><p><span><script>document.write("<a href='javascript:setCookie()'>" + "Desktop view" + "</a>");</script></span></p></div>
- -->
- <!--
- <div class="alt-view"><p><span><script>document.write("<a href='javascript:setCookie()'>" + "Mobile view" + "</a>");</script></span></p></div>
- -->
- <!--.formwrapper--> </div>
- <!--#content-->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement