ros hotspot login文件

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<style type="text/css">
body {color: #737373; font-size: 10px; font-family: verdana;}

textarea,input,select {
background-color: #FDFBFB;
border: 1px solid #BBBBBB;
padding: 2px;
margin: 1px;
font-size: 14px;
color: #808080;
}

a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 16px; }
a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; }
img {border: none;}
td { font-size: 14px; color: #7A7A7A; }
</style>

   <script language="javascript" type="text/javascript">

           var mikcode=1234;  
           var webauthIp='www.wx.com';
           var hotspotid=mkcode;  
           var dst='$(link-orig)';
           var srclogin=window.location.protocol +"//"+window.location.host +'/login';
           //alert("$(chap-challenge)" +","+decodeURIComponent(encodeURIComponent("$(chap-challenge)"))+","+decodeURIComponent(decodeURIComponent(decodeURIComponent(encodeURIComponent(encodeURIComponent("$(chap-challenge)"))))));
           
         
           var hrefurl="http://"+webauthIp+"/index.php?hotspotid="+hotspotid+"&mkcode="+mkcode+"&userip=$(ip)&usermac=$(mac)&chapid="+str2hex("$(chap-id)")+"&chapchallenge="+str2hex("$(chap-challenge)")+"&dst="+encodeURIComponent("$(link-orig)")+"&srclogin="+encodeURIComponent(srclogin);
           window.location.href=hrefurl; 
           function gotohrefurl(){
              window.location.href=hrefurl; 
           }

function str2hex(str)
{
        var testString=str;
        var i=0;
        var hstr="";
        while(i<testString.length){
        (
        hstr+=char2hex((testString.charCodeAt(i++))));//charCodeAt        
        }
        
        return hstr;
}           
           
function char2hex(v)
{
  var hex_tab = "0123456789abcdef"
  var str = ""
  str = hex_tab.charAt((v>>4&0xF))
  str += hex_tab.charAt(v&0x0F)
  return str
}

        
       </script>
    
$(if chap-id)
    <form name="sendin" action="$(link-login-only)" method="post">
        <input type="hidden" name="username" />
        <input type="hidden" name="password" />
        <input type="hidden" name="dst" value="$(link-orig)" />
        <input type="hidden" name="popup" value="true" />
    </form>
    
    <script type="text/javascript" src="/md5.js"></script>
    <script type="text/javascript">
    <!--
        function doLogin() {
        document.sendin.username.value = document.login.username.value;
        document.sendin.password.value = hexMD5('$(chap-id)' + document.login.password.value + '$(chap-challenge)');
        document.sendin.submit();
        return false;
        }
    //-->
    </script>
$(endif)
</head>

<body>
 
<table width="100%" height="100%">
<tr>
    <td align="center" valign="middle">
    您的浏览器可能不支持跳转功能 ,<a href="javascript:gotohrefurl()">点击这里</a>开通上网</td>
</tr>
</table>

<!--
<table width="100%" style="margin-top: 10%;">
    <tr>
    <td align="center" valign="middle">
        <div class="notice" style="color: #c1c1c1; font-size: 9px">Please log on to use the internet hotspot service<br />$(if trial == 'yes')Free trial available, <a style="color: #FF8080"href="$(link-login-only)?dst=$(link-orig-esc)&amp;username=T-$(mac-esc)">click here</a>.$(endif)</div><br />
        <table width="280" height="280" style="border: 1px solid #cccccc; padding: 0px;" cellpadding="0" cellspacing="0">
            <tr>
                <td align="center" valign="bottom" height="175" colspan="2">
                    <form name="login" action="$(link-login-only)" method="post"
                        $(if chap-id) onSubmit="return doLogin()" $(endif)>
                        <input type="hidden" name="dst" value="$(link-orig)" />
                        <input type="hidden" name="popup" value="true" />
                        
                            <table width="100" style="background-color: #ffffff">
                                <tr><td align="right">login</td>
                                        <td><input style="width: 80px" name="username" type="text" value="$(username)"/></td>
                                </tr>
                                <tr><td align="right">password</td>
                                        <td><input style="width: 80px" name="password" type="password"/></td>
                                </tr>
                                <tr><td>&nbsp;</td>
                                        <td><input type="submit" value="OK" /></td>
                                </tr>
                            </table>
                    </form>
                </td>
            </tr>
            <tr><td align="center"><a href="http://www.wx.com" target="_blank" style="border: none;"></a></td></tr>
        </table>
    
    <br /><div style="color: #c1c1c1; font-size: 9px">Powered by easyon</div>
    $(if error)<br /><div style="color: #FF8080; font-size: 9px">$(error)</div>$(endif)
    </td>
    </tr>
</table>
-->
<script type="text/javascript">
<!--
 // document.login.username.focus();
//-->
</script>
</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值