LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1164|回复: 4

请教LINUX上聚友网的问题(固定IP WEB认证上网方式)

[复制链接]
发表于 2004-6-15 19:12:00 | 显示全部楼层 |阅读模式
我的LINUX死活无法打开输密码的页面。本来这种认证方式是固定IP,然后随便输入一个网址都会引导到登录页面。但是在LINUX下没办法做到,我在windows下把页面保存下来然后到LINUX下打开,也是无法连接,这个保存下来的页面在windows下是可以用来连接的。麻烦那位老大帮我看看。我把这个JAVA页面的代码粘下来:
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Expires" content="Tue, 1 Aug 1996 14:25:27 GMT">
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="ragma" CONTENT="no-cache">  
<script language='JavaScript' src='http://210.21.209.3:3002/js/acslogin.js' type='text/javascript'></script>          
<title>User Authentication</title></head>
<body>

<script language='JavaScript' >                       
function check_input()                                        
{                                                                                                       
         with (document.authform)                                
         {                                                                                                       
                if ( uact_status.value==1 )   {                
                        return false;                                                        
                }                                                                                               
                if ( uid.value.length>64 )   {                
                        alert ("用户代码过长 !");                                                
                        uid.focus();                                                       
                        return false;                                                        
                }                                                                                               
                if ( upwd.value.length>64 )   {        
                        alert ("用户密码过长 !");                                               
                        upwd.focus();                                                       
                        return false;                                                        
                }                                                                                               
                if ( uid.value=="" ||  uid.value.charAt(0) == " " ||  uid.value.charAt(0) == "#" )   {                
                        alert ("用户代码无效 !");                                                
                        uid.focus();                                                       
                        return false;                                                        
                }                                                                                               
                if ( upwd.value=="" || upwd.value.charAt(0) == " " || upwd.value.charAt(0) == "#" )   {        
                        alert ("用户密码无效 !");                                               
                        upwd.focus();                                                       
                        return false;                                                        
                }                                                                                               
                if ( remuser.checked )                                       
                {                                                                                               
                        SetCookie("uid", uid.value);              
                        SetCookie("upwd", upwd.value);       
                }                                                                                               
                else {                                                                               
                        SetCookie("uid", "");              
                        SetCookie("upwd", "");       
                        SetCookie("sid", "0");               
                }                                                                                               
                uact_status.value=1;                                       
         }                                                                                                       

        location.replace("www.linuxsir.cn");                        
        return true;                                                                        
}                                                                                                       

function selectVPN()                                                
{                                                                                                       
         with (document.authform)                                
         {                                                                                                       
                 if ( vpn.checked )                                               
                         vpn.value=1;                                                       
                 else                                                                                       
                         vpn.value=0;                                                       
         }                                                                                                       
}                                                                                                       
</script>                                                                                       


<center>                                                                                

<img src='http://192.168.100.23/auth/logo.gif' alt='Page Title'><br><br>

<form name='authform' action='http://210.21.209.3:3002/cgi-bin/authcgi_login' method='post'  onsubmit='return check_input();'>
<input type='hidden' name='sip' value='210.21.209.3'>
<input type='hidden' name='uip' value='10.168.58.233'>
<input type='hidden' name='url' value='www.linuxsir.cn'>
<input type='hidden' name='uact' value='login'>
<input type='hidden' name='uact_status' value='0'>
<table width='80%' border='0'>
<tr><td align=right width='35%'>用户代码 :</td><td><input type='text' name='uid' size='32' value='' maxlength='32'></td></tr>
<tr><td align=right width='35%'>用户密码 :</td><td><input type='password' name='upwd' size='32' value='' maxlength='32'></td></tr>
<tr><td colspan=2 align=center><input type='checkbox' name='remuser' value='1'> <font size='2'> 记住我的账号</td></tr>
<tr><td colspan=2 align=center><input type='hidden' name='vpn' value='0'></td></tr>
<tr><td colspan=2 align=center><br><input type='submit' name='go' value='用户登入' ></td></tr>
</table>

<input type='hidden' name='btype' value='0'>
<script language='JavaScript' >                                                                

        var ap_name = navigator.appName.toUpperCase();                 
        var ap_vinfo = navigator.appVersion;                                                         
        var ap_ver = parseFloat(ap_vinfo.substring( 0, ap_vinfo.indexOf('(')) );       

        if( ap_name.indexOf("NETSCAPE")>=0 )
                document.write("<layer name='ad' src='http://192.168.100.23/auth/notice.htm' align='center' height='200%' width='100%' visibility='show'></layer>");
        else                                                                                                        
                document.write("<iframe name='ad' src='http://192.168.100.23/auth/notice.htm' align='center' valign='top'  height='200%'  width='100%' scrolling='auto' frameborder='0' ></iframe>");
                                                                                                               
        acs_uid=GetCookie("uid");        
        acs_upwd=GetCookie("upwd");        
        if ( acs_uid!="" && acs_uid!=null )        
        {                                                                                                       
                document.authform.uid.value=acs_uid;                
                document.authform.remuser.checked=true;        
        }                                                                                                                                       
        if ( acs_upwd!="" && acs_upwd!=null  )                
        {                                                                                                       
                document.authform.upwd.value=acs_upwd;        

                document.authform.remuser.checked=true;        
        }                                                                                                                                       
</script>       

</form>        
</center>       
</body>        
</html>
发表于 2004-6-16 09:27:55 | 显示全部楼层
此网页是对IE优化的,多个标签mozilla无法解释,换opera试试!
 楼主| 发表于 2004-6-16 09:39:16 | 显示全部楼层

但是很奇怪,我在windows下用mozilla是可以打开的,并且能上网。

我用windows版本的mozilla是可以打开的,并且能上网。
 楼主| 发表于 2004-6-16 10:40:55 | 显示全部楼层

刚试过了,还是不行。

netcaps、mozilla、opera都是一样的反应。windows中打开网页的话会直接引导至登录页面,而linux中就只有一句无法连接网站。
发表于 2004-7-8 17:19:14 | 显示全部楼层

支持JAVA了吗?

浏览器支持JAVA了吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表