Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <HTML><HEAD><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">
- <SCRIPT SRC="/cgi-bin/dynamic/printer/include/jshelper.js" LANGUAGE="JavaScript"> </SCRIPT>
- <TITLE>Login Form</TITLE>
- <LINK REL="stylesheet" HREF="/cgi-bin/dynamic/printer/configStyle.css" TYPE="text/css">
- <script type="text/javascript">
- <!--
- function cookiesEnabled()
- {
- var enabled = false;
- //if not (IE4+ or NS6+), then check different way:
- if (typeof window.navigator.cookieEnabled == "undefined")
- {
- document.cookie = "testcookie=val";
- enabled = (document.cookie.indexOf("testcookie=") != -1);
- }
- else
- {
- enabled = window.navigator.cookieEnabled;
- }
- return enabled;
- }
- function OnLoad()
- {
- var f = null;
- f = document.getElementById("login_form");
- if (f)
- {
- if (f.username)
- {
- f.username.focus();
- }
- else if (f.password)
- {
- f.password.focus();
- }
- }
- msg = document.getElementById("enable_cookie_msg");
- if (msg)
- {
- // check if cookies is disabled
- if (cookiesEnabled() == false)
- {
- msg.style.display = 'block';
- // document.getElementById("login_container").style.display = 'none';
- }
- else
- {
- msg.style.display = 'none';
- }
- }
- }
- function reload_left()
- {
- // set session cookies cookie
- document.cookie='session_id=; expires=Wednesday, 23-Jan-2030 00:00:01 GMT; path=/';
- document.cookie='session_key=; expires=Wednesday, 23-Jan-2030 00:00:01 GMT; path=/';
- // retrieve left frame using new frame name 'Directory'
- frame = top.Directory;
- // if the left frame is still using the old name, 'frame' will be null.
- if (frame == null)
- {
- // use old frame name 'left' instead.
- frame = top.left;
- }
- i = frame.document.getElementById('logout_div');
- i.className = 'visible';
- }
- -->
- </script>
- </HEAD>
- <BODY onload="OnLoad();">
- <h3>Enter Device Access credentials for Network/Ports Menu Remotely</h3>
- <p id="enable_cookie_msg" style="color:red;display:none;">Please enable cookies on your browser for proper functionality</p>
- <div id="login_container">
- <form id="login_form" action="/cgi-bin/posttest/printer/login.html" method="post">
- <input type="hidden" name="login_type" value="password_only">
- <input type="hidden" name="goto" value="/cgi-bin/dynamic/pf/config/net/ip.html">
- <input type="hidden" name="accid" value="17">
- <table>
- <tr><td>Password</td><td><input type="password" name="password" id="password" size="22" maxlength="128"/></td></tr>
- </table>
- <HR SIZE=2 ALIGN=LEFT WIDTH="75%" NOSHADE>
- <table>
- <tr>
- <td><input type="submit" value="Submit"></td><td> </td>
- <td><input type="button" value="Cancel" onclick="history.go(-1);"></td>
- </tr>
- </table>
- <br/>
- </form>
- </div>
- </BODY>
- </HTML>
Advertisement
Add Comment
Please, Sign In to add comment