Guest User

Untitled

a guest
Jun 15th, 2016
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. <HTML><HEAD><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">
  2. <SCRIPT SRC="/cgi-bin/dynamic/printer/include/jshelper.js" LANGUAGE="JavaScript"> </SCRIPT>
  3. <TITLE>Login Form</TITLE>
  4. <LINK REL="stylesheet" HREF="/cgi-bin/dynamic/printer/configStyle.css" TYPE="text/css">
  5. <script type="text/javascript">
  6. <!--
  7. function cookiesEnabled()
  8. {
  9. var enabled = false;
  10.  
  11. //if not (IE4+ or NS6+), then check different way:
  12. if (typeof window.navigator.cookieEnabled == "undefined")
  13. {
  14. document.cookie = "testcookie=val";
  15. enabled = (document.cookie.indexOf("testcookie=") != -1);
  16. }
  17. else
  18. {
  19. enabled = window.navigator.cookieEnabled;
  20. }
  21. return enabled;
  22. }
  23.  
  24. function OnLoad()
  25. {
  26. var f = null;
  27. f = document.getElementById("login_form");
  28. if (f)
  29. {
  30. if (f.username)
  31. {
  32. f.username.focus();
  33. }
  34. else if (f.password)
  35. {
  36. f.password.focus();
  37. }
  38. }
  39. msg = document.getElementById("enable_cookie_msg");
  40. if (msg)
  41. {
  42. // check if cookies is disabled
  43. if (cookiesEnabled() == false)
  44. {
  45. msg.style.display = 'block';
  46. // document.getElementById("login_container").style.display = 'none';
  47. }
  48. else
  49. {
  50. msg.style.display = 'none';
  51. }
  52. }
  53. }
  54. function reload_left()
  55. {
  56. // set session cookies cookie
  57. document.cookie='session_id=; expires=Wednesday, 23-Jan-2030 00:00:01 GMT; path=/';
  58. document.cookie='session_key=; expires=Wednesday, 23-Jan-2030 00:00:01 GMT; path=/';
  59.  
  60. // retrieve left frame using new frame name 'Directory'
  61. frame = top.Directory;
  62. // if the left frame is still using the old name, 'frame' will be null.
  63. if (frame == null)
  64. {
  65. // use old frame name 'left' instead.
  66. frame = top.left;
  67. }
  68. i = frame.document.getElementById('logout_div');
  69. i.className = 'visible';
  70. }
  71. -->
  72. </script>
  73. </HEAD>
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82. <BODY onload="OnLoad();">
  83.  
  84.  
  85.  
  86. <h3>Enter Device&nbsp;Access credentials for Network/Ports Menu Remotely</h3>
  87.  
  88.  
  89. <p id="enable_cookie_msg" style="color:red;display:none;">Please enable cookies on your browser for proper functionality</p>
  90. <div id="login_container">
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102. <form id="login_form" action="/cgi-bin/posttest/printer/login.html" method="post">
  103. <input type="hidden" name="login_type" value="password_only">
  104. <input type="hidden" name="goto" value="/cgi-bin/dynamic/pf/config/net/ip.html">
  105. <input type="hidden" name="accid" value="17">
  106. <table>
  107.  
  108.  
  109.  
  110. <tr><td>Password</td><td><input type="password" name="password" id="password" size="22" maxlength="128"/></td></tr>
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118. </table>
  119.  
  120. <HR SIZE=2 ALIGN=LEFT WIDTH="75%" NOSHADE>
  121. <table>
  122. <tr>
  123. <td><input type="submit" value="Submit"></td><td>&nbsp;&nbsp;</td>
  124. <td><input type="button" value="Cancel" onclick="history.go(-1);"></td>
  125. </tr>
  126. </table>
  127. <br/>
  128. </form>
  129.  
  130.  
  131.  
  132. </div>
  133. </BODY>
  134.  
  135.  
  136.  
  137. </HTML>
Advertisement
Add Comment
Please, Sign In to add comment