whois.handle: UNICOM-LN
whois.name: China Unicom Liaoning province network
whois.cidrs: 124.92.0.0/14
whois.updated: 2023-10-21T00:00:00.000000
services.protocol: HTTP
services.transport_protocol: TCP
services.scan_time: 2025-07-28T07:49:54.475540
services.banner: HTTP/1.1 200 OK
  X-Frame-Options: SAMEORIGIN
  Content-Type: text/html
  Accept-Ranges: bytes
  ETag: "582372841"
  Last-Modified: Wed, 18 Oct 2017 23:40:38 GMT
  Content-Length: 20883
  Date:  <REDACTED>
  
services.value: jquery
services.value: login-page
services.path: /html/login.html
services.endpoint_type: HTTP
services.scan_time: 2025-07-28T07:49:54.475540
services.uri: http://124.95.156.130/html/login.html
services.protocol: HTTP/1.1
services.status_reason: OK
services.key: Last-Modified
services.headers: Wed, 18 Oct 2017 23:40:38 GMT
services.key: Accept-Ranges
services.headers: bytes
services.key: X-Frame-Options
services.headers: SAMEORIGIN
services.key: Content-Length
services.headers: 20883
services.key: Content-Type
services.headers: text/html
services.key: Date
services.headers: <REDACTED>
services.key: ETag
services.headers: "582372841"
services.html_tags: <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Refresh" content="0;url='/func/web_main/display/frame/main'" />
services.body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="/style/login/login.css" />
    <link rel="shortcut icon" href="/favicon.ico"/>
    <link rel="bookmark" href="/favicon.ico" type="image/x-icon"　/>
    <script type="text/javascript" src="/app/encrypt.js"></script>
    <script type="text/javascript" src="/pub/jquery/jquery.js"></script>
    <script type="text/javascript" src="/pub/jquery/jquery.placeholder.js"></script>
    <script type="text/javascript">
    
      var username;//用户名input
      var password;//密码input
      var encrypt_user_name;//接收用户名的隐藏input
      var encrypt_password;//接收密码的隐藏input
      var password1;//静态码input
      var web_conf_pwd;//判断静态码的信息变量
      var otp_auth_value;//判断一次性口令的信息变量
      var verify_code_enable;//判断验证码的信息变量
      var custom_value; //判断定制产品的信息变量
      var product_model;//产品信息元素
      var copyright;//版权信息元素
      var old_check;//旧校验码关键字 
  	var language = 1; //登陆语言选择为中文
  	var login_encrypt_flag;//登陆加密标志
      //请求产品信息、版权等信息的url
      var WEBMAIN_URL = "/func/web_main/validate?web_login_conf=";
      
      window.onload = function(){
        username           = document.getElementById('username');   //用户名
        password           = document.getElementById('pass_word');  //密码
        encrypt_user_name  = document.getElementById('encrypt_user_name');//接收用户名的隐藏表单
        encrypt_password   = document.getElementById('encrypt_password');//接收密码的隐藏表单
        password1          = document.getElementById('password1');//静态码
        product_model      = document.getElementById('product_model');//产品信息
        copyright          = document.getElementById('copyright');//版权
        //ajax请求后台数据，显示产品信息等
        $.get(WEBMAIN_URL,{lang:language},function(data){loadAjaxCallback(data)},"xml"); 
        //调整背景图片的高度以适应浏览器窗口的高度
        windowResize();     
        //页面加载，修改图片的src，显示校验码图片，，并修改旧校验码关键字
        modifySrc();
        //输入框的事件操作
        initState();
      }
  
      /**
       * 请求数据，回显登录方式、产品信息、版权信息
       */
      function loadAjaxCallback(data){
        //定义登录方式变量
        var loginMethods     = $("HTML_BODY web_login_conf",data).text();
        // 定义定制产品名称
        var productName      = $("HTML_BODY product_name",data).text();
        // 定义产品型号名称
        var deviceName       = $('HTML_BODY device_name',data).text();
        // 定义版权信息
        var productCopyRight = $('HTML_BODY copyright',data).text().replace('(c)','©');
        // 定义系统名称
        var systemName      = $("HTML_BODY sysname",data).text();
        
        //定义开启认证模式
        var custom_flag			=$('HTML_BODY custom_display_flag',data).text();
  	  
  	  //定义oem
  	  var oem  = $('HTML_BODY oem',data).text();
  	  login_encrypt_flag = $('HTML_BODY login_encrypt_flag',data).text();//登陆加密标志
        // 定义title
        $(document).attr("title",systemName);
        //显示产品型号
        
        //当命令行设置为产品名称长模式开启，将产品名称显示在左上角，首页微调
        if(0 != custom_flag)
        {
        	  $(".logoDiv").prepend('<span class="product_model_auth">'+productName+'</span>');
        	  $(product_model).before('<div class="LangDiv_auth"><span class="LangNow">中文</span><span class="LangSep"> | </span><span><a href="login_en.html" class="LangDis">English</a></span></div>');
        	  $(".loginContent").remove('loginContent').addClass('loginContent_auth');
        	  $(product_model).remove();  
        	  $(".LangDiv").remove(); 	  
        }
        else     
      	{
      		 $(product_model).text(productName).attr('title',productName);
      	}
  
  	  //当oem为OEM_DPTECH时
  	  if(0 == oem)
  	  {
  		//左上角logo
  		$(".logoDiv").prepend('<img class="logoMain" src="/img/login/dplogo.png"/>');
  		//右上角tel
  		$(".tel").addClass('tel_dp').text('400-6100-598');
  		//登录框logo;
  		$(".logo_left_img").addClass('logo_left_img_dp');
  		//图片中显示迪普科技
  		$(".dpContent").text('迪普科技');
  		//图片中显示了解更多链接
  		$(".dpContent").after(' <a class="learnContent" href="http://www.dptech.com" target="_blank">了解更多</a>');
  	  }
  	  else if(3 == oem)  //当oem为OEM_BLANK时
  	  {
  		//左上角logo
  		$(".logoDiv").prepend('<img class="logoMain" src="/img/login/dplogo3.png"/>');
  		//右上角tel
  		$(".tel").addClass('tel_black');
  		//登录框logo;
  		$(".logo_left_img").addClass('logo_left_img_blank');			
  	  }
  	  else if(5 == oem) //当oem为宇视时
  	  {
  		 $(".logoDiv").prepend('<img class="logoMain" src="/img/login/dplogo5.png"/>'); //左上角logo
  		 $(".tel").addClass('tel_dp').text('400-655-2828');     						//右上角400信息
  		 $(".logo_left_img").addClass('logo_left_img_uniview');							//登录框logo
  		 $(".tContent").text('Better Security，Better World');							//替换"应用即网络"
  		 $(".dpContent").text('宇视科技');												//替换公司名称
  		 $(".dpContent").after(' <a class="learnContent" href="http://cn.uniview.com" target="_blank">了解更多</a>');			//了解更多链接 
  	  }
       
        $('#copyright').html(productCopyRight);
        web_conf_pwd = loginMethods&8;
        otp_auth_value = loginMethods&4;
        verify_code_enable = loginMethods&2;
          
        /* 静态码请求 */
        if (0 != web_conf_pwd)
        {
          $("#pwd1").css("display", "");
          $("#otp").css("display", "none");
          $("#pwd").css("display", "");    
          $("#verify_box").css("display", ""); 
          //修正布局
          $(".inputDiv").css('margin','17px 0 0 0');
          $(".LangDiv").css('margin','15px 0 0 0');
          
          
        }
        /* 一次性口令请求 */
        if (4 == otp_auth_value)
        {
          $("#otp").css("display", "");
          $("#pwd").css("display", "none");
          $("#pwd1").css("display", "none");
          $("#verify_code").css("display", "none");
          //修正布局
          $(".inputDiv").css('margin','25px 0 0 0');
          $('#verify_code').css('display','none');
          $('#verify_img').css('float','right');
  
        } 
        /* 是否开启验证码 */
        if (2 != verify_code_enable)
        {
          $("#verify_code").css("display", "none");
          $("#verify_img").css("display", "none");
          //修正布局
          $(".inputDiv").css('margin','30px 0 0 0');
        }     
        
      }
  
      // 调整背景图片的高度以适应浏览器窗口的高度。
      function windowResize(){
        $(".contentB").height($(window).height()-160);
        $(window).resize(function(){$(".contentB").height($(window).height()-160)});
      }
      
      // 页面加载，修改图片的src，显示校验码图片，，并修改旧校验码关键字
      function modifySrc(){
        var d=new Date();
        var s=""+(d.getYear())+(d.getMonth()+1)+(d.getDay())+(d.getHours())+(d.getMinutes())+(d.getSeconds())+(d.getMilliseconds());
        var valid_url="/func/web_main/validate?check="+hex_md5(s).toLowerCase();
        $("#valid_pic").attr("src",valid_url);
        old_check=hex_md5(s).toLowerCase();
        $("#check").val(old_check);
      }
      
      //其他的事件操作
      function initState(){
        // 输入框获取焦点时改变背景色。
        $('.loginInput').focus(function(){
        	if(!$(this).attr("error"))
          $(this).css('backgroundColor','#e5edf2');
        }).blur(function(){
        	if(!$(this).attr("error"))
          $(this).css('backgroundColor','#d6e3eb')
        })
  
        $('#loginForm').keydown(function(event){
          if(event.keyCode === 13){
            $('#loginIn').trigger('click');
          }
        })
  
        $("#username").focus();
      }
  
      
      //将用户名和密码进行“加密”处理的函数
      function ws_str_encrypt(str)
      {
          var length = str.length;
          var half = length/2+1;
          var a =[];
          var s1,s2;
          var str2="";
          
          for(var i = 0,j=length-1;i<half;i++,j--)
          {
              s1 = str.charAt(i);
              s2 = str.charAt(j);
              a[i] = s2;
              a[j]= s1;
          }
          
          for(i=0;i<a.join('').length;i++)
          {
              str2+="%"+(a.join('').charCodeAt(i)^0x37).toString();
          }
          return str2;
      } 
  
      
      //检查用户名合法性，提交前检查
      function CheckUsername()
      {
          var expr = /^\s*([A-Za-z]{1}[A-Za-z0-9_\-]{2,19})\s*$/;
          var ret;
          ret = username.value.match(expr);
  
          if (ret==null || ret[1]==null)
          {
              _errorFun('用户名不合法！');
              username.focus();
              $(username).attr("error",1)
              setTimeout("username.style.backgroundColor = '#ffcccc'",0);
              return false;
          }
          else
          {
              username.value=ret[1];
  			if (login_encrypt_flag != 0)
  			{
  				encrypt_user_name.value = ws_str_encrypt(username.value);
  
  			}
  			else
  			{
  				encrypt_user_name.value = username.value;
  			}
  
              return true;
          }
      }
  
      
      //提交前检查密码合法性
      function CheckPassword()
      {
          var expr = /^[A-Za-z0-9\(\)\-\+\=\|\[\]\%\:\;\/\_\,\`\~\!\@\#\$\%\^\&\*\<\>\.\?\"\']{1,128}$/;
          var ret;
          ret = password.value.match(expr);
          if (ret==null)
          {
              _errorFun('密码不合法！');
              password.focus();
              $(password).attr("error",1);
              setTimeout("password.style.backgroundColor = '#ffcccc'",0);
              return false;
          }
          if (0 != web_conf_pwd)
          {
              ret = password1.value.match(expr);
              if (ret==null)
              {
                  _errorFun('密码不合法！');
                  password1.focus();
                  $(password).attr("error",1);
                  setTimeout("password1.style.backgroundColor = '#ffcccc'",0);
                  return false;
              }
          }
  		if (login_encrypt_flag != 0)
  		{
  			encrypt_password.value = ws_str_encrypt($('#pass_word').val());
  		}
  		else
  		{
  			encrypt_password.value = $('#pass_word').val();
  		}      
  		return true;
      }
  
      //提交前检查form表单
      function CheckForm()
      {
        $('#loginIn').val('登 录 中...').removeClass('logining_btn').prop('disabled',true).addClass('otherbtn_style');
        $('#check').val(old_check);
        $('.loginInput').removeAttr("error").css("backgroundColor","#d6e3eb");
        var login_flag = 0;
         //当一次性口令启用时，不用校验密码
         if (otp_auth_value == 4)
         {
            if (CheckUsername() && login_flag === 0)
            {
                login_flag = 1;
                return true;  
            }
            else
            {
              return false;
            }
         }
         //当一次性口令禁用时，需用校验密码
         else
         {
            if (CheckUsername() && CheckPassword() && login_flag === 0)
            {
                login_flag = 1;
                return true;
            }
            else
            {
                return false;
            }
         }
      }
  
     
      /**
       * 内部函数，消除loading图标，提示信息再次提醒用户
       * msg是提示信息
       */
      function _errorFun(msg){
        //
        if(msg){
          $('#backInfoBox').fadeOut(function(){
            $('#infoText').html(msg);
            $(this).fadeIn('fast');
            $('#clearInfoImg').click(function(){
              $(this).parent().hide();
              $('.loginInput').removeAttr("error").css("backgroundColor","#d6e3eb");
            })
          })
          // 如果有错误信息的话，按钮切换到“登录”文字状态，取消禁用，鼠标移入背景变色
          $('#loginIn').val('登      录').attr('disabled',false).addClass('logining_btn').removeClass('otherbtn_style');
  
        }else{
          //如果没有错误信息的话
          $('#backInfoBox').hide();
        }
      }
  
      //这个函数是点击验证码刷新时触发的函数，修改图片src，并修改旧校验码关键字
      function valid_refresh()
      {
          var d=new Date();
          var s=""+(d.getYear())+(d.getMonth()+1)+(d.getDay())+(d.getHours())+(d.getMinutes())+(d.getSeconds())+(d.getMilliseconds());
          var valid_url="/func/web_main/validate?check="+hex_md5(s).toLowerCase();
          if(old_check != "")
          {
              valid_url +="&old=";
              valid_url +=old_check;
          }
          document.getElementById('valid_pic').src=valid_url;
          old_check=hex_md5(s).toLowerCase();
         
      }
      
      //ajax提交，登录
      function submitFormAjax(){
        //如果form检查通过,发送ajax请求
        if(CheckForm()){
          //发送ajax请求，回显提示信息
          $.ajax({
            type:'POST',
            cache:false,
            async:true,
            url:'/func/web_main/login',
  
            data:$('#loginForm').serialize()+"&verify=",
            success:function(data){
              var backMsg; //提示信息
  			var loginUrl; 	//form的action路径
  			var redirecturl; //跳转的URL路径
  			var startlen;	//URL开始位置
  			var url_array;
  
  			//提示信息为空
  			if($('HTML_BODY NODE_CONTENT Msg',data).length == 0)
  			{
  				//判断响应中是否包含url
  				startlen = data.indexOf("url='");
  				
  			}
  			else
  			{
  				backMsg = $('HTML_BODY NODE_CONTENT Msg',data).text();//代表提示信息
  				loginUrl = $('HTML_BODY NODE_CONTENT Redirect',data).text();//代表form的action路径
  			}
  
  
  			
  			//如果url存在则startlen为开始位置，不存在则为-1;
  			//成功则返回的响应格式如下:<html><head><meta http-equiv="Refresh" content="0;url='/func/web_main/display/frame/main'" /></head></html>
  			if(startlen>0)
  			{	
  				//通过单引号将data分隔，取返回数组的第二个值
  				url_array = data.split("'");
  				redirecturl = url_array[1];
  				
  				window.location.href=redirecturl;
  			}
  			else if(backMsg && backMsg != '')
  			{										
              	 if(backMsg == "校验码验证失败！")
                 {
            	       $("#code").focus().val('').attr("error",1);
                     setTimeout("$('#code')[0].style.backgroundColor = '#ffcccc'",0);
                 }
  			   //密码失效的情况下，直接跳转到更改密码的页面
                 else if(backMsg == 'Password invalid'){
                    if(loginUrl != ''){
                      $('#loginForm').attr('action',loginUrl).submit();
                    }else{
                      $('#loginIn').val('登      录').attr('disabled',false).addClass('logining_btn').removeClass('otherbtn_style');
                      return false;
                    }
                 }
                 else
                 {
            	       username.focus();
                     $(username).attr("error",1);
                     setTimeout("username.style.backgroundColor = '#ffcccc'",0);
                 }
                 _errorFun(backMsg);
                 modifySrc();
              }else{
                $('#loginIn').val('登      录').attr('disabled',false).addClass('logining_btn').removeClass('otherbtn_style');
                return false;
              }
            }
          })
        }
      }
      
    </script>
  </head>
  
  <body>
    <div class="loginB">
      <div class="logoDiv">
          <span class="tel"></span>
      </div>
      <div class="contentB">
          <span class="tContent">应用即网络</span>
          <span class="dpContent"></span>
          
          <div class="mainContent">
            <div class="imgContent"></div>
            <div class="loginContent">
              <div class="loginBody">
                <div class="logo1">
                  <span class="logo_left_img"></span>
                  <b class="product_model" id="product_model"></b>
                </div>
                
                <div class="formLogin">
                  <form id="loginForm" method="post">
                  
                    <input type="hidden" id="encrypt_user_name" name="user_name" value="0" />
                    <input type="hidden" id="encrypt_password" name="password" value="0" />
                    <input type="hidden" name="language" value="1" />
                      
                      <!-- 用户名 -->
                      <div class="inputDiv" id="user">
                        <!-- 提示信息 -->
                        <div id="backInfoBox" style="display: none;">
                          <span id="infoText"></span>
                          <span id="clearInfoImg" title="关闭"></span>
                        </div>
                        <!-- 用户名 -->
                        <input id="username" class="loginInput" maxlength="20" placeholder="用户名"/>
                        <label class="iconLabel">
                          <img src="/img/login/user.png" class="icons"/>
                        </label>                     
                      </div>
                      
                      <!-- 密码 -->
                      <div class="inputDiv" id="pwd">
                        <input id="pass_word" type="password" class="loginInput" placeholder="密码" autocomplete="off" maxlength="128"/>
                        <label class="iconLabel">
                          <img src="/img/login/pwd.png" class="icons"/>
                        </label>
                      </div>
                      
                      <!-- 静态码 -->
                      <div style="display:none" class="inputDiv" id="pwd1">
                        <input id="password1" class="loginInput" name="password1" type="password" autocomplete="off" maxlength="128" placeholder="静态码"/>
                        <label class="iconLabel">
                          <img src="/img/login/pwd2.png" class="icons"/>
                        </label>
                      </div>
                      
                      <!-- 一次性口令 -->
                      <div style="display:none;" class="inputDiv" id="otp">
                        <input id="otp_value" class="loginInput" name="otp_value" type="password" autocomplete="off" maxlength="128" placeholder="动态口令"/>
                        <label class="iconLabel">
                          <img src="/img/login/verity.png" class="icons"/>
                        </label>
                      </div>
                      
                      
                      <!-- 验证码 -->
                      <div id="verify_box" class="inputDiv">
                        <div id="verify_code">
                          <input id="code" name="code"  maxlength="5" AUTOCOMPLETE="OFF" class="loginInput loginCode" placeholder="验证码" />
                          <input type="hidden" id="check" name="check" value=""/>
                          <label class="iconLabel">
                            <img src="/img/login/verity.png" class="icons"/>
                          </label>
                        </div>
                        <div id="verify_img">
                          <!-- <span>验证码</span> -->
                          <img id="valid_pic" class="verityCode" title="点击刷新" onclick="valid_refresh()" src=""/>
                          <div class="codeRefresh" onclick="valid_refresh()" title="点击刷新"></div>
                        </div>
                      </div>
                      
                      <!-- 登录 -->
                      <div class="inputDiv" id="btn">
                        <input class="loginBtn logining_btn" id="loginIn" type="button" onclick="submitFormAjax()" value="登      录"/>
                      </div>
                  </form>
                </div>
                   
                <div class="LangDiv">
                  <span class="LangNow">中文</span>
                  <span class="LangSep">|</span>
                  <span><a href="login_en.html" class="LangDis">English</a></span>
                </div>
              </div>
            </div>
          </div>
      </div>
      <div class="footer">
          <p class="copyright" id="copyright"></p>
      </div>
    </div>
  </body>
  </html>
services.body_hash_sha1: sha1:5a544e993f5c799a299d23c9fff5579ac4dbe8da
services.supported_versions: HTTP/1.1
services.protocol: HTTP
services.transport_protocol: TCP
services.scan_time: 2025-07-28T01:43:17.949478
services.banner: HTTP/1.1 200 OK
  X-Frame-Options: SAMEORIGIN
  Content-Type: text/html
  Accept-Ranges: bytes
  ETag: "582372841"
  Last-Modified: Wed, 18 Oct 2017 23:40:38 GMT
  Content-Length: 20883
  Date:  <REDACTED>
  
services.version_selected: TLSv1_2
services.cipher_selected: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
services.ja4s: t120300_c030_bec8bdbaef8a
services.version: TLSv1_2
services.ja4s: t120300_c030_bec8bdbaef8a
services.version: TLSv1_1
services.ja4s: t110200_c014_344b4dce5a52
services.version: TLSv1_0
services.ja4s: t100200_c014_344b4dce5a52
services.names: www.dptechnology.net
services.issuer_dn: C=CN, ST=Zhejiang, L=Hangzhou, O=Dptech, OU=Dptech, CN=www.dptechnology.net, emailAddress=support@dptechnology.net
services.common_name: www.dptechnology.net
services.country: CN
services.locality: Hangzhou
services.province: Zhejiang
services.organization: Dptech
services.organizational_unit: Dptech
services.email_address: support@dptechnology.net
services.subject_dn: C=CN, ST=Zhejiang, L=Hangzhou, O=Dptech, OU=Dptech, CN=www.dptechnology.net, emailAddress=support@dptechnology.net
services.common_name: www.dptechnology.net
services.country: CN
services.locality: Hangzhou
services.province: Zhejiang
services.organization: Dptech
services.organizational_unit: Dptech
services.email_address: support@dptechnology.net
services.scan_time: 2025-07-18T05:13:14.150959
services.value: jquery
services.value: login-page
services.path: /html/login.html
services.endpoint_type: HTTP
services.scan_time: 2025-07-28T01:43:17.949478
services.uri: https://124.95.156.130/html/login.html
services.protocol: HTTP/1.1
services.status_reason: OK
services.key: Last-Modified
services.headers: Wed, 18 Oct 2017 23:40:38 GMT
services.key: Accept-Ranges
services.headers: bytes
services.key: X-Frame-Options
services.headers: SAMEORIGIN
services.key: Content-Length
services.headers: 20883
services.key: Content-Type
services.headers: text/html
services.key: Date
services.headers: <REDACTED>
services.key: ETag
services.headers: "582372841"
services.html_tags: <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Refresh" content="0;url='/func/web_main/display/frame/main'" />
services.body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="/style/login/login.css" />
    <link rel="shortcut icon" href="/favicon.ico"/>
    <link rel="bookmark" href="/favicon.ico" type="image/x-icon"　/>
    <script type="text/javascript" src="/app/encrypt.js"></script>
    <script type="text/javascript" src="/pub/jquery/jquery.js"></script>
    <script type="text/javascript" src="/pub/jquery/jquery.placeholder.js"></script>
    <script type="text/javascript">
    
      var username;//用户名input
      var password;//密码input
      var encrypt_user_name;//接收用户名的隐藏input
      var encrypt_password;//接收密码的隐藏input
      var password1;//静态码input
      var web_conf_pwd;//判断静态码的信息变量
      var otp_auth_value;//判断一次性口令的信息变量
      var verify_code_enable;//判断验证码的信息变量
      var custom_value; //判断定制产品的信息变量
      var product_model;//产品信息元素
      var copyright;//版权信息元素
      var old_check;//旧校验码关键字 
  	var language = 1; //登陆语言选择为中文
  	var login_encrypt_flag;//登陆加密标志
      //请求产品信息、版权等信息的url
      var WEBMAIN_URL = "/func/web_main/validate?web_login_conf=";
      
      window.onload = function(){
        username           = document.getElementById('username');   //用户名
        password           = document.getElementById('pass_word');  //密码
        encrypt_user_name  = document.getElementById('encrypt_user_name');//接收用户名的隐藏表单
        encrypt_password   = document.getElementById('encrypt_password');//接收密码的隐藏表单
        password1          = document.getElementById('password1');//静态码
        product_model      = document.getElementById('product_model');//产品信息
        copyright          = document.getElementById('copyright');//版权
        //ajax请求后台数据，显示产品信息等
        $.get(WEBMAIN_URL,{lang:language},function(data){loadAjaxCallback(data)},"xml"); 
        //调整背景图片的高度以适应浏览器窗口的高度
        windowResize();     
        //页面加载，修改图片的src，显示校验码图片，，并修改旧校验码关键字
        modifySrc();
        //输入框的事件操作
        initState();
      }
  
      /**
       * 请求数据，回显登录方式、产品信息、版权信息
       */
      function loadAjaxCallback(data){
        //定义登录方式变量
        var loginMethods     = $("HTML_BODY web_login_conf",data).text();
        // 定义定制产品名称
        var productName      = $("HTML_BODY product_name",data).text();
        // 定义产品型号名称
        var deviceName       = $('HTML_BODY device_name',data).text();
        // 定义版权信息
        var productCopyRight = $('HTML_BODY copyright',data).text().replace('(c)','©');
        // 定义系统名称
        var systemName      = $("HTML_BODY sysname",data).text();
        
        //定义开启认证模式
        var custom_flag			=$('HTML_BODY custom_display_flag',data).text();
  	  
  	  //定义oem
  	  var oem  = $('HTML_BODY oem',data).text();
  	  login_encrypt_flag = $('HTML_BODY login_encrypt_flag',data).text();//登陆加密标志
        // 定义title
        $(document).attr("title",systemName);
        //显示产品型号
        
        //当命令行设置为产品名称长模式开启，将产品名称显示在左上角，首页微调
        if(0 != custom_flag)
        {
        	  $(".logoDiv").prepend('<span class="product_model_auth">'+productName+'</span>');
        	  $(product_model).before('<div class="LangDiv_auth"><span class="LangNow">中文</span><span class="LangSep"> | </span><span><a href="login_en.html" class="LangDis">English</a></span></div>');
        	  $(".loginContent").remove('loginContent').addClass('loginContent_auth');
        	  $(product_model).remove();  
        	  $(".LangDiv").remove(); 	  
        }
        else     
      	{
      		 $(product_model).text(productName).attr('title',productName);
      	}
  
  	  //当oem为OEM_DPTECH时
  	  if(0 == oem)
  	  {
  		//左上角logo
  		$(".logoDiv").prepend('<img class="logoMain" src="/img/login/dplogo.png"/>');
  		//右上角tel
  		$(".tel").addClass('tel_dp').text('400-6100-598');
  		//登录框logo;
  		$(".logo_left_img").addClass('logo_left_img_dp');
  		//图片中显示迪普科技
  		$(".dpContent").text('迪普科技');
  		//图片中显示了解更多链接
  		$(".dpContent").after(' <a class="learnContent" href="http://www.dptech.com" target="_blank">了解更多</a>');
  	  }
  	  else if(3 == oem)  //当oem为OEM_BLANK时
  	  {
  		//左上角logo
  		$(".logoDiv").prepend('<img class="logoMain" src="/img/login/dplogo3.png"/>');
  		//右上角tel
  		$(".tel").addClass('tel_black');
  		//登录框logo;
  		$(".logo_left_img").addClass('logo_left_img_blank');			
  	  }
  	  else if(5 == oem) //当oem为宇视时
  	  {
  		 $(".logoDiv").prepend('<img class="logoMain" src="/img/login/dplogo5.png"/>'); //左上角logo
  		 $(".tel").addClass('tel_dp').text('400-655-2828');     						//右上角400信息
  		 $(".logo_left_img").addClass('logo_left_img_uniview');							//登录框logo
  		 $(".tContent").text('Better Security，Better World');							//替换"应用即网络"
  		 $(".dpContent").text('宇视科技');												//替换公司名称
  		 $(".dpContent").after(' <a class="learnContent" href="http://cn.uniview.com" target="_blank">了解更多</a>');			//了解更多链接 
  	  }
       
        $('#copyright').html(productCopyRight);
        web_conf_pwd = loginMethods&8;
        otp_auth_value = loginMethods&4;
        verify_code_enable = loginMethods&2;
          
        /* 静态码请求 */
        if (0 != web_conf_pwd)
        {
          $("#pwd1").css("display", "");
          $("#otp").css("display", "none");
          $("#pwd").css("display", "");    
          $("#verify_box").css("display", ""); 
          //修正布局
          $(".inputDiv").css('margin','17px 0 0 0');
          $(".LangDiv").css('margin','15px 0 0 0');
          
          
        }
        /* 一次性口令请求 */
        if (4 == otp_auth_value)
        {
          $("#otp").css("display", "");
          $("#pwd").css("display", "none");
          $("#pwd1").css("display", "none");
          $("#verify_code").css("display", "none");
          //修正布局
          $(".inputDiv").css('margin','25px 0 0 0');
          $('#verify_code').css('display','none');
          $('#verify_img').css('float','right');
  
        } 
        /* 是否开启验证码 */
        if (2 != verify_code_enable)
        {
          $("#verify_code").css("display", "none");
          $("#verify_img").css("display", "none");
          //修正布局
          $(".inputDiv").css('margin','30px 0 0 0');
        }     
        
      }
  
      // 调整背景图片的高度以适应浏览器窗口的高度。
      function windowResize(){
        $(".contentB").height($(window).height()-160);
        $(window).resize(function(){$(".contentB").height($(window).height()-160)});
      }
      
      // 页面加载，修改图片的src，显示校验码图片，，并修改旧校验码关键字
      function modifySrc(){
        var d=new Date();
        var s=""+(d.getYear())+(d.getMonth()+1)+(d.getDay())+(d.getHours())+(d.getMinutes())+(d.getSeconds())+(d.getMilliseconds());
        var valid_url="/func/web_main/validate?check="+hex_md5(s).toLowerCase();
        $("#valid_pic").attr("src",valid_url);
        old_check=hex_md5(s).toLowerCase();
        $("#check").val(old_check);
      }
      
      //其他的事件操作
      function initState(){
        // 输入框获取焦点时改变背景色。
        $('.loginInput').focus(function(){
        	if(!$(this).attr("error"))
          $(this).css('backgroundColor','#e5edf2');
        }).blur(function(){
        	if(!$(this).attr("error"))
          $(this).css('backgroundColor','#d6e3eb')
        })
  
        $('#loginForm').keydown(function(event){
          if(event.keyCode === 13){
            $('#loginIn').trigger('click');
          }
        })
  
        $("#username").focus();
      }
  
      
      //将用户名和密码进行“加密”处理的函数
      function ws_str_encrypt(str)
      {
          var length = str.length;
          var half = length/2+1;
          var a =[];
          var s1,s2;
          var str2="";
          
          for(var i = 0,j=length-1;i<half;i++,j--)
          {
              s1 = str.charAt(i);
              s2 = str.charAt(j);
              a[i] = s2;
              a[j]= s1;
          }
          
          for(i=0;i<a.join('').length;i++)
          {
              str2+="%"+(a.join('').charCodeAt(i)^0x37).toString();
          }
          return str2;
      } 
  
      
      //检查用户名合法性，提交前检查
      function CheckUsername()
      {
          var expr = /^\s*([A-Za-z]{1}[A-Za-z0-9_\-]{2,19})\s*$/;
          var ret;
          ret = username.value.match(expr);
  
          if (ret==null || ret[1]==null)
          {
              _errorFun('用户名不合法！');
              username.focus();
              $(username).attr("error",1)
              setTimeout("username.style.backgroundColor = '#ffcccc'",0);
              return false;
          }
          else
          {
              username.value=ret[1];
  			if (login_encrypt_flag != 0)
  			{
  				encrypt_user_name.value = ws_str_encrypt(username.value);
  
  			}
  			else
  			{
  				encrypt_user_name.value = username.value;
  			}
  
              return true;
          }
      }
  
      
      //提交前检查密码合法性
      function CheckPassword()
      {
          var expr = /^[A-Za-z0-9\(\)\-\+\=\|\[\]\%\:\;\/\_\,\`\~\!\@\#\$\%\^\&\*\<\>\.\?\"\']{1,128}$/;
          var ret;
          ret = password.value.match(expr);
          if (ret==null)
          {
              _errorFun('密码不合法！');
              password.focus();
              $(password).attr("error",1);
              setTimeout("password.style.backgroundColor = '#ffcccc'",0);
              return false;
          }
          if (0 != web_conf_pwd)
          {
              ret = password1.value.match(expr);
              if (ret==null)
              {
                  _errorFun('密码不合法！');
                  password1.focus();
                  $(password).attr("error",1);
                  setTimeout("password1.style.backgroundColor = '#ffcccc'",0);
                  return false;
              }
          }
  		if (login_encrypt_flag != 0)
  		{
  			encrypt_password.value = ws_str_encrypt($('#pass_word').val());
  		}
  		else
  		{
  			encrypt_password.value = $('#pass_word').val();
  		}      
  		return true;
      }
  
      //提交前检查form表单
      function CheckForm()
      {
        $('#loginIn').val('登 录 中...').removeClass('logining_btn').prop('disabled',true).addClass('otherbtn_style');
        $('#check').val(old_check);
        $('.loginInput').removeAttr("error").css("backgroundColor","#d6e3eb");
        var login_flag = 0;
         //当一次性口令启用时，不用校验密码
         if (otp_auth_value == 4)
         {
            if (CheckUsername() && login_flag === 0)
            {
                login_flag = 1;
                return true;  
            }
            else
            {
              return false;
            }
         }
         //当一次性口令禁用时，需用校验密码
         else
         {
            if (CheckUsername() && CheckPassword() && login_flag === 0)
            {
                login_flag = 1;
                return true;
            }
            else
            {
                return false;
            }
         }
      }
  
     
      /**
       * 内部函数，消除loading图标，提示信息再次提醒用户
       * msg是提示信息
       */
      function _errorFun(msg){
        //
        if(msg){
          $('#backInfoBox').fadeOut(function(){
            $('#infoText').html(msg);
            $(this).fadeIn('fast');
            $('#clearInfoImg').click(function(){
              $(this).parent().hide();
              $('.loginInput').removeAttr("error").css("backgroundColor","#d6e3eb");
            })
          })
          // 如果有错误信息的话，按钮切换到“登录”文字状态，取消禁用，鼠标移入背景变色
          $('#loginIn').val('登      录').attr('disabled',false).addClass('logining_btn').removeClass('otherbtn_style');
  
        }else{
          //如果没有错误信息的话
          $('#backInfoBox').hide();
        }
      }
  
      //这个函数是点击验证码刷新时触发的函数，修改图片src，并修改旧校验码关键字
      function valid_refresh()
      {
          var d=new Date();
          var s=""+(d.getYear())+(d.getMonth()+1)+(d.getDay())+(d.getHours())+(d.getMinutes())+(d.getSeconds())+(d.getMilliseconds());
          var valid_url="/func/web_main/validate?check="+hex_md5(s).toLowerCase();
          if(old_check != "")
          {
              valid_url +="&old=";
              valid_url +=old_check;
          }
          document.getElementById('valid_pic').src=valid_url;
          old_check=hex_md5(s).toLowerCase();
         
      }
      
      //ajax提交，登录
      function submitFormAjax(){
        //如果form检查通过,发送ajax请求
        if(CheckForm()){
          //发送ajax请求，回显提示信息
          $.ajax({
            type:'POST',
            cache:false,
            async:true,
            url:'/func/web_main/login',
  
            data:$('#loginForm').serialize()+"&verify=",
            success:function(data){
              var backMsg; //提示信息
  			var loginUrl; 	//form的action路径
  			var redirecturl; //跳转的URL路径
  			var startlen;	//URL开始位置
  			var url_array;
  
  			//提示信息为空
  			if($('HTML_BODY NODE_CONTENT Msg',data).length == 0)
  			{
  				//判断响应中是否包含url
  				startlen = data.indexOf("url='");
  				
  			}
  			else
  			{
  				backMsg = $('HTML_BODY NODE_CONTENT Msg',data).text();//代表提示信息
  				loginUrl = $('HTML_BODY NODE_CONTENT Redirect',data).text();//代表form的action路径
  			}
  
  
  			
  			//如果url存在则startlen为开始位置，不存在则为-1;
  			//成功则返回的响应格式如下:<html><head><meta http-equiv="Refresh" content="0;url='/func/web_main/display/frame/main'" /></head></html>
  			if(startlen>0)
  			{	
  				//通过单引号将data分隔，取返回数组的第二个值
  				url_array = data.split("'");
  				redirecturl = url_array[1];
  				
  				window.location.href=redirecturl;
  			}
  			else if(backMsg && backMsg != '')
  			{										
              	 if(backMsg == "校验码验证失败！")
                 {
            	       $("#code").focus().val('').attr("error",1);
                     setTimeout("$('#code')[0].style.backgroundColor = '#ffcccc'",0);
                 }
  			   //密码失效的情况下，直接跳转到更改密码的页面
                 else if(backMsg == 'Password invalid'){
                    if(loginUrl != ''){
                      $('#loginForm').attr('action',loginUrl).submit();
                    }else{
                      $('#loginIn').val('登      录').attr('disabled',false).addClass('logining_btn').removeClass('otherbtn_style');
                      return false;
                    }
                 }
                 else
                 {
            	       username.focus();
                     $(username).attr("error",1);
                     setTimeout("username.style.backgroundColor = '#ffcccc'",0);
                 }
                 _errorFun(backMsg);
                 modifySrc();
              }else{
                $('#loginIn').val('登      录').attr('disabled',false).addClass('logining_btn').removeClass('otherbtn_style');
                return false;
              }
            }
          })
        }
      }
      
    </script>
  </head>
  
  <body>
    <div class="loginB">
      <div class="logoDiv">
          <span class="tel"></span>
      </div>
      <div class="contentB">
          <span class="tContent">应用即网络</span>
          <span class="dpContent"></span>
          
          <div class="mainContent">
            <div class="imgContent"></div>
            <div class="loginContent">
              <div class="loginBody">
                <div class="logo1">
                  <span class="logo_left_img"></span>
                  <b class="product_model" id="product_model"></b>
                </div>
                
                <div class="formLogin">
                  <form id="loginForm" method="post">
                  
                    <input type="hidden" id="encrypt_user_name" name="user_name" value="0" />
                    <input type="hidden" id="encrypt_password" name="password" value="0" />
                    <input type="hidden" name="language" value="1" />
                      
                      <!-- 用户名 -->
                      <div class="inputDiv" id="user">
                        <!-- 提示信息 -->
                        <div id="backInfoBox" style="display: none;">
                          <span id="infoText"></span>
                          <span id="clearInfoImg" title="关闭"></span>
                        </div>
                        <!-- 用户名 -->
                        <input id="username" class="loginInput" maxlength="20" placeholder="用户名"/>
                        <label class="iconLabel">
                          <img src="/img/login/user.png" class="icons"/>
                        </label>                     
                      </div>
                      
                      <!-- 密码 -->
                      <div class="inputDiv" id="pwd">
                        <input id="pass_word" type="password" class="loginInput" placeholder="密码" autocomplete="off" maxlength="128"/>
                        <label class="iconLabel">
                          <img src="/img/login/pwd.png" class="icons"/>
                        </label>
                      </div>
                      
                      <!-- 静态码 -->
                      <div style="display:none" class="inputDiv" id="pwd1">
                        <input id="password1" class="loginInput" name="password1" type="password" autocomplete="off" maxlength="128" placeholder="静态码"/>
                        <label class="iconLabel">
                          <img src="/img/login/pwd2.png" class="icons"/>
                        </label>
                      </div>
                      
                      <!-- 一次性口令 -->
                      <div style="display:none;" class="inputDiv" id="otp">
                        <input id="otp_value" class="loginInput" name="otp_value" type="password" autocomplete="off" maxlength="128" placeholder="动态口令"/>
                        <label class="iconLabel">
                          <img src="/img/login/verity.png" class="icons"/>
                        </label>
                      </div>
                      
                      
                      <!-- 验证码 -->
                      <div id="verify_box" class="inputDiv">
                        <div id="verify_code">
                          <input id="code" name="code"  maxlength="5" AUTOCOMPLETE="OFF" class="loginInput loginCode" placeholder="验证码" />
                          <input type="hidden" id="check" name="check" value=""/>
                          <label class="iconLabel">
                            <img src="/img/login/verity.png" class="icons"/>
                          </label>
                        </div>
                        <div id="verify_img">
                          <!-- <span>验证码</span> -->
                          <img id="valid_pic" class="verityCode" title="点击刷新" onclick="valid_refresh()" src=""/>
                          <div class="codeRefresh" onclick="valid_refresh()" title="点击刷新"></div>
                        </div>
                      </div>
                      
                      <!-- 登录 -->
                      <div class="inputDiv" id="btn">
                        <input class="loginBtn logining_btn" id="loginIn" type="button" onclick="submitFormAjax()" value="登      录"/>
                      </div>
                  </form>
                </div>
                   
                <div class="LangDiv">
                  <span class="LangNow">中文</span>
                  <span class="LangSep">|</span>
                  <span><a href="login_en.html" class="LangDis">English</a></span>
                </div>
              </div>
            </div>
          </div>
      </div>
      <div class="footer">
          <p class="copyright" id="copyright"></p>
      </div>
    </div>
  </body>
  </html>
services.body_hash_sha1: sha1:5a544e993f5c799a299d23c9fff5579ac4dbe8da
services.supported_versions: HTTP/1.1
services.protocol: HTTP
services.transport_protocol: TCP
services.scan_time: 2025-07-28T10:02:15.090095
services.banner: HTTP/1.1 200 OK
  X-Frame-Options: SAMEORIGIN
  Content-Type: text/html
  Accept-Ranges: bytes
  ETag: "582372841"
  Last-Modified: Wed, 18 Oct 2017 23:40:38 GMT
  Content-Length: 20883
  Date:  <REDACTED>
  
services.version_selected: TLSv1_2
services.cipher_selected: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
services.ja4s: t120300_c030_bec8bdbaef8a
services.version: TLSv1_2
services.ja4s: t120300_c030_bec8bdbaef8a
services.version: TLSv1_1
services.ja4s: t110200_c014_344b4dce5a52
services.version: TLSv1_0
services.ja4s: t100200_c014_344b4dce5a52
services.names: www.dptechnology.net
services.issuer_dn: C=CN, ST=Zhejiang, L=Hangzhou, O=Dptech, OU=Dptech, CN=www.dptechnology.net, emailAddress=support@dptechnology.net
services.common_name: www.dptechnology.net
services.country: CN
services.locality: Hangzhou
services.province: Zhejiang
services.organization: Dptech
services.organizational_unit: Dptech
services.email_address: support@dptechnology.net
services.subject_dn: C=CN, ST=Zhejiang, L=Hangzhou, O=Dptech, OU=Dptech, CN=www.dptechnology.net, emailAddress=support@dptechnology.net
services.common_name: www.dptechnology.net
services.country: CN
services.locality: Hangzhou
services.province: Zhejiang
services.organization: Dptech
services.organizational_unit: Dptech
services.email_address: support@dptechnology.net
services.scan_time: 2025-07-16T19:37:33.670892
services.value: jquery
services.value: login-page
services.path: /html/login.html
services.endpoint_type: HTTP
services.scan_time: 2025-07-28T10:02:15.090095
services.uri: https://124.95.156.130:5288/html/login.html
services.protocol: HTTP/1.1
services.status_reason: OK
services.key: Last-Modified
services.headers: Wed, 18 Oct 2017 23:40:38 GMT
services.key: Accept-Ranges
services.headers: bytes
services.key: X-Frame-Options
services.headers: SAMEORIGIN
services.key: Content-Length
services.headers: 20883
services.key: Content-Type
services.headers: text/html
services.key: Date
services.headers: <REDACTED>
services.key: ETag
services.headers: "582372841"
services.html_tags: <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Refresh" content="0;url='/func/web_main/display/frame/main'" />
services.body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="/style/login/login.css" />
    <link rel="shortcut icon" href="/favicon.ico"/>
    <link rel="bookmark" href="/favicon.ico" type="image/x-icon"　/>
    <script type="text/javascript" src="/app/encrypt.js"></script>
    <script type="text/javascript" src="/pub/jquery/jquery.js"></script>
    <script type="text/javascript" src="/pub/jquery/jquery.placeholder.js"></script>
    <script type="text/javascript">
    
      var username;//用户名input
      var password;//密码input
      var encrypt_user_name;//接收用户名的隐藏input
      var encrypt_password;//接收密码的隐藏input
      var password1;//静态码input
      var web_conf_pwd;//判断静态码的信息变量
      var otp_auth_value;//判断一次性口令的信息变量
      var verify_code_enable;//判断验证码的信息变量
      var custom_value; //判断定制产品的信息变量
      var product_model;//产品信息元素
      var copyright;//版权信息元素
      var old_check;//旧校验码关键字 
  	var language = 1; //登陆语言选择为中文
  	var login_encrypt_flag;//登陆加密标志
      //请求产品信息、版权等信息的url
      var WEBMAIN_URL = "/func/web_main/validate?web_login_conf=";
      
      window.onload = function(){
        username           = document.getElementById('username');   //用户名
        password           = document.getElementById('pass_word');  //密码
        encrypt_user_name  = document.getElementById('encrypt_user_name');//接收用户名的隐藏表单
        encrypt_password   = document.getElementById('encrypt_password');//接收密码的隐藏表单
        password1          = document.getElementById('password1');//静态码
        product_model      = document.getElementById('product_model');//产品信息
        copyright          = document.getElementById('copyright');//版权
        //ajax请求后台数据，显示产品信息等
        $.get(WEBMAIN_URL,{lang:language},function(data){loadAjaxCallback(data)},"xml"); 
        //调整背景图片的高度以适应浏览器窗口的高度
        windowResize();     
        //页面加载，修改图片的src，显示校验码图片，，并修改旧校验码关键字
        modifySrc();
        //输入框的事件操作
        initState();
      }
  
      /**
       * 请求数据，回显登录方式、产品信息、版权信息
       */
      function loadAjaxCallback(data){
        //定义登录方式变量
        var loginMethods     = $("HTML_BODY web_login_conf",data).text();
        // 定义定制产品名称
        var productName      = $("HTML_BODY product_name",data).text();
        // 定义产品型号名称
        var deviceName       = $('HTML_BODY device_name',data).text();
        // 定义版权信息
        var productCopyRight = $('HTML_BODY copyright',data).text().replace('(c)','©');
        // 定义系统名称
        var systemName      = $("HTML_BODY sysname",data).text();
        
        //定义开启认证模式
        var custom_flag			=$('HTML_BODY custom_display_flag',data).text();
  	  
  	  //定义oem
  	  var oem  = $('HTML_BODY oem',data).text();
  	  login_encrypt_flag = $('HTML_BODY login_encrypt_flag',data).text();//登陆加密标志
        // 定义title
        $(document).attr("title",systemName);
        //显示产品型号
        
        //当命令行设置为产品名称长模式开启，将产品名称显示在左上角，首页微调
        if(0 != custom_flag)
        {
        	  $(".logoDiv").prepend('<span class="product_model_auth">'+productName+'</span>');
        	  $(product_model).before('<div class="LangDiv_auth"><span class="LangNow">中文</span><span class="LangSep"> | </span><span><a href="login_en.html" class="LangDis">English</a></span></div>');
        	  $(".loginContent").remove('loginContent').addClass('loginContent_auth');
        	  $(product_model).remove();  
        	  $(".LangDiv").remove(); 	  
        }
        else     
      	{
      		 $(product_model).text(productName).attr('title',productName);
      	}
  
  	  //当oem为OEM_DPTECH时
  	  if(0 == oem)
  	  {
  		//左上角logo
  		$(".logoDiv").prepend('<img class="logoMain" src="/img/login/dplogo.png"/>');
  		//右上角tel
  		$(".tel").addClass('tel_dp').text('400-6100-598');
  		//登录框logo;
  		$(".logo_left_img").addClass('logo_left_img_dp');
  		//图片中显示迪普科技
  		$(".dpContent").text('迪普科技');
  		//图片中显示了解更多链接
  		$(".dpContent").after(' <a class="learnContent" href="http://www.dptech.com" target="_blank">了解更多</a>');
  	  }
  	  else if(3 == oem)  //当oem为OEM_BLANK时
  	  {
  		//左上角logo
  		$(".logoDiv").prepend('<img class="logoMain" src="/img/login/dplogo3.png"/>');
  		//右上角tel
  		$(".tel").addClass('tel_black');
  		//登录框logo;
  		$(".logo_left_img").addClass('logo_left_img_blank');			
  	  }
  	  else if(5 == oem) //当oem为宇视时
  	  {
  		 $(".logoDiv").prepend('<img class="logoMain" src="/img/login/dplogo5.png"/>'); //左上角logo
  		 $(".tel").addClass('tel_dp').text('400-655-2828');     						//右上角400信息
  		 $(".logo_left_img").addClass('logo_left_img_uniview');							//登录框logo
  		 $(".tContent").text('Better Security，Better World');							//替换"应用即网络"
  		 $(".dpContent").text('宇视科技');												//替换公司名称
  		 $(".dpContent").after(' <a class="learnContent" href="http://cn.uniview.com" target="_blank">了解更多</a>');			//了解更多链接 
  	  }
       
        $('#copyright').html(productCopyRight);
        web_conf_pwd = loginMethods&8;
        otp_auth_value = loginMethods&4;
        verify_code_enable = loginMethods&2;
          
        /* 静态码请求 */
        if (0 != web_conf_pwd)
        {
          $("#pwd1").css("display", "");
          $("#otp").css("display", "none");
          $("#pwd").css("display", "");    
          $("#verify_box").css("display", ""); 
          //修正布局
          $(".inputDiv").css('margin','17px 0 0 0');
          $(".LangDiv").css('margin','15px 0 0 0');
          
          
        }
        /* 一次性口令请求 */
        if (4 == otp_auth_value)
        {
          $("#otp").css("display", "");
          $("#pwd").css("display", "none");
          $("#pwd1").css("display", "none");
          $("#verify_code").css("display", "none");
          //修正布局
          $(".inputDiv").css('margin','25px 0 0 0');
          $('#verify_code').css('display','none');
          $('#verify_img').css('float','right');
  
        } 
        /* 是否开启验证码 */
        if (2 != verify_code_enable)
        {
          $("#verify_code").css("display", "none");
          $("#verify_img").css("display", "none");
          //修正布局
          $(".inputDiv").css('margin','30px 0 0 0');
        }     
        
      }
  
      // 调整背景图片的高度以适应浏览器窗口的高度。
      function windowResize(){
        $(".contentB").height($(window).height()-160);
        $(window).resize(function(){$(".contentB").height($(window).height()-160)});
      }
      
      // 页面加载，修改图片的src，显示校验码图片，，并修改旧校验码关键字
      function modifySrc(){
        var d=new Date();
        var s=""+(d.getYear())+(d.getMonth()+1)+(d.getDay())+(d.getHours())+(d.getMinutes())+(d.getSeconds())+(d.getMilliseconds());
        var valid_url="/func/web_main/validate?check="+hex_md5(s).toLowerCase();
        $("#valid_pic").attr("src",valid_url);
        old_check=hex_md5(s).toLowerCase();
        $("#check").val(old_check);
      }
      
      //其他的事件操作
      function initState(){
        // 输入框获取焦点时改变背景色。
        $('.loginInput').focus(function(){
        	if(!$(this).attr("error"))
          $(this).css('backgroundColor','#e5edf2');
        }).blur(function(){
        	if(!$(this).attr("error"))
          $(this).css('backgroundColor','#d6e3eb')
        })
  
        $('#loginForm').keydown(function(event){
          if(event.keyCode === 13){
            $('#loginIn').trigger('click');
          }
        })
  
        $("#username").focus();
      }
  
      
      //将用户名和密码进行“加密”处理的函数
      function ws_str_encrypt(str)
      {
          var length = str.length;
          var half = length/2+1;
          var a =[];
          var s1,s2;
          var str2="";
          
          for(var i = 0,j=length-1;i<half;i++,j--)
          {
              s1 = str.charAt(i);
              s2 = str.charAt(j);
              a[i] = s2;
              a[j]= s1;
          }
          
          for(i=0;i<a.join('').length;i++)
          {
              str2+="%"+(a.join('').charCodeAt(i)^0x37).toString();
          }
          return str2;
      } 
  
      
      //检查用户名合法性，提交前检查
      function CheckUsername()
      {
          var expr = /^\s*([A-Za-z]{1}[A-Za-z0-9_\-]{2,19})\s*$/;
          var ret;
          ret = username.value.match(expr);
  
          if (ret==null || ret[1]==null)
          {
              _errorFun('用户名不合法！');
              username.focus();
              $(username).attr("error",1)
              setTimeout("username.style.backgroundColor = '#ffcccc'",0);
              return false;
          }
          else
          {
              username.value=ret[1];
  			if (login_encrypt_flag != 0)
  			{
  				encrypt_user_name.value = ws_str_encrypt(username.value);
  
  			}
  			else
  			{
  				encrypt_user_name.value = username.value;
  			}
  
              return true;
          }
      }
  
      
      //提交前检查密码合法性
      function CheckPassword()
      {
          var expr = /^[A-Za-z0-9\(\)\-\+\=\|\[\]\%\:\;\/\_\,\`\~\!\@\#\$\%\^\&\*\<\>\.\?\"\']{1,128}$/;
          var ret;
          ret = password.value.match(expr);
          if (ret==null)
          {
              _errorFun('密码不合法！');
              password.focus();
              $(password).attr("error",1);
              setTimeout("password.style.backgroundColor = '#ffcccc'",0);
              return false;
          }
          if (0 != web_conf_pwd)
          {
              ret = password1.value.match(expr);
              if (ret==null)
              {
                  _errorFun('密码不合法！');
                  password1.focus();
                  $(password).attr("error",1);
                  setTimeout("password1.style.backgroundColor = '#ffcccc'",0);
                  return false;
              }
          }
  		if (login_encrypt_flag != 0)
  		{
  			encrypt_password.value = ws_str_encrypt($('#pass_word').val());
  		}
  		else
  		{
  			encrypt_password.value = $('#pass_word').val();
  		}      
  		return true;
      }
  
      //提交前检查form表单
      function CheckForm()
      {
        $('#loginIn').val('登 录 中...').removeClass('logining_btn').prop('disabled',true).addClass('otherbtn_style');
        $('#check').val(old_check);
        $('.loginInput').removeAttr("error").css("backgroundColor","#d6e3eb");
        var login_flag = 0;
         //当一次性口令启用时，不用校验密码
         if (otp_auth_value == 4)
         {
            if (CheckUsername() && login_flag === 0)
            {
                login_flag = 1;
                return true;  
            }
            else
            {
              return false;
            }
         }
         //当一次性口令禁用时，需用校验密码
         else
         {
            if (CheckUsername() && CheckPassword() && login_flag === 0)
            {
                login_flag = 1;
                return true;
            }
            else
            {
                return false;
            }
         }
      }
  
     
      /**
       * 内部函数，消除loading图标，提示信息再次提醒用户
       * msg是提示信息
       */
      function _errorFun(msg){
        //
        if(msg){
          $('#backInfoBox').fadeOut(function(){
            $('#infoText').html(msg);
            $(this).fadeIn('fast');
            $('#clearInfoImg').click(function(){
              $(this).parent().hide();
              $('.loginInput').removeAttr("error").css("backgroundColor","#d6e3eb");
            })
          })
          // 如果有错误信息的话，按钮切换到“登录”文字状态，取消禁用，鼠标移入背景变色
          $('#loginIn').val('登      录').attr('disabled',false).addClass('logining_btn').removeClass('otherbtn_style');
  
        }else{
          //如果没有错误信息的话
          $('#backInfoBox').hide();
        }
      }
  
      //这个函数是点击验证码刷新时触发的函数，修改图片src，并修改旧校验码关键字
      function valid_refresh()
      {
          var d=new Date();
          var s=""+(d.getYear())+(d.getMonth()+1)+(d.getDay())+(d.getHours())+(d.getMinutes())+(d.getSeconds())+(d.getMilliseconds());
          var valid_url="/func/web_main/validate?check="+hex_md5(s).toLowerCase();
          if(old_check != "")
          {
              valid_url +="&old=";
              valid_url +=old_check;
          }
          document.getElementById('valid_pic').src=valid_url;
          old_check=hex_md5(s).toLowerCase();
         
      }
      
      //ajax提交，登录
      function submitFormAjax(){
        //如果form检查通过,发送ajax请求
        if(CheckForm()){
          //发送ajax请求，回显提示信息
          $.ajax({
            type:'POST',
            cache:false,
            async:true,
            url:'/func/web_main/login',
  
            data:$('#loginForm').serialize()+"&verify=",
            success:function(data){
              var backMsg; //提示信息
  			var loginUrl; 	//form的action路径
  			var redirecturl; //跳转的URL路径
  			var startlen;	//URL开始位置
  			var url_array;
  
  			//提示信息为空
  			if($('HTML_BODY NODE_CONTENT Msg',data).length == 0)
  			{
  				//判断响应中是否包含url
  				startlen = data.indexOf("url='");
  				
  			}
  			else
  			{
  				backMsg = $('HTML_BODY NODE_CONTENT Msg',data).text();//代表提示信息
  				loginUrl = $('HTML_BODY NODE_CONTENT Redirect',data).text();//代表form的action路径
  			}
  
  
  			
  			//如果url存在则startlen为开始位置，不存在则为-1;
  			//成功则返回的响应格式如下:<html><head><meta http-equiv="Refresh" content="0;url='/func/web_main/display/frame/main'" /></head></html>
  			if(startlen>0)
  			{	
  				//通过单引号将data分隔，取返回数组的第二个值
  				url_array = data.split("'");
  				redirecturl = url_array[1];
  				
  				window.location.href=redirecturl;
  			}
  			else if(backMsg && backMsg != '')
  			{										
              	 if(backMsg == "校验码验证失败！")
                 {
            	       $("#code").focus().val('').attr("error",1);
                     setTimeout("$('#code')[0].style.backgroundColor = '#ffcccc'",0);
                 }
  			   //密码失效的情况下，直接跳转到更改密码的页面
                 else if(backMsg == 'Password invalid'){
                    if(loginUrl != ''){
                      $('#loginForm').attr('action',loginUrl).submit();
                    }else{
                      $('#loginIn').val('登      录').attr('disabled',false).addClass('logining_btn').removeClass('otherbtn_style');
                      return false;
                    }
                 }
                 else
                 {
            	       username.focus();
                     $(username).attr("error",1);
                     setTimeout("username.style.backgroundColor = '#ffcccc'",0);
                 }
                 _errorFun(backMsg);
                 modifySrc();
              }else{
                $('#loginIn').val('登      录').attr('disabled',false).addClass('logining_btn').removeClass('otherbtn_style');
                return false;
              }
            }
          })
        }
      }
      
    </script>
  </head>
  
  <body>
    <div class="loginB">
      <div class="logoDiv">
          <span class="tel"></span>
      </div>
      <div class="contentB">
          <span class="tContent">应用即网络</span>
          <span class="dpContent"></span>
          
          <div class="mainContent">
            <div class="imgContent"></div>
            <div class="loginContent">
              <div class="loginBody">
                <div class="logo1">
                  <span class="logo_left_img"></span>
                  <b class="product_model" id="product_model"></b>
                </div>
                
                <div class="formLogin">
                  <form id="loginForm" method="post">
                  
                    <input type="hidden" id="encrypt_user_name" name="user_name" value="0" />
                    <input type="hidden" id="encrypt_password" name="password" value="0" />
                    <input type="hidden" name="language" value="1" />
                      
                      <!-- 用户名 -->
                      <div class="inputDiv" id="user">
                        <!-- 提示信息 -->
                        <div id="backInfoBox" style="display: none;">
                          <span id="infoText"></span>
                          <span id="clearInfoImg" title="关闭"></span>
                        </div>
                        <!-- 用户名 -->
                        <input id="username" class="loginInput" maxlength="20" placeholder="用户名"/>
                        <label class="iconLabel">
                          <img src="/img/login/user.png" class="icons"/>
                        </label>                     
                      </div>
                      
                      <!-- 密码 -->
                      <div class="inputDiv" id="pwd">
                        <input id="pass_word" type="password" class="loginInput" placeholder="密码" autocomplete="off" maxlength="128"/>
                        <label class="iconLabel">
                          <img src="/img/login/pwd.png" class="icons"/>
                        </label>
                      </div>
                      
                      <!-- 静态码 -->
                      <div style="display:none" class="inputDiv" id="pwd1">
                        <input id="password1" class="loginInput" name="password1" type="password" autocomplete="off" maxlength="128" placeholder="静态码"/>
                        <label class="iconLabel">
                          <img src="/img/login/pwd2.png" class="icons"/>
                        </label>
                      </div>
                      
                      <!-- 一次性口令 -->
                      <div style="display:none;" class="inputDiv" id="otp">
                        <input id="otp_value" class="loginInput" name="otp_value" type="password" autocomplete="off" maxlength="128" placeholder="动态口令"/>
                        <label class="iconLabel">
                          <img src="/img/login/verity.png" class="icons"/>
                        </label>
                      </div>
                      
                      
                      <!-- 验证码 -->
                      <div id="verify_box" class="inputDiv">
                        <div id="verify_code">
                          <input id="code" name="code"  maxlength="5" AUTOCOMPLETE="OFF" class="loginInput loginCode" placeholder="验证码" />
                          <input type="hidden" id="check" name="check" value=""/>
                          <label class="iconLabel">
                            <img src="/img/login/verity.png" class="icons"/>
                          </label>
                        </div>
                        <div id="verify_img">
                          <!-- <span>验证码</span> -->
                          <img id="valid_pic" class="verityCode" title="点击刷新" onclick="valid_refresh()" src=""/>
                          <div class="codeRefresh" onclick="valid_refresh()" title="点击刷新"></div>
                        </div>
                      </div>
                      
                      <!-- 登录 -->
                      <div class="inputDiv" id="btn">
                        <input class="loginBtn logining_btn" id="loginIn" type="button" onclick="submitFormAjax()" value="登      录"/>
                      </div>
                  </form>
                </div>
                   
                <div class="LangDiv">
                  <span class="LangNow">中文</span>
                  <span class="LangSep">|</span>
                  <span><a href="login_en.html" class="LangDis">English</a></span>
                </div>
              </div>
            </div>
          </div>
      </div>
      <div class="footer">
          <p class="copyright" id="copyright"></p>
      </div>
    </div>
  </body>
  </html>
services.body_hash_sha1: sha1:5a544e993f5c799a299d23c9fff5579ac4dbe8da
services.supported_versions: HTTP/1.1
[binary data, 24 values, 572 bytes]