Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.16 KB | None | 0 0
  1. <META http-equiv=Content-Type content="text/html; charset=utf-8">
  2. <HTML>
  3. <HEAD><TITLE>Archer C7</TITLE>
  4. <META http-equiv=Pragma content=no-cache>
  5. <META http-equiv=Expires content="wed, 26 Feb 1997 08:21:57 GMT">
  6. <SCRIPT language="javascript" type="text/javascript"><!--
  7. //--></SCRIPT>
  8. <SCRIPT language="javascript" type="text/javascript">
  9. var httpAutErrorArray = new Array(
  10. 3, 1, "http://192.168.0.1", 0,0 );
  11. </SCRIPT>
  12.  
  13. <SCRIPT language="javascript" type="text/javascript">
  14. if(window.parent != window)
  15. {
  16. document.cookie = "Authorization=;path=/";
  17. window.parent.location.href = httpAutErrorArray[2];
  18. }
  19. </SCRIPT>
  20. <script type="text/javascript" src="../login/encrypt.js" /></script>
  21. <style type="text/css">
  22. body{
  23. font-family:Arial, sans-serief;
  24. background-color:#E5E5E5;
  25. margin:0px;
  26. padding:0px;
  27. }
  28. div.loginBox
  29. {
  30. display: block;
  31. position:relative;
  32. margin-top:10%;
  33. text-align:center;
  34. }
  35. .noteDiv{
  36. color:gray;
  37. font-family:Arial;
  38. width:395px;
  39. text-align:left;
  40. margin:0px auto;
  41. font-size:14px;
  42. }
  43. #note{
  44. display:inline-block;
  45. vertical-align:top;
  46. _display:inline;
  47. _zoom:1;
  48. width:50px;
  49. font-weight:bold;
  50. }
  51. #tip{
  52. display:inline-block;
  53. vertical-align:top;
  54. _display:inline;
  55. _zoom:1;
  56. width:340px;
  57. font-weight:bold;
  58. }
  59. div.panelThre{
  60. margin-top:10px;
  61. }
  62. div.picDiv{
  63. width:395px;
  64. height:276px;
  65. background:url(../login/loginbg.png);
  66. position:relative;
  67. }
  68. input.pcPassword{
  69. width:300px;
  70. height:50px;
  71. line-height:50px;
  72. padding-left:20px;
  73. }
  74. div.PCBtnDiv{
  75. position:relative;
  76. margin-top:20px;
  77. }
  78. img.logoPic{
  79. width:100%;
  80. }
  81. #copyright{
  82. -webkit-text-size-adjust:none;
  83. font-size:8px;
  84. color:#6a6969;
  85. font-family:"Verdana";
  86. font-weight:normal;
  87. margin-top:40px;
  88. display:inline-block;
  89. }
  90. .topLogo{
  91. background:url(../login/top_bg.jpg);
  92. height:90px;
  93. }
  94. .style1 {
  95. font-family: "Arial";
  96. color: #FFFFFF;
  97. font-size: 16px;
  98. padding-right: 50;
  99. text-align: right;
  100. font-weight: bold;
  101. white-space: nowrap;
  102. }
  103. .style2 {
  104. font-size: 12px;
  105. font-family: "Arial";
  106. font-weight: bold;
  107. padding-right: 50;
  108. text-align: right;
  109. white-space: nowrap;
  110. color: #FFFFFF;
  111. }
  112. ul{
  113. padding:60px 0px 0px 0px;
  114. margin:0px;
  115. list-style:none;
  116. }
  117. ul li{
  118. height:34px;
  119. width:222px;
  120. }
  121. li.unLi{
  122. background:url(../login/loginUser.png);
  123. }
  124. li.pwLi{
  125. background:url(../login/loginPwd.png);
  126. }
  127. li.blank{
  128. height:15px;
  129. }
  130. input.text{
  131. border:0px;
  132. height:26px;
  133. line-height:26px;
  134. width:175px;
  135. padding:0px;
  136. margin:4px 0px 0px 40px;
  137. font-size:14px;
  138. color:#6a6969;
  139. font-family:"Verdana","Arial";
  140. font-weight:normal;
  141. }
  142. label.loginBtn{
  143. height:34px;
  144. display:inline-block;
  145. width:113px;
  146. margin-top:30px;
  147. background:url(../login/loginBtn.png);
  148. cursor:pointer;
  149. }
  150. </style>
  151. <script type="text/javascript">
  152. function CheckUserPswChars(szValue)
  153. {
  154. var reg = /^[\x21-\x7e]+$/;
  155. if((szValue.length > 0) && reg.test(szValue))
  156. {
  157. return true;
  158. }
  159. return false;
  160. }
  161.  
  162. function CheckUserPswInvalid()
  163. {
  164. var userName = $("userName");
  165. var pcPassword = $("pcPassword");
  166.  
  167. if(!CheckUserPswChars(userName.value))
  168. {
  169. userName.select();
  170. userName.focus();
  171. return false;
  172. }
  173.  
  174. if(!CheckUserPswChars(pcPassword.value))
  175. {
  176. pcPassword.select();
  177. pcPassword.focus();
  178. return false;
  179. }
  180.  
  181. return true;
  182. }
  183.  
  184. function ResetUserPsw(elementName)
  185. {
  186. $(elementName).value = "";
  187. $(elementName).focus();
  188. }
  189.  
  190. function PCWin(event)
  191. {
  192. if (event.keyCode == 13)
  193. {
  194. PCSubWin();
  195. }
  196. }
  197.  
  198. function PCSubWin()
  199. {
  200. if((httpAutErrorArray[0] == 2) || (httpAutErrorArray[0] == 3))
  201. {
  202. if(true == CheckUserPswInvalid())
  203. {
  204. var username = $("userName").value;
  205. var password = $("pcPassword").value;
  206. if(httpAutErrorArray[1] == 1)
  207. {
  208. password = hex_md5($("pcPassword").value);
  209. }
  210. var auth = "Basic "+ Base64Encoding(username + ":" + password);
  211. document.cookie = "Authorization="+escape(auth)+";path=/";
  212. location.href ="../userRpm/LoginRpm.htm?Save=Save";
  213. return true;
  214. }
  215. else
  216. {
  217. $("note").innerHTML = "NOTE:";
  218. $("tip").innerHTML = "Username and password can contain between 1 - 15 characters and may not include spaces.";
  219. }
  220. }
  221. return false;
  222. }
  223.  
  224. function w(str)
  225. {
  226. document.write(str);
  227. }
  228.  
  229. function $(id)
  230. {
  231. return document.getElementById(id);
  232. }
  233.  
  234. function setElementStyle(bShow)
  235. {
  236. var unLi = $("unLi");
  237. var pwLi = $("pwLi");
  238. var userName = $("userName");
  239. var pcPassword = $("pcPassword");
  240. var loginBtn = $("loginBtn");
  241.  
  242. if(bShow)
  243. {
  244. $("userName").style.display = "";
  245. $("pcPassword").style.display = "";
  246.  
  247. pcPassword.onfocus = function(){
  248. pwLi.style.background = "url(../login/loginPwdH.png)";
  249. };
  250. pcPassword.onblur = function(){
  251. pwLi.style.background = "url(../login/loginPwd.png)";
  252. };
  253.  
  254. userName.onfocus = function(){
  255. unLi.style.background = "url(../login/loginUserH.png)";
  256. };
  257. userName.onblur = function(){
  258. unLi.style.background = "url(../login/loginUser.png)";
  259. };
  260.  
  261. loginBtn.onmouseover = function(){
  262. loginBtn.style.background = "url(../login/loginBtnH.png)";
  263. };
  264. loginBtn.onmouseout = function(){
  265. loginBtn.style.background = "url(../login/loginBtn.png)";
  266. };
  267.  
  268. $("userName").focus();
  269. }
  270. else
  271. {
  272. $("userName").style.display = "none";
  273. $("pcPassword").style.display = "none";
  274. }
  275. }
  276.  
  277. function pageLoad()
  278. {
  279. var count = 14, tip = $("tip"), note = $("note");
  280. var min = 0, sec = 0;
  281. document.cookie = "Authorization=;path=/";
  282.  
  283. if(window.parent != window)
  284. {
  285. window.parent.location.reload();
  286. }
  287. var ErrNum = httpAutErrorArray[0];
  288. switch(ErrNum)
  289. {
  290. case 0:
  291. note.innerHTML = "NOTE:";
  292. tip.innerHTML = "The router allows only one administrator to login at the same time, please try again later.";
  293. setElementStyle(false);
  294. break;
  295. case 1:
  296. note.innerHTML = "NOTE:";
  297. tip.innerHTML = "You have exceeded ten attempts, please try again after two hours.";
  298. setElementStyle(false);
  299. break;
  300. case 2:
  301. note.innerHTML = "NOTE:";
  302. tip.innerHTML = "The username or password is incorrect, please input again.";
  303. setElementStyle(true);
  304. break;
  305. case 3:
  306. default:
  307. tip.innerHTML = "";
  308. note.innerHTML = "";
  309. setElementStyle(true);
  310. break;
  311. }
  312. }
  313. </script>
  314. </head>
  315. <body onkeypress="PCWin(event)" onLoad="pageLoad()">
  316. <div class="topLogo">
  317. <table cellpadding=0 cellspacing=0 width="100%">
  318. <tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%">
  319. <tr><td><a href="http://www.tp-link.com" target="blank" ><img src="../login/top1_1.jpg" border="0" style="cursor:pointer"></a></td>
  320. <td width="490" align=right background="../login/top1_2.jpg" style="padding-top:23">
  321. <table>
  322. <tr><td class="style1">AC1750 Wireless Dual Band Gigabit Router</td></tr>
  323. <tr><td class="style2"> Model No. Archer C7 </td></tr>
  324. </table>
  325. </td>
  326. </tr>
  327. </table></td></tr>
  328. <tr><td><IMG height=3 src="../login/top2.jpg" width="100%" align=top border=0></td></tr>
  329. </table>
  330. </div>
  331. <div class="loginBox">
  332. <div class="noteDiv">
  333. <span id="note"></span>
  334. <span id="tip"></span>
  335. </div>
  336. <div class="panelThre" align="center">
  337. <div align="center" class="picDiv" align="center">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement