whois.handle: HATHWAY-NET
whois.name: HATHWAY CABLE AND DATACOM LIMITED
whois.cidrs: 125.99.0.0/16
whois.updated: 2021-01-18T00:00:00.000000
whois.handle: ORG-HCAD1-AP
whois.name: HATHWAY CABLE AND DATACOM LIMITED
whois.address: HATHWAY CABLE AND DATACOM LIMITED\nRahejas, 4th Floor\nCnr Main Avenue & VP Road
whois.country: IN
services.protocol: HTTP
services.transport_protocol: TCP
services.scan_time: 2025-07-28T06:40:20.825318
services.banner: HTTP/1.1 200 OK
  Connection: Keep-Alive
  Transfer-Encoding: chunked
  Keep-Alive: timeout=20
  ETag: "cc9-82f3-607808f1"
  Last-Modified: Thu, 15 Apr 2021 09:35:45 GMT
  Date:  <REDACTED>
  Content-Type: text/html
  Content-Length: 33523
  
services.value: jquery
services.value: login-page
services.path: /webpages/login.html
services.endpoint_type: HTTP
services.scan_time: 2025-07-28T06:40:20.825318
services.uri: http://125.99.53.50/webpages/login.html
services.protocol: HTTP/1.1
services.status_reason: OK
services.key: Keep-Alive
services.headers: timeout=20
services.key: Content-Type
services.headers: text/html
services.key: Date
services.headers: <REDACTED>
services.key: ETag
services.headers: "cc9-82f3-607808f1"
services.key: Transfer-Encoding
services.headers: chunked
services.key: Last-Modified
services.headers: Thu, 15 Apr 2021 09:35:45 GMT
services.key: Connection
services.headers: Keep-Alive
services.key: Content-Length
services.headers: 33523
services.html_tags: <title>Opening...</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta http-equiv="refresh" content="0; url=error.html"/>
services.body: ﻿<!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">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <link rel="shortcut icon" href="favicon.ico"/>
  <!-- <link type="text/css" href="css/reset.css" rel="stylesheet" /> -->
  <link type="text/css" href="css/widget.css" rel="stylesheet" />
  
  <link type="text/css" href="themes/old/css/widget.css" rel="stylesheet" />
  <link type="text/css" href="themes/old/css/style.css" rel="stylesheet" />
  
  
  <script type="text/javascript" src="js/libs/jquery.min.js"></script>
  
  <script type="text/javascript" src="js/su/locale.js"></script>
  <script type="text/javascript">
  //<![CDATA[
      try{
          $.su.locale.URL_LAN_CHECK =  $.su.url("/locale?form=lang");//"./data/lan.json";
          $.su.locale.get();
      }catch(error){
          location.href = "./error.html";
      };
  
  </script>
  <!--<script type="text/javascript" src="http://192.168.1.101:1070/target/target-script-min.js#anonymous"></script>-->
  <script type="text/javascript" src="js/libs/encrypt.js"></script>
  <!--<script type="text/javascript" src="js/su/su.full.min.js"></script>-->
  <script type="text/javascript" src="js/su/su.js"></script>
  
  <script type="text/javascript" src="js/su/data/proxy.js"></script>
  <script type="text/javascript" src="js/su/widget/widget.js"></script>
  <script type="text/javascript" src="js/su/widget/window/msg.js"></script>
  
  <script type="text/javascript" src="js/su/widget/form/form.js"></script>
  <script type="text/javascript" src="js/su/widget/form/combobox.js"></script>
  <script type="text/javascript" src="js/su/widget/form/textbox.js"></script>
  <script type="text/javascript" src="js/su/widget/form/password.js"></script>
  <script type="text/javascript" src="js/su/widget/form/checkbox.js"></script>
  <script type="text/javascript" src="js/su/widget/form/button.js"></script>
  
  
  <title>Opening...</title>
  
  </head>
  
  <body id="login-body">
  
  <noscript>
      <meta http-equiv="refresh" content="0; url=error.html"/>
  </noscript>
  
  <style>
      #login-username, #form-login .password-text{
          height: 18px;
      }
      
  </style>
  
  <div class="top" id="login-main">
  	<div class="top-header" style="display: none;">
      	<div class="top-header-wrap" >
          	<h1 id="product-tag"></h1>
              <div id="top-control" class="top-control">
                  <input id="lan-select" tabindex="0" class="lan-select-container"/>
              </div>
          </div>
      </div>
      
      <div class="top-main">
      	<div class="top-main-wrap" style="margin-top: 94px;">
              <div class="top-content">
                  <div class="logon_logo" style="height:82px;background: #36444b;">
                      <img align="left" style="cursor:pointer;" onclick="javascript:window.open('http://www.tp-link.com/en/');" src="themes/old/img/LOGO.png"/>
                  </div>
              	<div class="top-content-wrap" id="top-content">
                      <form id="form-login" method="post" action="/cgi-bin/luci">
                          <div class="login-field">
                              <label id="login-username-label" style="display: inline-block;width: 69px;">
                                  <!--<span class="icon"></span>-->
                                  <span class="text"></span>
                              </label>
                              <input id="login-username"   tabindex="1" name="username" type="text" />
                          </div>
                          <div class="login-field">
                              <label id="login-password-label" style="display: inline-block;width: 69px;">
                                  <!--<span class="icon"></span>-->
                                  <span class="text"></span>
                              </label>
                              <input id="login-password" tabindex="2" name="password" type="password" />
                              <a class="link" href="javascript:void(0);" id="btn-forget-password" style="display: none;"></a>
                          </div>
                          <!--<div>
                              <input id="show-characters" />
                          </div>-->
                          <button id="login-btn" type="button"></button>
                          <button id="reset-btn" type="button"></button>
                      </form>
                      
                  </div>
              </div>
  
              <p class="logon_footer">
                  <!--<span class="logon_cr">Copyright</span>
                  <span class="logon_copy">&copy;</span>
                  <span class="logon_c_year" id="span_date">2016</span>-->
                  <span class="logon_tp"></span>
              </p>
              
              <div class="top-footer">
                  <div class="top-footer-wrap">
                      <span class="help-faq">
                          <a id="btn-faq" class="btn-faq" target="_blank" href="http://www.tp-link.com/en/Support/"></a>
                      </span>
                  </div>
              </div>
          </div>
      </div>
  </div>
  
  <!-- forget password 内容 -->
  <div id="forget-password-msg-container" class="form-panel" style="display:none;">
      <h4 class="title forget-password-title" id="forget-password-title"></h4>
      <div id="forget-password-situation-0" class="forget-password-situation">
          <div>
              <p class="note">
                  <!--<span class="title note-title"></span>-->
                  <span class="" id="forget-password-situation-0-info"></span>
              </p>
          </div>
      </div>
  
      <div id="forget-password-situation-1" class="forget-password-situation">
          <div>
              <p class="note first-line" id="forget-password-situation-1-info"></p>
              <input id="txt-verification-code" />
              <button id="btn-receive-code"></button>
              <button id="btn-forget-password-confirm"></button>
              <div id="send-failed-info-container"><span id="send-failed-info" class="error-tips"></span></div>
              <p class="note">
                  <span class="title note-title"></span>
                  <span class="text" id="forget-password-situation-1-note"></span>
              </p>
          </div>
      </div>
  
      <div id="forget-password-prompt" class="form-prompt successed">
          <div class="bg"></div>
          <div class="content">
              <span class="icon"></span>
              <span id="forget-password-success-prompt" class="text text-successed"></span>
              <!-- <span class="text text-failed"></span> -->
          </div>
      </div>
  </div>
  
  <!-- user confilct 内容 -->
  <div id="user-conflict-msg-container" class="conflict-situation">
      <div>
          <h4 class="title">
              <span class="icon"></span>
              <span class="text" id="user-conflict-situation"></span>
          </h4>
          <div class="content">
              <span id="user-conflict-situation-info"></span>
          </div>
      </div>
  </div>
  
  <!-- ip conflict 内容 -->
  <div id="ip-conflict-msg-container">
  
      <div id="ip-conflict-situation-0" class="conflict-situation">
          <h4 class="title">
              <span class="icon"></span>
              <span class="text" id="ip-conflict-situation-0-title"></span>
          </h4>
          <div class="content">
              <span id="ip-conflict-situation-0-info"></span>
              <a class="link" id="ip-conflict-situation-0-new" href="javascript:void(0);"></a>
              <span id="ip-conflict-situation-0-end"></span>
          </div>
  
          <button type="button" id="ip-conflict-situation-0-btn-continue"></button>
      </div>
  
      <div id="ip-conflict-situation-1" class="conflict-situation">
          <h4 class="title">
              <span class="icon"></span>
              <span class="text" id="ip-conflict-situation-1-title"></span>
          </h4>
          <div class="content">
              <span id="ip-conflict-situation-1-info"></span>
              <a class="link" id="ip-conflict-situation-1-new" href="javascript:void(0);"></a>
              <span id="ip-conflict-situation-1-or"></span>
              <a class="link" id="ip-conflict-situation-1-dst" href="javascript:void(0);"></a>
              <span id="ip-conflict-situation-1-end"></span>
          </div>
      </div>
  
  </div>
  
  <!-- 无开cookie的操作提示 -->
  <div id="no-cookie-msg-container" class="hidden warning">
      <h4 class="title">
          <span class="icon"></span>
          <span class="text" id="no-cookie-text"></span>
      </h4>
  </div>
  
  <!-- 最长尝试次数超时 -->
  <div id="max-attempts-msg-container" class="hidden warning">
      <h4 class="title">
          <span class="icon"></span>
          <span class="text" id="max-attempts-text"></span>
      </h4>    
  </div>
  
  
  <!-- 剩余尝试次数 -->
  <div id="left-attempts-msg-container" class="hidden warning">
      <h4 class="title">
          <span class="icon"></span>
          <span class="text" id="left-attempts-text"></span>
      </h4>    
  </div>
  
  
  
  <script type="text/javascript">
  //<![CDATA[
  $(document).ready(function(e){
      /*加载产品信息*/
      var MODEL_NAME = $.su.locale.model;
      var MODEL_DESC = MODEL_NAME.match(/[^ ]*/);
      if(typeof MODEL_DESC != "string"){
          MODEL_DESC = MODEL_DESC[0];
      }
      document.title = MODEL_DESC;
  
      var URL_IP_CONFLICT = $.su.url("/domain_login?form=dlogin");
      var URL_USER_CONFLICT = $.su.url("/login?form=limit");
      var URL_FORGET_PASSWORD = $.su.url("/forget_password?form=password");
  
      var URL_VERIFY_CODE = $.su.url("/forget_password?form=vercode");
  
      var URL_LOGIN = $.su.url("/login?form=login");
  
      var name_validate = false;
      var pwd_validate = false;
      /*var URL_IP_CONFLICT = "./data/login.json";
      var URL_USER_CONFLICT = "./data/login.json";
      var URL_FORGET_PASSWORD = "./data/login.json";
      var URL_VERIFY_CODE = "./data/login.json";
      var URL_LOGIN = "./data/login.json";*/
  
      var support_url = "http://www.tp-link.com/" + ($.su.locale.locale.substring(0,2) || "en") + "/Support/";
      $("#btn-faq").attr("href",support_url);
      
      //ip冲突部分内容
      var ipConflictProxy = new $.su.Proxy({
          url: URL_IP_CONFLICT,
          autoLoad: false
      });
  
  
      /*判断出厂跳转*/
      var URL_SAVE_CONFIG = $.su.url("/userconfig?form=cfg_save");
      var saveConfigProxy = new $.su.Proxy({
          url: URL_SAVE_CONFIG,
          autoLoad: false
      });
      $("div.top-content").hide();
       saveConfigProxy.read({},function(data){
          if((data.dft_pwd_status == "Default") && (data.config_status == "Default")){
              isFactory = true;
              $(".logon_footer").append("<a href=\"./account.html\" id=\"jump\"></a>");   
              $("body").hide();
              var timeout = setTimeout(function(){
                  $("input[type=password]").val("admin");
                  $("input[type=text]").val("admin");
                  $("input#login-password").password("doEncrypt");
                  loginForm.form("submit", {
                      "method": "login", "type": "default"
                  }, function(data, status, xhr){
                      var token = data.stok || (function(){
                          var stok = "12345",
                              href = top.location.href;
                          var stokPos = href.indexOf("stok=");
                          if (stokPos >= 0){
                              stok = href.substring(stokPos+5);
                          };
                          return stok;
                      })();
      
                      if (localStorage){
                          localStorage.setItem("token", token);
                          document.getElementById("jump").click();//兼容IE8
                      };
                  });
              }, 200);
  
          }
  
          if(data.redirect_https == "on")
          {
              if(window.location.protocol=="http:")
              {
                  window.location.href = "https://"+window.location.hostname + ":"+data.https_port;
              }
              else
              {
                  $("div.top-content").show();
              }
          
          }
          else
          {
              $("div.top-content").show();
          }
  
  		if (data.controller_ip)
  		{
  			$("div#login-main p.logon_footer span.logon_tp").html($.su.CHAR.LOGIN.CONTROLLER_TIP + data.controller_ip);
  			$("div#login-main p.logon_footer span.logon_tp").css("color", "#c11c65");
  			$("div#login-main p.logon_footer span.logon_tp").css("font-size", "15px");
  			$("div#login-main p.logon_footer").css("padding-top", "12px");
  		}
      },function(errorcode){
          location.href = "./error.html";
      });
  
      var ipConflictMsg = $("div#ip-conflict-msg-container").msg({
          closeBtn: false,
          type: "window",
          cls: "l"
      });
  
      $("button#ip-conflict-situation-0-btn-continue").button({
          text: $.su.CHAR.LOGIN.CONTINUE,
          handler: function(){
              ipConflictMsg.msg("close");
              loginMain.fadeIn(200);
          },
          cls: "submit btn-continue-conflict"
      });
  
      $("span#ip-conflict-situation-0-title").html($.su.CHAR.LOGIN.IMPORTANT_NOTICE);
      $("span#ip-conflict-situation-0-info").html($.su.CHAR.LOGIN.IMPORTANT_UPDATE_INFO);
      $("span#ip-conflict-situation-0-end").html($.su.CHAR.LOGIN.END);
  
      $("span#ip-conflict-situation-1-title").html($.su.CHAR.LOGIN.IMPORTANT_NOTICE);
      $("span#ip-conflict-situation-1-info").html($.su.CHAR.LOGIN.IMPORTANT_UPDATE_INFO);
      $("span#ip-conflict-situation-1-or").html($.su.CHAR.LOGIN.OR);
      $("span#ip-conflict-situation-1-end").html($.su.CHAR.LOGIN.END2);
      //$("div#login-main p.logon_footer span.logon_tp").html($.su.CHAR.LOGIN.TP_COPYRIGHT);
      $("a#ip-conflict-situation-1-new").on("click", function(e){
          ipConflictMsg.msg("close");
          loginMain.fadeIn(200);
      });
  
      //忘记密码部分
      var forgetPasswordProxy = new $.su.Proxy({
          url: URL_FORGET_PASSWORD,
          autoLoad: false
      });
  
      var verifyCodeProxy = new $.su.Proxy({
          url: URL_VERIFY_CODE,
          autoLoad: false,
          preventErrorDefault: true
      });
      
      //忘记密码部分
      $("a#btn-forget-password").html($.su.CHAR.LOGIN.FORGET_PASSWORD).on("click", function(e){
          forgetPasswordProxy.read({}, function(data, status, xhr){
              if (data){
                  if (data.enable_rec){
                      //跳转到有emal的页面
                      $("div#forget-password-situation-0").css("display", "none");
                      $("div#forget-password-situation-1").fadeIn(150);
                      var h = forgetPasswordInfo.html($.su.CHAR.LOGIN.FORGET_PASSWORD_INFO_1.replace("%EMAIL%", data.email));
                  }else{
                      $("div#forget-password-situation-0").fadeIn(150);
                      $("div#forget-password-situation-1").css("display", "none");
                  };
  
                  clearInterval(receiveCodeTime);
                  receiveCodeTimeCount = 60;
                  btnReceiveCode.button("enable").button("setText", $.su.CHAR.LOGIN.RECEIVE_CODE);
                  forgetPasswordMsg.msg("show");
              };
          });
      });
      
      var forgetPasswordMsg = $("div#forget-password-msg-container").msg({
          cls: "l",
          type: "window"
      });
      
      $("h4#forget-password-title").html($.su.CHAR.LOGIN.FORGET_PASSWORD);
      $("span#forget-password-situation-0-info").html($.su.CHAR.LOGIN.FORGET_PASSWORD_INFO_0);
      $("span#forget-password-success-prompt").html($.su.CHAR.OPERATION.SUCCESSED);
  
      var forgetPasswordInfo = $("p#forget-password-situation-1-info").html($.su.CHAR.LOGIN.FORGET_PASSWORD_INFO_1);
      var forgetPasswordSendFailedInfo = $("span#send-failed-info").css("display", "none").html($.su.CHAR.LOGIN.FORGET_PASSWORD_SEND_FAILED);
      var verificationCode = $("input#txt-verification-code").textbox({
          fieldLabel: $.su.CHAR.LOGIN.VERIFICATION_CODE,
          labelCls: "xs",
          cls: "inline-block"
      }).on("keyup focus blur", function(){
          if (codeLock && $(this).val()){
              btnFogetPasswordConfirm.button("enable");
          }else{
              btnFogetPasswordConfirm.button("disable");
          };
          return true;
      });
  
      var receiveCodeTime = 0,
          receiveCodeTimeCount = 60,
          codeLock = false;
  
      var btnReceiveCode = $("button#btn-receive-code").button({
          text: $.su.CHAR.LOGIN.RECEIVE_CODE,
          cls: "inline-block btn-receive-code",
          handler: function(){
              forgetPasswordSendFailedInfo.fadeOut(150);
  
              verifyCodeProxy.read({}, function(){
                  codeLock = true;
                  btnReceiveCode.button("disable").button("setText", receiveCodeTimeCount + $.su.CHAR.LOGIN.SEC);
  
                  clearInterval(receiveCodeTime);
                  receiveCodeTime = setInterval(function(){
                      if (receiveCodeTimeCount > 0){
                          receiveCodeTimeCount--;
  
                          btnReceiveCode.button("setText", receiveCodeTimeCount + $.su.CHAR.LOGIN.SEC);
                      }else{
                          clearInterval(receiveCodeTime);
                          receiveCodeTimeCount = 60;
  
                          btnReceiveCode.button("enable").button("setText", $.su.CHAR.LOGIN.RECEIVE_CODE);
                      };
                      //console.log("run");
                  }, 1*1000);
              }, function(){
                  forgetPasswordSendFailedInfo.fadeIn(150);
              });
          }
      });
  
      var btnFogetPasswordConfirm = $("button#btn-forget-password-confirm").button({
          text: $.su.CHAR.LOGIN.CONFIRM,
          fieldLabel: "",
          labelCls: "xs",
          cls: "submit btn-confirm",
          handler: function(){
              forgetPasswordSendFailedInfo.fadeOut(150);
              var code = $.trim(verificationCode.textbox("getValue"));
              verifyCodeProxy.write({
                  "operation": "write",
                  "vercode": code
              }, function(){
                  var prompt = $("div#forget-password-prompt").fadeIn(150, function(){
                      setTimeout(function(){
                         /* prompt.fadeOut(150, function(){
                              forgetPasswordMsg.msg("close");
                          });*/
                          prompt.css("display", "none");
                          forgetPasswordMsg.msg("close");
  
                      }, 700);
                  })
              }, function(){
                  verificationCode.textbox("setError",$.su.CHAR.ERROR["00000140"]);
              }, function(){
                  verificationCode.textbox("setError",$.su.CHAR.ERROR["00000140"]);
              });
          }
      }).button("disable");
      
      $("span.note-title").text($.su.CHAR.OPERATION.NOTE);
      $("span#forget-password-situation-1-note").text($.su.CHAR.LOGIN.FORGET_PASSWORD_NOTE);
      
      //用户登录冲突部分
      var userConflictMsg = $("div#user-conflict-msg-container").msg({
          closeBtn: false,
          cls: "l",
          type: "alert",
          okHandler: function(){
              $("button#login-btn").button("enable");
          }
      });
  
      //主页面内容部分
      var loginMain = $("div#login-main");
  
      var lanSelectCombo = $("input#lan-select").combobox({
          cls: "top-lan-select",
          tabindex: -1,
          items: [
              {"value": "bg_BG", "name": $.su.CHAR.LANGUAGE.BG_BG},
              {"value": "cs_CZ", "name": $.su.CHAR.LANGUAGE.CS_CZ},
              {"value": "de_DE", "name": $.su.CHAR.LANGUAGE.DE_DE},
              {"value": "en_US", "name": $.su.CHAR.LANGUAGE.EN_US},
              {"value": "es_ES", "name": $.su.CHAR.LANGUAGE.ES_ES},
              {"value": "fr_FR", "name": $.su.CHAR.LANGUAGE.FR_FR},
              {"value": "it_IT", "name": $.su.CHAR.LANGUAGE.IT_IT},
              {"value": "nl_NL", "name": $.su.CHAR.LANGUAGE.NL_NL},
              {"value": "pl_PL", "name": $.su.CHAR.LANGUAGE.PL_PL},
              {"value": "pt_PT", "name": $.su.CHAR.LANGUAGE.PT_PT},
              {"value": "ro_RO", "name": $.su.CHAR.LANGUAGE.RO_RO},
              {"value": "ru_RU", "name": $.su.CHAR.LANGUAGE.RU_RU},
              {"value": "sk_SK", "name": $.su.CHAR.LANGUAGE.SK_SK},
              {"value": "th_TH", "name": $.su.CHAR.LANGUAGE.TH_TH},
              {"value": "tr_TR", "name": $.su.CHAR.LANGUAGE.TR_TR},
              {"value": "uk_UA", "name": $.su.CHAR.LANGUAGE.UK_UA},
              {"value": "vi_VN", "name": $.su.CHAR.LANGUAGE.VI_VN},
              {"value": "zh_CN", "name": $.su.CHAR.LANGUAGE.ZH_CN},
              {"value": "zh_TW", "name": $.su.CHAR.LANGUAGE.ZH_TW}
          ],
          fieldLabel: null
      }).on("ev_click", function(e, vOld, vNew){
          if (vOld[0] == vNew[0]){
              return;
          };
          $.su.locale.set(vNew[0], function(){
              lanSelectCombo.combobox("setValue", [$.su.locale.locale]);
          }, function(){
              lanSelectCombo.combobox("setValue", [$.su.locale.locale]);
          });
      }).combobox("setValue", [$.su.locale.locale]);
  
      //document.title = $.su.locale.model;
      //$("title").text($.su.locale.model);
      $("h1#product-tag").html($.su.locale.model);
      $("a#btn-faq").html($.su.CHAR.INDEX.HELP_SUPPORT);
  
      //console.log($.su.locale.force)
      if ($.su.locale.force != false){
          lanSelectCombo.combobox("hide");
      };
  
      $("label#login-username-label").find(".text").html($.su.CHAR.LOGIN.USERNAME);
      $("input#login-username").textbox({
          //hint: $.su.CHAR.LOGIN.USERNAME,
          fieldLabel: null,
          allowBlank: false,
          vtype: "ascii_visible",
          maxLength: 64,
          minLength: 1,
          inputCls: 'mll',
          tabindex:0,
          cls: "inline-block login-text"
      }).on("ev_change",function(){
          /*name_validate = $(this).textbox("validate",false);
          if(name_validate === true && pwd_validate === true){
              $("button#login-btn").button("enable");
          }
          else{
              $("button#login-btn").button("disable");
          }*/
      }).on("blur",function(){
          //$("input#login-username").trigger("ev_change");
      }).on("keyup",function(e){
          var uname = $("input#login-username").textbox("getValue"); 
          var pwd = $("input#login-password").password("getValue");
          if (e.keyCode == 13 && uname.length >= 1 && uname.length <= 64 && pwd.length >= 6 && pwd.length <= 64){
              if(!$("button#login-btn").prop('disabled')){
                  $("button#login-btn").button("disable");
                  $("input#login-password").password("doEncrypt");
                  if (checkCookie()){
                      doLogin();
                  };
                  setTimeout(function(){
                      $("button#login-btn").button("enable");
                  },500);
              }
          }
      });
  
      $("label#login-password-label").find(".text").html($.su.CHAR.LOGIN.PASSWORD);
      var isFactory = false;
      $("input#login-password").password({
          showLevel: false,
          //hint: $.su.CHAR.LOGIN.PASSWORD,
          fieldLabel: null,
          maxLength: 64,
          minLength: 6,
          inputCls: 'mll',
          allowBlank: false,
          vtype: "ascii_visible",
          validator:function(val){
              if( !isFactory && (val.length < 6 || val.length > 64) )
              {                                
                  return $.su.CHAR.ERROR["00000073"];
              }
              return true;
          },
          //allowVisible: true,
          cls: "inline-block login-text"
      }).on("ev_change", function(e, value, key, keyCode){
          if (key == "Enter" || keyCode == 13){
              if(!$("button#login-btn").prop('disabled')){
                  $("button#login-btn").button("disable");
                  $("input#login-password").password("doEncrypt");
                  if (checkCookie()){
                      doLogin();
                  };
                  setTimeout(function(){
                      $("button#login-btn").button("enable");
                  },500);
              }
          } 
          /*else{
              pwd_validate = $(this).password("validate",false);
              if(name_validate === true && pwd_validate === true){
                  $("button#login-btn").button("enable");
              }
              else{
                  $("button#login-btn").button("disable");
              }
          }*/
      });
  
      $("input#login-password").password("getContainer").delegate("input.password-text", "focus", function(e){
          $("input#login-username").textbox("hideErrorTips");
      });
  
      /*$("input#login-username").textbox("getContainer").delegate("input.text-text", "focus", function(e){
          $("input#login-password").password("hideErrorTips");
      });*/
  
      $("button#reset-btn").button({
          text: $.su.CHAR.LOGIN.RESET,
          handler: function(e){
              loginForm.form("reset");
              $("input[type=password]").val(null);
              //$("#login-username").setValue(null);
              //$("#login-username").setValue(null);
          },
          cls: "submit inline-block"
      });
  
      var loginProxy = new $.su.Proxy({
          url: URL_LOGIN
      });
  
      var loginForm = $("form#form-login").form({
          proxy: loginProxy,
          showPrompt: false,
          fields: [
              {name: "username"},
              {name: "password"}
          ]
      });
  
      var doLogin = function(){
          loginForm.form("submit", {
              "method": "login"
          }, function(data, status, xhr){
              var token = data.stok || (function(){
                  var stok = "12345",
                      href = top.location.href;
                  var stokPos = href.indexOf("stok=");
                  if (stokPos >= 0){
                      stok = href.substring(stokPos+5);
                  };
                  return stok;
              })();
  
              if (localStorage){
                  localStorage.setItem("token", token);
                  location.href = "./index.html";
              };
              
          }, function(errorcode, others, data){
              switch (errorcode){        
                  case "710":
                      $("span#user-conflict-situation").html($.su.CHAR.LOGIN.USER_CONFLICT);
                      if(data.logined_remote)
                      {
                          var c = $.su.CHAR.LOGIN.USER_CONFLICT_INFO_2.replace("%USER%", data.logined_user).replace("%IP%", data.logined_ip)
                      }
                      else
                      {
                          
                      var c = $.su.CHAR.LOGIN.USER_CONFLICT_INFO.replace("%USER%", data.logined_user).replace("%HOST%", data.logined_host).replace("%IP%", data.logined_ip).replace("%MAC%", data.logined_mac);
                      }
                      
                      $("span#user-conflict-situation-info").html(c)
                      userConflictMsg.msg("show");
                      break;
                  case "700":
                      /*loginForm.form("prompt", false, $.su.CHAR.LOGIN.LOGIN_FAILED);*/
                      
                      var num1 = data.failureCount;
                      var num2 = data.attemptsAllowed;
                      var num3 = num2 + num1;
                      if(num1 >= num2)
                      {
                          var str = $.su.CHAR.LOGIN.LOGIN_FAILED_COUNT.replace("%num1", num1);
                          str = str.replace("%num2", num2);
                          // loginForm.form("prompt", false, str, 4000);
                          $("span#left-attempts-text").html(str);
                          leftAttemptsMsg.msg("show");
                      /*} else if (num2 == 0){
                          var str = $.su.CHAR.ERROR["00000089"].replace("%num", num3);
                          $("span#max-attempts-text").html(str);
                          maxAttemptsMsg.msg("show");*/
                      } else {
                      
                          loginForm.form("prompt", false, $.su.CHAR.LOGIN.LOGIN_FAILED);
                          //$("button#login-btn").button("enable");
                      }
                      
                      break;
                  
                  case "709":
                      var num1 = data.failureCount;
                      var num2 = data.attemptsAllowed;
                      var num3 = num2 + num1;
                      var str = $.su.CHAR.ERROR["00000089"].replace("%num", num3);
                      $("span#max-attempts-text").html(str);
                      maxAttemptsMsg.msg("show");
                      break;
                  
                  default:
                  
              };
          });
      };
  
  
      $("button#login-btn").button({
          text: $.su.CHAR.LOGIN.LOGIN,
          handler: function(e){
              $("button#login-btn").button("disable");
              if (checkCookie()){
                  doLogin();
              };
              setTimeout(function(){
                  $("button#login-btn").button("enable");
              },500);
          },
          cls: "submit login-btn inline-block"
      });/*.on("mousedown",function(){
           $("button#login-btn").button("disable");
              if (checkCookie()){
                  doLogin();
              };
              setTimeout(function(){
                  $("button#login-btn").button("enable");
              },500);
      });*/
      //$("button#login-btn").button("disable");
  
      //登录流程
     /* ipConflictProxy.read({}, function(data){
          if (data && data.conflict === true){
              var sit0 = $("div#ip-conflict-situation-0");
              var sit1 = $("div#ip-conflict-situation-1");
              switch (data.mode){
                  case 0:
                      sit0.css("display", "block");
                      sit1.css("display", "none");
  
                      $("a#ip-conflict-situation-0-new").html(data.new_addr);
                      break;
                  case 1:
                      sit0.css("display", "none");
                      sit1.css("display", "block");
  
                      $("a#ip-conflict-situation-1-dst").html(data.dst_addr).attr("href", "http://" + data.dst_addr + data.dst_webpath);
                      $("a#ip-conflict-situation-1-new").html(data.new_addr);
                      break;
              };
              loginMain.css("display", "none");
              ipConflictMsg.msg("show");
          }else{
              ipConflictMsg.msg("close");
              loginMain.fadeIn(200);
          };
  
          //console.log(data.redirect)
  
          if (data && data.redirect){
              location.href = data.redirect;
          };
  
      }, function(e){
          ipConflictMsg.msg("close");
          loginMain.fadeIn(200);
      }, function(e){
          ipConflictMsg.msg("close");
          loginMain.fadeIn(200);
      });*/
      
      ipConflictMsg.msg("close");
      loginMain.fadeIn(200);
  
      
      /*cookie check*/
      $("span#no-cookie-text").html($.su.CHAR.LOGIN.NO_COOKIE);
      var noCookieMsg = $("div#no-cookie-msg-container").msg({
          type: "alert",
          cls: "m",
          closeBtn: false,
          okHandler: function(){
              $("button#login-btn").button("enable");
          }
      });
  
      /*max attempt*/
      //$("span#max-attempts-text").html($.su.CHAR.ERROR["00000089"]);
      var maxAttemptsMsg = $("div#max-attempts-msg-container").msg({
          type: "alert",
          cls: "m",
          closeBtn: false,
          okHandler: function(){
              $("button#login-btn").button("enable");
          }
      })
  
      /*left attempt*/
      // $("span#left-attempts-text").html($.su.CHAR.ERROR.LOGIN_FAILED_COUNT);
      var leftAttemptsMsg = $("div#left-attempts-msg-container").msg({
          type: "alert",
          cls: "m",
          closeBtn: false,
          okHandler: function(){
              $("button#login-btn").button("enable");
          }
      })
  
  
      var checkCookie = function(){
          try{
              localStorage.setItem("private", 100);
              if (!navigator.cookieEnabled){
                  noCookieMsg.msg("show");
                  return false;
              };
          }catch(e){
              noCookieMsg.msg("show");
              return false;
          };
          noCookieMsg.msg("close");
          return true;
  
      };
  
      checkCookie();
  
      //$.su.loading.show();
      $.su.loading.hide();
      setTimeout(function(){
          $("input#login-username").parent().parent().find('input.text-hint').click();
          // document.getElementById('login-username').focus();
      }, 1000);
  
      /*调整登陆框高度*/
      var actHeight = parseInt(document.documentElement.clientHeight);
      var marginTop = actHeight * 0.382 - 306 / 2;
      $($.find("div.top-main-wrap")).css("marginTop", marginTop.toString() + "px");
  
      //document.getElementById("login-username").focus();
      $("input#login-username").focus();
   
      
  });
  //]]>
  </script>
  </body>
  </html>
  
services.body_hash_sha1: sha1:d238f7a84bd39f8df496cf776ee0e5a0bb6b6f56
services.supported_versions: HTTP/1.1
services.protocol: IKE
services.transport_protocol: UDP
services.scan_time: 2025-07-28T00:56:12.185894
services.value: network.device.vpn
services.protocol: L2TP
services.transport_protocol: UDP
services.scan_time: 2025-07-27T23:33:03.823284
services.hostname: ER605
services.vendor_name: xelerance.com
services.result_meaning: General request to clear control connection
services.error_meaning: No general error
services.error_message: Timeout
services.protocol: HTTP
services.transport_protocol: TCP
services.scan_time: 2025-07-27T14:17:22.571000
services.banner: HTTP/1.1 200 OK
  Content-Type: text/html
  Last-Modified: Sat, 13 Apr 2024 06:20:23 GMT
  Accept-Ranges: bytes
  ETag: "96771ab6a8dda1:0"
  Server: Microsoft-IIS/10.0
  X-Powered-By: ASP.NET
  Date:  <REDACTED>
  Content-Length: 703
  
services.source: OSI_APPLICATION_LAYER
services.part: a
services.vendor: Microsoft
services.product: IIS
services.version: 10.0
services.cpe: cpe:2.3:a:microsoft:internet_information_services:10.0:*:*:*:*:*:*:*
services.source: OSI_APPLICATION_LAYER
services.part: a
services.vendor: Microsoft
services.product: ASP.NET
services.cpe: cpe:2.3:a:microsoft:asp.net:*:*:*:*:*:*:*:*
services.source: OSI_APPLICATION_LAYER
services.part: o
services.vendor: Microsoft
services.source: OSI_APPLICATION_LAYER
services.part: o
services.vendor: Microsoft
services.product: Windows
services.cpe: cpe:2.3:o:microsoft:windows:*:*:*:*:*:*:*:*
services.path: /
services.endpoint_type: HTTP
services.scan_time: 2025-07-27T14:17:22.571000
services.uri: http://125.99.53.50:8080/
services.protocol: HTTP/1.1
services.status_reason: OK
services.key: Last-Modified
services.headers: Sat, 13 Apr 2024 06:20:23 GMT
services.key: Server
services.headers: Microsoft-IIS/10.0
services.key: Accept-Ranges
services.headers: bytes
services.key: Content-Length
services.headers: 703
services.key: Content-Type
services.headers: text/html
services.key: Date
services.headers: <REDACTED>
services.key: ETag
services.headers: "96771ab6a8dda1:0"
services.key: X-Powered-By
services.headers: ASP.NET
services.html_tags: <title>IIS Windows Server</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
services.body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>IIS Windows Server</title>
  <style type="text/css">
  <!--
  body {
  	color:#000000;
  	background-color:#0072C6;
  	margin:0;
  }
  
  #container {
  	margin-left:auto;
  	margin-right:auto;
  	text-align:center;
  	}
  
  a img {
  	border:none;
  }
  
  -->
  </style>
  </head>
  <body>
  <div id="container">
  <a href="http://go.microsoft.com/fwlink/?linkid=66138&amp;clcid=0x409"><img src="iisstart.png" alt="IIS" width="960" height="600" /></a>
  </div>
  </body>
  </html>
services.body_hash_sha1: sha1:6e8749068fd6b842992e554b4fea32f9089318ad
services.supported_versions: HTTP/1.1
services.protocol: HTTP
services.transport_protocol: TCP
services.scan_time: 2025-07-27T14:20:22.468759
services.banner: HTTP/1.1 200 OK
  Connection: Keep-Alive
  Transfer-Encoding: chunked
  Keep-Alive: timeout=20
  ETag: "cc9-82f3-607808f1"
  Last-Modified: Thu, 15 Apr 2021 09:35:45 GMT
  Date:  <REDACTED>
  Content-Type: text/html
  Content-Length: 33523
  
services.version_selected: TLSv1_2
services.cipher_selected: TLS_RSA_WITH_AES_128_GCM_SHA256
services.ja4s: t120200_009c_2412b79bd618
services.version: TLSv1_2
services.ja4s: t120200_009c_2412b79bd618
services.issuer_dn: C=CN, ST=ShenZhen, L=ShenZhen, CN=TP-Link
services.common_name: TP-Link
services.country: CN
services.locality: ShenZhen
services.province: ShenZhen
services.subject_dn: C=CN, ST=ShenZhen, L=ShenZhen, CN=TP-Link
services.common_name: TP-Link
services.country: CN
services.locality: ShenZhen
services.province: ShenZhen
services.scan_time: 2025-07-27T02:43:14.960645
services.value: jquery
services.value: login-page
services.path: /webpages/login.html
services.endpoint_type: HTTP
services.scan_time: 2025-07-27T14:20:22.468759
services.uri: https://125.99.53.50:8081/webpages/login.html
services.protocol: HTTP/1.1
services.status_reason: OK
services.key: Keep-Alive
services.headers: timeout=20
services.key: Content-Type
services.headers: text/html
services.key: Date
services.headers: <REDACTED>
services.key: ETag
services.headers: "cc9-82f3-607808f1"
services.key: Transfer-Encoding
services.headers: chunked
services.key: Last-Modified
services.headers: Thu, 15 Apr 2021 09:35:45 GMT
services.key: Connection
services.headers: Keep-Alive
services.key: Content-Length
services.headers: 33523
services.html_tags: <title>Opening...</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta http-equiv="refresh" content="0; url=error.html"/>
services.body: ﻿<!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">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <link rel="shortcut icon" href="favicon.ico"/>
  <!-- <link type="text/css" href="css/reset.css" rel="stylesheet" /> -->
  <link type="text/css" href="css/widget.css" rel="stylesheet" />
  
  <link type="text/css" href="themes/old/css/widget.css" rel="stylesheet" />
  <link type="text/css" href="themes/old/css/style.css" rel="stylesheet" />
  
  
  <script type="text/javascript" src="js/libs/jquery.min.js"></script>
  
  <script type="text/javascript" src="js/su/locale.js"></script>
  <script type="text/javascript">
  //<![CDATA[
      try{
          $.su.locale.URL_LAN_CHECK =  $.su.url("/locale?form=lang");//"./data/lan.json";
          $.su.locale.get();
      }catch(error){
          location.href = "./error.html";
      };
  
  </script>
  <!--<script type="text/javascript" src="http://192.168.1.101:1070/target/target-script-min.js#anonymous"></script>-->
  <script type="text/javascript" src="js/libs/encrypt.js"></script>
  <!--<script type="text/javascript" src="js/su/su.full.min.js"></script>-->
  <script type="text/javascript" src="js/su/su.js"></script>
  
  <script type="text/javascript" src="js/su/data/proxy.js"></script>
  <script type="text/javascript" src="js/su/widget/widget.js"></script>
  <script type="text/javascript" src="js/su/widget/window/msg.js"></script>
  
  <script type="text/javascript" src="js/su/widget/form/form.js"></script>
  <script type="text/javascript" src="js/su/widget/form/combobox.js"></script>
  <script type="text/javascript" src="js/su/widget/form/textbox.js"></script>
  <script type="text/javascript" src="js/su/widget/form/password.js"></script>
  <script type="text/javascript" src="js/su/widget/form/checkbox.js"></script>
  <script type="text/javascript" src="js/su/widget/form/button.js"></script>
  
  
  <title>Opening...</title>
  
  </head>
  
  <body id="login-body">
  
  <noscript>
      <meta http-equiv="refresh" content="0; url=error.html"/>
  </noscript>
  
  <style>
      #login-username, #form-login .password-text{
          height: 18px;
      }
      
  </style>
  
  <div class="top" id="login-main">
  	<div class="top-header" style="display: none;">
      	<div class="top-header-wrap" >
          	<h1 id="product-tag"></h1>
              <div id="top-control" class="top-control">
                  <input id="lan-select" tabindex="0" class="lan-select-container"/>
              </div>
          </div>
      </div>
      
      <div class="top-main">
      	<div class="top-main-wrap" style="margin-top: 94px;">
              <div class="top-content">
                  <div class="logon_logo" style="height:82px;background: #36444b;">
                      <img align="left" style="cursor:pointer;" onclick="javascript:window.open('http://www.tp-link.com/en/');" src="themes/old/img/LOGO.png"/>
                  </div>
              	<div class="top-content-wrap" id="top-content">
                      <form id="form-login" method="post" action="/cgi-bin/luci">
                          <div class="login-field">
                              <label id="login-username-label" style="display: inline-block;width: 69px;">
                                  <!--<span class="icon"></span>-->
                                  <span class="text"></span>
                              </label>
                              <input id="login-username"   tabindex="1" name="username" type="text" />
                          </div>
                          <div class="login-field">
                              <label id="login-password-label" style="display: inline-block;width: 69px;">
                                  <!--<span class="icon"></span>-->
                                  <span class="text"></span>
                              </label>
                              <input id="login-password" tabindex="2" name="password" type="password" />
                              <a class="link" href="javascript:void(0);" id="btn-forget-password" style="display: none;"></a>
                          </div>
                          <!--<div>
                              <input id="show-characters" />
                          </div>-->
                          <button id="login-btn" type="button"></button>
                          <button id="reset-btn" type="button"></button>
                      </form>
                      
                  </div>
              </div>
  
              <p class="logon_footer">
                  <!--<span class="logon_cr">Copyright</span>
                  <span class="logon_copy">&copy;</span>
                  <span class="logon_c_year" id="span_date">2016</span>-->
                  <span class="logon_tp"></span>
              </p>
              
              <div class="top-footer">
                  <div class="top-footer-wrap">
                      <span class="help-faq">
                          <a id="btn-faq" class="btn-faq" target="_blank" href="http://www.tp-link.com/en/Support/"></a>
                      </span>
                  </div>
              </div>
          </div>
      </div>
  </div>
  
  <!-- forget password 内容 -->
  <div id="forget-password-msg-container" class="form-panel" style="display:none;">
      <h4 class="title forget-password-title" id="forget-password-title"></h4>
      <div id="forget-password-situation-0" class="forget-password-situation">
          <div>
              <p class="note">
                  <!--<span class="title note-title"></span>-->
                  <span class="" id="forget-password-situation-0-info"></span>
              </p>
          </div>
      </div>
  
      <div id="forget-password-situation-1" class="forget-password-situation">
          <div>
              <p class="note first-line" id="forget-password-situation-1-info"></p>
              <input id="txt-verification-code" />
              <button id="btn-receive-code"></button>
              <button id="btn-forget-password-confirm"></button>
              <div id="send-failed-info-container"><span id="send-failed-info" class="error-tips"></span></div>
              <p class="note">
                  <span class="title note-title"></span>
                  <span class="text" id="forget-password-situation-1-note"></span>
              </p>
          </div>
      </div>
  
      <div id="forget-password-prompt" class="form-prompt successed">
          <div class="bg"></div>
          <div class="content">
              <span class="icon"></span>
              <span id="forget-password-success-prompt" class="text text-successed"></span>
              <!-- <span class="text text-failed"></span> -->
          </div>
      </div>
  </div>
  
  <!-- user confilct 内容 -->
  <div id="user-conflict-msg-container" class="conflict-situation">
      <div>
          <h4 class="title">
              <span class="icon"></span>
              <span class="text" id="user-conflict-situation"></span>
          </h4>
          <div class="content">
              <span id="user-conflict-situation-info"></span>
          </div>
      </div>
  </div>
  
  <!-- ip conflict 内容 -->
  <div id="ip-conflict-msg-container">
  
      <div id="ip-conflict-situation-0" class="conflict-situation">
          <h4 class="title">
              <span class="icon"></span>
              <span class="text" id="ip-conflict-situation-0-title"></span>
          </h4>
          <div class="content">
              <span id="ip-conflict-situation-0-info"></span>
              <a class="link" id="ip-conflict-situation-0-new" href="javascript:void(0);"></a>
              <span id="ip-conflict-situation-0-end"></span>
          </div>
  
          <button type="button" id="ip-conflict-situation-0-btn-continue"></button>
      </div>
  
      <div id="ip-conflict-situation-1" class="conflict-situation">
          <h4 class="title">
              <span class="icon"></span>
              <span class="text" id="ip-conflict-situation-1-title"></span>
          </h4>
          <div class="content">
              <span id="ip-conflict-situation-1-info"></span>
              <a class="link" id="ip-conflict-situation-1-new" href="javascript:void(0);"></a>
              <span id="ip-conflict-situation-1-or"></span>
              <a class="link" id="ip-conflict-situation-1-dst" href="javascript:void(0);"></a>
              <span id="ip-conflict-situation-1-end"></span>
          </div>
      </div>
  
  </div>
  
  <!-- 无开cookie的操作提示 -->
  <div id="no-cookie-msg-container" class="hidden warning">
      <h4 class="title">
          <span class="icon"></span>
          <span class="text" id="no-cookie-text"></span>
      </h4>
  </div>
  
  <!-- 最长尝试次数超时 -->
  <div id="max-attempts-msg-container" class="hidden warning">
      <h4 class="title">
          <span class="icon"></span>
          <span class="text" id="max-attempts-text"></span>
      </h4>    
  </div>
  
  
  <!-- 剩余尝试次数 -->
  <div id="left-attempts-msg-container" class="hidden warning">
      <h4 class="title">
          <span class="icon"></span>
          <span class="text" id="left-attempts-text"></span>
      </h4>    
  </div>
  
  
  
  <script type="text/javascript">
  //<![CDATA[
  $(document).ready(function(e){
      /*加载产品信息*/
      var MODEL_NAME = $.su.locale.model;
      var MODEL_DESC = MODEL_NAME.match(/[^ ]*/);
      if(typeof MODEL_DESC != "string"){
          MODEL_DESC = MODEL_DESC[0];
      }
      document.title = MODEL_DESC;
  
      var URL_IP_CONFLICT = $.su.url("/domain_login?form=dlogin");
      var URL_USER_CONFLICT = $.su.url("/login?form=limit");
      var URL_FORGET_PASSWORD = $.su.url("/forget_password?form=password");
  
      var URL_VERIFY_CODE = $.su.url("/forget_password?form=vercode");
  
      var URL_LOGIN = $.su.url("/login?form=login");
  
      var name_validate = false;
      var pwd_validate = false;
      /*var URL_IP_CONFLICT = "./data/login.json";
      var URL_USER_CONFLICT = "./data/login.json";
      var URL_FORGET_PASSWORD = "./data/login.json";
      var URL_VERIFY_CODE = "./data/login.json";
      var URL_LOGIN = "./data/login.json";*/
  
      var support_url = "http://www.tp-link.com/" + ($.su.locale.locale.substring(0,2) || "en") + "/Support/";
      $("#btn-faq").attr("href",support_url);
      
      //ip冲突部分内容
      var ipConflictProxy = new $.su.Proxy({
          url: URL_IP_CONFLICT,
          autoLoad: false
      });
  
  
      /*判断出厂跳转*/
      var URL_SAVE_CONFIG = $.su.url("/userconfig?form=cfg_save");
      var saveConfigProxy = new $.su.Proxy({
          url: URL_SAVE_CONFIG,
          autoLoad: false
      });
      $("div.top-content").hide();
       saveConfigProxy.read({},function(data){
          if((data.dft_pwd_status == "Default") && (data.config_status == "Default")){
              isFactory = true;
              $(".logon_footer").append("<a href=\"./account.html\" id=\"jump\"></a>");   
              $("body").hide();
              var timeout = setTimeout(function(){
                  $("input[type=password]").val("admin");
                  $("input[type=text]").val("admin");
                  $("input#login-password").password("doEncrypt");
                  loginForm.form("submit", {
                      "method": "login", "type": "default"
                  }, function(data, status, xhr){
                      var token = data.stok || (function(){
                          var stok = "12345",
                              href = top.location.href;
                          var stokPos = href.indexOf("stok=");
                          if (stokPos >= 0){
                              stok = href.substring(stokPos+5);
                          };
                          return stok;
                      })();
      
                      if (localStorage){
                          localStorage.setItem("token", token);
                          document.getElementById("jump").click();//兼容IE8
                      };
                  });
              }, 200);
  
          }
  
          if(data.redirect_https == "on")
          {
              if(window.location.protocol=="http:")
              {
                  window.location.href = "https://"+window.location.hostname + ":"+data.https_port;
              }
              else
              {
                  $("div.top-content").show();
              }
          
          }
          else
          {
              $("div.top-content").show();
          }
  
  		if (data.controller_ip)
  		{
  			$("div#login-main p.logon_footer span.logon_tp").html($.su.CHAR.LOGIN.CONTROLLER_TIP + data.controller_ip);
  			$("div#login-main p.logon_footer span.logon_tp").css("color", "#c11c65");
  			$("div#login-main p.logon_footer span.logon_tp").css("font-size", "15px");
  			$("div#login-main p.logon_footer").css("padding-top", "12px");
  		}
      },function(errorcode){
          location.href = "./error.html";
      });
  
      var ipConflictMsg = $("div#ip-conflict-msg-container").msg({
          closeBtn: false,
          type: "window",
          cls: "l"
      });
  
      $("button#ip-conflict-situation-0-btn-continue").button({
          text: $.su.CHAR.LOGIN.CONTINUE,
          handler: function(){
              ipConflictMsg.msg("close");
              loginMain.fadeIn(200);
          },
          cls: "submit btn-continue-conflict"
      });
  
      $("span#ip-conflict-situation-0-title").html($.su.CHAR.LOGIN.IMPORTANT_NOTICE);
      $("span#ip-conflict-situation-0-info").html($.su.CHAR.LOGIN.IMPORTANT_UPDATE_INFO);
      $("span#ip-conflict-situation-0-end").html($.su.CHAR.LOGIN.END);
  
      $("span#ip-conflict-situation-1-title").html($.su.CHAR.LOGIN.IMPORTANT_NOTICE);
      $("span#ip-conflict-situation-1-info").html($.su.CHAR.LOGIN.IMPORTANT_UPDATE_INFO);
      $("span#ip-conflict-situation-1-or").html($.su.CHAR.LOGIN.OR);
      $("span#ip-conflict-situation-1-end").html($.su.CHAR.LOGIN.END2);
      //$("div#login-main p.logon_footer span.logon_tp").html($.su.CHAR.LOGIN.TP_COPYRIGHT);
      $("a#ip-conflict-situation-1-new").on("click", function(e){
          ipConflictMsg.msg("close");
          loginMain.fadeIn(200);
      });
  
      //忘记密码部分
      var forgetPasswordProxy = new $.su.Proxy({
          url: URL_FORGET_PASSWORD,
          autoLoad: false
      });
  
      var verifyCodeProxy = new $.su.Proxy({
          url: URL_VERIFY_CODE,
          autoLoad: false,
          preventErrorDefault: true
      });
      
      //忘记密码部分
      $("a#btn-forget-password").html($.su.CHAR.LOGIN.FORGET_PASSWORD).on("click", function(e){
          forgetPasswordProxy.read({}, function(data, status, xhr){
              if (data){
                  if (data.enable_rec){
                      //跳转到有emal的页面
                      $("div#forget-password-situation-0").css("display", "none");
                      $("div#forget-password-situation-1").fadeIn(150);
                      var h = forgetPasswordInfo.html($.su.CHAR.LOGIN.FORGET_PASSWORD_INFO_1.replace("%EMAIL%", data.email));
                  }else{
                      $("div#forget-password-situation-0").fadeIn(150);
                      $("div#forget-password-situation-1").css("display", "none");
                  };
  
                  clearInterval(receiveCodeTime);
                  receiveCodeTimeCount = 60;
                  btnReceiveCode.button("enable").button("setText", $.su.CHAR.LOGIN.RECEIVE_CODE);
                  forgetPasswordMsg.msg("show");
              };
          });
      });
      
      var forgetPasswordMsg = $("div#forget-password-msg-container").msg({
          cls: "l",
          type: "window"
      });
      
      $("h4#forget-password-title").html($.su.CHAR.LOGIN.FORGET_PASSWORD);
      $("span#forget-password-situation-0-info").html($.su.CHAR.LOGIN.FORGET_PASSWORD_INFO_0);
      $("span#forget-password-success-prompt").html($.su.CHAR.OPERATION.SUCCESSED);
  
      var forgetPasswordInfo = $("p#forget-password-situation-1-info").html($.su.CHAR.LOGIN.FORGET_PASSWORD_INFO_1);
      var forgetPasswordSendFailedInfo = $("span#send-failed-info").css("display", "none").html($.su.CHAR.LOGIN.FORGET_PASSWORD_SEND_FAILED);
      var verificationCode = $("input#txt-verification-code").textbox({
          fieldLabel: $.su.CHAR.LOGIN.VERIFICATION_CODE,
          labelCls: "xs",
          cls: "inline-block"
      }).on("keyup focus blur", function(){
          if (codeLock && $(this).val()){
              btnFogetPasswordConfirm.button("enable");
          }else{
              btnFogetPasswordConfirm.button("disable");
          };
          return true;
      });
  
      var receiveCodeTime = 0,
          receiveCodeTimeCount = 60,
          codeLock = false;
  
      var btnReceiveCode = $("button#btn-receive-code").button({
          text: $.su.CHAR.LOGIN.RECEIVE_CODE,
          cls: "inline-block btn-receive-code",
          handler: function(){
              forgetPasswordSendFailedInfo.fadeOut(150);
  
              verifyCodeProxy.read({}, function(){
                  codeLock = true;
                  btnReceiveCode.button("disable").button("setText", receiveCodeTimeCount + $.su.CHAR.LOGIN.SEC);
  
                  clearInterval(receiveCodeTime);
                  receiveCodeTime = setInterval(function(){
                      if (receiveCodeTimeCount > 0){
                          receiveCodeTimeCount--;
  
                          btnReceiveCode.button("setText", receiveCodeTimeCount + $.su.CHAR.LOGIN.SEC);
                      }else{
                          clearInterval(receiveCodeTime);
                          receiveCodeTimeCount = 60;
  
                          btnReceiveCode.button("enable").button("setText", $.su.CHAR.LOGIN.RECEIVE_CODE);
                      };
                      //console.log("run");
                  }, 1*1000);
              }, function(){
                  forgetPasswordSendFailedInfo.fadeIn(150);
              });
          }
      });
  
      var btnFogetPasswordConfirm = $("button#btn-forget-password-confirm").button({
          text: $.su.CHAR.LOGIN.CONFIRM,
          fieldLabel: "",
          labelCls: "xs",
          cls: "submit btn-confirm",
          handler: function(){
              forgetPasswordSendFailedInfo.fadeOut(150);
              var code = $.trim(verificationCode.textbox("getValue"));
              verifyCodeProxy.write({
                  "operation": "write",
                  "vercode": code
              }, function(){
                  var prompt = $("div#forget-password-prompt").fadeIn(150, function(){
                      setTimeout(function(){
                         /* prompt.fadeOut(150, function(){
                              forgetPasswordMsg.msg("close");
                          });*/
                          prompt.css("display", "none");
                          forgetPasswordMsg.msg("close");
  
                      }, 700);
                  })
              }, function(){
                  verificationCode.textbox("setError",$.su.CHAR.ERROR["00000140"]);
              }, function(){
                  verificationCode.textbox("setError",$.su.CHAR.ERROR["00000140"]);
              });
          }
      }).button("disable");
      
      $("span.note-title").text($.su.CHAR.OPERATION.NOTE);
      $("span#forget-password-situation-1-note").text($.su.CHAR.LOGIN.FORGET_PASSWORD_NOTE);
      
      //用户登录冲突部分
      var userConflictMsg = $("div#user-conflict-msg-container").msg({
          closeBtn: false,
          cls: "l",
          type: "alert",
          okHandler: function(){
              $("button#login-btn").button("enable");
          }
      });
  
      //主页面内容部分
      var loginMain = $("div#login-main");
  
      var lanSelectCombo = $("input#lan-select").combobox({
          cls: "top-lan-select",
          tabindex: -1,
          items: [
              {"value": "bg_BG", "name": $.su.CHAR.LANGUAGE.BG_BG},
              {"value": "cs_CZ", "name": $.su.CHAR.LANGUAGE.CS_CZ},
              {"value": "de_DE", "name": $.su.CHAR.LANGUAGE.DE_DE},
              {"value": "en_US", "name": $.su.CHAR.LANGUAGE.EN_US},
              {"value": "es_ES", "name": $.su.CHAR.LANGUAGE.ES_ES},
              {"value": "fr_FR", "name": $.su.CHAR.LANGUAGE.FR_FR},
              {"value": "it_IT", "name": $.su.CHAR.LANGUAGE.IT_IT},
              {"value": "nl_NL", "name": $.su.CHAR.LANGUAGE.NL_NL},
              {"value": "pl_PL", "name": $.su.CHAR.LANGUAGE.PL_PL},
              {"value": "pt_PT", "name": $.su.CHAR.LANGUAGE.PT_PT},
              {"value": "ro_RO", "name": $.su.CHAR.LANGUAGE.RO_RO},
              {"value": "ru_RU", "name": $.su.CHAR.LANGUAGE.RU_RU},
              {"value": "sk_SK", "name": $.su.CHAR.LANGUAGE.SK_SK},
              {"value": "th_TH", "name": $.su.CHAR.LANGUAGE.TH_TH},
              {"value": "tr_TR", "name": $.su.CHAR.LANGUAGE.TR_TR},
              {"value": "uk_UA", "name": $.su.CHAR.LANGUAGE.UK_UA},
              {"value": "vi_VN", "name": $.su.CHAR.LANGUAGE.VI_VN},
              {"value": "zh_CN", "name": $.su.CHAR.LANGUAGE.ZH_CN},
              {"value": "zh_TW", "name": $.su.CHAR.LANGUAGE.ZH_TW}
          ],
          fieldLabel: null
      }).on("ev_click", function(e, vOld, vNew){
          if (vOld[0] == vNew[0]){
              return;
          };
          $.su.locale.set(vNew[0], function(){
              lanSelectCombo.combobox("setValue", [$.su.locale.locale]);
          }, function(){
              lanSelectCombo.combobox("setValue", [$.su.locale.locale]);
          });
      }).combobox("setValue", [$.su.locale.locale]);
  
      //document.title = $.su.locale.model;
      //$("title").text($.su.locale.model);
      $("h1#product-tag").html($.su.locale.model);
      $("a#btn-faq").html($.su.CHAR.INDEX.HELP_SUPPORT);
  
      //console.log($.su.locale.force)
      if ($.su.locale.force != false){
          lanSelectCombo.combobox("hide");
      };
  
      $("label#login-username-label").find(".text").html($.su.CHAR.LOGIN.USERNAME);
      $("input#login-username").textbox({
          //hint: $.su.CHAR.LOGIN.USERNAME,
          fieldLabel: null,
          allowBlank: false,
          vtype: "ascii_visible",
          maxLength: 64,
          minLength: 1,
          inputCls: 'mll',
          tabindex:0,
          cls: "inline-block login-text"
      }).on("ev_change",function(){
          /*name_validate = $(this).textbox("validate",false);
          if(name_validate === true && pwd_validate === true){
              $("button#login-btn").button("enable");
          }
          else{
              $("button#login-btn").button("disable");
          }*/
      }).on("blur",function(){
          //$("input#login-username").trigger("ev_change");
      }).on("keyup",function(e){
          var uname = $("input#login-username").textbox("getValue"); 
          var pwd = $("input#login-password").password("getValue");
          if (e.keyCode == 13 && uname.length >= 1 && uname.length <= 64 && pwd.length >= 6 && pwd.length <= 64){
              if(!$("button#login-btn").prop('disabled')){
                  $("button#login-btn").button("disable");
                  $("input#login-password").password("doEncrypt");
                  if (checkCookie()){
                      doLogin();
                  };
                  setTimeout(function(){
                      $("button#login-btn").button("enable");
                  },500);
              }
          }
      });
  
      $("label#login-password-label").find(".text").html($.su.CHAR.LOGIN.PASSWORD);
      var isFactory = false;
      $("input#login-password").password({
          showLevel: false,
          //hint: $.su.CHAR.LOGIN.PASSWORD,
          fieldLabel: null,
          maxLength: 64,
          minLength: 6,
          inputCls: 'mll',
          allowBlank: false,
          vtype: "ascii_visible",
          validator:function(val){
              if( !isFactory && (val.length < 6 || val.length > 64) )
              {                                
                  return $.su.CHAR.ERROR["00000073"];
              }
              return true;
          },
          //allowVisible: true,
          cls: "inline-block login-text"
      }).on("ev_change", function(e, value, key, keyCode){
          if (key == "Enter" || keyCode == 13){
              if(!$("button#login-btn").prop('disabled')){
                  $("button#login-btn").button("disable");
                  $("input#login-password").password("doEncrypt");
                  if (checkCookie()){
                      doLogin();
                  };
                  setTimeout(function(){
                      $("button#login-btn").button("enable");
                  },500);
              }
          } 
          /*else{
              pwd_validate = $(this).password("validate",false);
              if(name_validate === true && pwd_validate === true){
                  $("button#login-btn").button("enable");
              }
              else{
                  $("button#login-btn").button("disable");
              }
          }*/
      });
  
      $("input#login-password").password("getContainer").delegate("input.password-text", "focus", function(e){
          $("input#login-username").textbox("hideErrorTips");
      });
  
      /*$("input#login-username").textbox("getContainer").delegate("input.text-text", "focus", function(e){
          $("input#login-password").password("hideErrorTips");
      });*/
  
      $("button#reset-btn").button({
          text: $.su.CHAR.LOGIN.RESET,
          handler: function(e){
              loginForm.form("reset");
              $("input[type=password]").val(null);
              //$("#login-username").setValue(null);
              //$("#login-username").setValue(null);
          },
          cls: "submit inline-block"
      });
  
      var loginProxy = new $.su.Proxy({
          url: URL_LOGIN
      });
  
      var loginForm = $("form#form-login").form({
          proxy: loginProxy,
          showPrompt: false,
          fields: [
              {name: "username"},
              {name: "password"}
          ]
      });
  
      var doLogin = function(){
          loginForm.form("submit", {
              "method": "login"
          }, function(data, status, xhr){
              var token = data.stok || (function(){
                  var stok = "12345",
                      href = top.location.href;
                  var stokPos = href.indexOf("stok=");
                  if (stokPos >= 0){
                      stok = href.substring(stokPos+5);
                  };
                  return stok;
              })();
  
              if (localStorage){
                  localStorage.setItem("token", token);
                  location.href = "./index.html";
              };
              
          }, function(errorcode, others, data){
              switch (errorcode){        
                  case "710":
                      $("span#user-conflict-situation").html($.su.CHAR.LOGIN.USER_CONFLICT);
                      if(data.logined_remote)
                      {
                          var c = $.su.CHAR.LOGIN.USER_CONFLICT_INFO_2.replace("%USER%", data.logined_user).replace("%IP%", data.logined_ip)
                      }
                      else
                      {
                          
                      var c = $.su.CHAR.LOGIN.USER_CONFLICT_INFO.replace("%USER%", data.logined_user).replace("%HOST%", data.logined_host).replace("%IP%", data.logined_ip).replace("%MAC%", data.logined_mac);
                      }
                      
                      $("span#user-conflict-situation-info").html(c)
                      userConflictMsg.msg("show");
                      break;
                  case "700":
                      /*loginForm.form("prompt", false, $.su.CHAR.LOGIN.LOGIN_FAILED);*/
                      
                      var num1 = data.failureCount;
                      var num2 = data.attemptsAllowed;
                      var num3 = num2 + num1;
                      if(num1 >= num2)
                      {
                          var str = $.su.CHAR.LOGIN.LOGIN_FAILED_COUNT.replace("%num1", num1);
                          str = str.replace("%num2", num2);
                          // loginForm.form("prompt", false, str, 4000);
                          $("span#left-attempts-text").html(str);
                          leftAttemptsMsg.msg("show");
                      /*} else if (num2 == 0){
                          var str = $.su.CHAR.ERROR["00000089"].replace("%num", num3);
                          $("span#max-attempts-text").html(str);
                          maxAttemptsMsg.msg("show");*/
                      } else {
                      
                          loginForm.form("prompt", false, $.su.CHAR.LOGIN.LOGIN_FAILED);
                          //$("button#login-btn").button("enable");
                      }
                      
                      break;
                  
                  case "709":
                      var num1 = data.failureCount;
                      var num2 = data.attemptsAllowed;
                      var num3 = num2 + num1;
                      var str = $.su.CHAR.ERROR["00000089"].replace("%num", num3);
                      $("span#max-attempts-text").html(str);
                      maxAttemptsMsg.msg("show");
                      break;
                  
                  default:
                  
              };
          });
      };
  
  
      $("button#login-btn").button({
          text: $.su.CHAR.LOGIN.LOGIN,
          handler: function(e){
              $("button#login-btn").button("disable");
              if (checkCookie()){
                  doLogin();
              };
              setTimeout(function(){
                  $("button#login-btn").button("enable");
              },500);
          },
          cls: "submit login-btn inline-block"
      });/*.on("mousedown",function(){
           $("button#login-btn").button("disable");
              if (checkCookie()){
                  doLogin();
              };
              setTimeout(function(){
                  $("button#login-btn").button("enable");
              },500);
      });*/
      //$("button#login-btn").button("disable");
  
      //登录流程
     /* ipConflictProxy.read({}, function(data){
          if (data && data.conflict === true){
              var sit0 = $("div#ip-conflict-situation-0");
              var sit1 = $("div#ip-conflict-situation-1");
              switch (data.mode){
                  case 0:
                      sit0.css("display", "block");
                      sit1.css("display", "none");
  
                      $("a#ip-conflict-situation-0-new").html(data.new_addr);
                      break;
                  case 1:
                      sit0.css("display", "none");
                      sit1.css("display", "block");
  
                      $("a#ip-conflict-situation-1-dst").html(data.dst_addr).attr("href", "http://" + data.dst_addr + data.dst_webpath);
                      $("a#ip-conflict-situation-1-new").html(data.new_addr);
                      break;
              };
              loginMain.css("display", "none");
              ipConflictMsg.msg("show");
          }else{
              ipConflictMsg.msg("close");
              loginMain.fadeIn(200);
          };
  
          //console.log(data.redirect)
  
          if (data && data.redirect){
              location.href = data.redirect;
          };
  
      }, function(e){
          ipConflictMsg.msg("close");
          loginMain.fadeIn(200);
      }, function(e){
          ipConflictMsg.msg("close");
          loginMain.fadeIn(200);
      });*/
      
      ipConflictMsg.msg("close");
      loginMain.fadeIn(200);
  
      
      /*cookie check*/
      $("span#no-cookie-text").html($.su.CHAR.LOGIN.NO_COOKIE);
      var noCookieMsg = $("div#no-cookie-msg-container").msg({
          type: "alert",
          cls: "m",
          closeBtn: false,
          okHandler: function(){
              $("button#login-btn").button("enable");
          }
      });
  
      /*max attempt*/
      //$("span#max-attempts-text").html($.su.CHAR.ERROR["00000089"]);
      var maxAttemptsMsg = $("div#max-attempts-msg-container").msg({
          type: "alert",
          cls: "m",
          closeBtn: false,
          okHandler: function(){
              $("button#login-btn").button("enable");
          }
      })
  
      /*left attempt*/
      // $("span#left-attempts-text").html($.su.CHAR.ERROR.LOGIN_FAILED_COUNT);
      var leftAttemptsMsg = $("div#left-attempts-msg-container").msg({
          type: "alert",
          cls: "m",
          closeBtn: false,
          okHandler: function(){
              $("button#login-btn").button("enable");
          }
      })
  
  
      var checkCookie = function(){
          try{
              localStorage.setItem("private", 100);
              if (!navigator.cookieEnabled){
                  noCookieMsg.msg("show");
                  return false;
              };
          }catch(e){
              noCookieMsg.msg("show");
              return false;
          };
          noCookieMsg.msg("close");
          return true;
  
      };
  
      checkCookie();
  
      //$.su.loading.show();
      $.su.loading.hide();
      setTimeout(function(){
          $("input#login-username").parent().parent().find('input.text-hint').click();
          // document.getElementById('login-username').focus();
      }, 1000);
  
      /*调整登陆框高度*/
      var actHeight = parseInt(document.documentElement.clientHeight);
      var marginTop = actHeight * 0.382 - 306 / 2;
      $($.find("div.top-main-wrap")).css("marginTop", marginTop.toString() + "px");
  
      //document.getElementById("login-username").focus();
      $("input#login-username").focus();
   
      
  });
  //]]>
  </script>
  </body>
  </html>
  
services.body_hash_sha1: sha1:d238f7a84bd39f8df496cf776ee0e5a0bb6b6f56
services.supported_versions: HTTP/1.1
[binary data, 23 values, 1,605 bytes]