Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%
- /* This function will initialize a bunch of access_* ASP variables. */
- LoadAccessInformation();
- /* Those variables are now accessible for ASP code:
- * - access_free
- * - access_purchase
- * - etc... (see documentation for complete list).
- */
- var ssl = GetHTTPProtocol() == "https";
- %>
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <!--
- *******************************************************************************
- I M P O R T A N T
- - - - - - - - - -
- Do NOT copy and paste this code from a web browser "View Source" Window.
- The actual code contains server-side function calls which do not appear in a
- "View Source" situation.
- Please refer to the supplied templates on the product CD.
- *******************************************************************************
- -->
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <meta http-equiv="Expires" content="0" />
- <meta http-equiv="Cache-Control" content="no-cache" />
- <meta http-equiv="Pragma" content="no-cache" />
- <title>Public Access - Login Page</title>
- <link rel="stylesheet" type="text/css" href="/style.css"/>
- <script type="text/javascript" language="JavaScript" src="/prototype.js"></script>
- <script type="text/javascript" language="JavaScript" src="/sessionwindow.js"></script>
- <script type="text/javascript" language="JavaScript" src="/setfocus.js"></script>
- <script type="text/javascript" language="JavaScript">
- <!--
- function showsessionpageifnotsubscribe()
- {
- var action = $F('access_type');
- var showSessionPage = false;
- if (typeof(action) == 'string') {
- if ($F('access_type') != 'subscribe') {
- showSessionPage = true;
- }
- } else {
- showSessionPage = true;
- }
- // fix by Thoams Heuberger, 2013. Disables the Session Page popup on iOS devices
- if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g))
- showSessionPage = false;
- if (showSessionPage) {
- showsessionpage('<% write(GetWebFullURL("http")); %>/session.asp');
- }
- }
- //-->
- </script>
- </head>
- <body onload="javascript:setfocus();">
- <!-- Display company logo -->
- <div id="logo">
- <img src="/logo.gif" alt="HP ProCurve - Company Logo" />
- </div>
- <div id="topAds">
- <!-- Put your ads here -->
- <div class="ads"><a href="http://www.procurve.com" target="_blank" title="Most cost-effective 802.11n migration"><img src="/ads.jpg" alt="Most cost-effective 802.11n migration" /></a></div>
- </div>
- <div id="main">
- <!-- Display error or warning messages -->
- <div id="message"><% IncludeAsp("login_error_message.asp"); %></div>
- <!-- Display login form -->
- <div class="boxed">
- <form action="/goform/HtmlLoginRequest" method="post" id="loginForm">
- <input type="hidden" name="error_url" value="/index.asp" />
- <input type="hidden" name="success_url" value="<% write(GetWebFullURL("http")); %>/transport.asp" />
- <input type="hidden" name="original_url" value="<%GetOriginalUrl();%>" />
- <input type="hidden" name="subscription_url" value="<% write(GetWebFullURL("https")); %>/subscribe.asp" />
- <input type="hidden" name="valid_fields" value="access_type username password" />
- <% ConditionalDisplay(!access_purchase && !access_free, "begin"); %>
- <input type="hidden" id="access_type" name="access_type" value="login" />
- <% ConditionalDisplay(!access_purchase && !access_free, "end"); %>
- <table width="100%" border="0" cellspacing="0" cellpadding="4">
- <% ConditionalDisplay(access_purchase, "begin"); %>
- <tr>
- <td><input type="radio" id="access_type" name="access_type" value="subscribe" /></td>
- <td>Subscribe to the service</td>
- </tr>
- <% ConditionalDisplay(access_purchase, "end"); %>
- <% ConditionalDisplay(access_free, "begin"); %>
- <tr>
- <td><input type="radio" id="access_type" name="access_type" value="free_access" /></td>
- <td>Use Free Access service</td>
- </tr>
- <% ConditionalDisplay(access_free, "end"); %>
- <% ConditionalDisplay(access_purchase || access_free, "begin"); %>
- <tr>
- <td><input type="radio" id="access_type" name="access_type" value="login" checked="checked"/></td>
- <td>Existing User</td>
- </tr>
- <% ConditionalDisplay(access_purchase || access_free, "end"); %>
- <tr>
- <td> </td>
- <td>
- <table border="0" width="100%" cellspacing="0" cellpadding="4">
- <tr>
- <td align="right"><label for="username">Username:</label></td>
- <td><input type="text" name="username" maxlength="127" size="25" value="<% write(GetSessionVar("username")); %>"/></td>
- </tr>
- <tr>
- <td align="right"><label for="password">Password:</label></td>
- <td><input type="password" name="password" maxlength="127" size="25" /></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <hr/>
- <table border="0" width="100%" cellspacing="0" cellpadding="4">
- <tr>
- <td>
- </td>
- <td align="right"><input onclick="javascript:showsessionpageifnotsubscribe();" type="submit" name="login" id="loginButton" value="Proceed" /></td>
- </tr>
- </table>
- </form>
- </div>
- <% ConditionalDisplay(!ssl, "begin"); %>
- <div>
- <p><a href="<% write(GetWebFullURL("https")); %>/index.asp">Use the secure version of this form</a></p>
- </div>
- <% ConditionalDisplay(!ssl, "end"); %>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement