高分求教:软件下载的问题
一show.asp重定向语句文件如后:
实际运行时却提示:
您没有权限查看该网页
您提供的证书没有权限查看该目录或网页。
----------------------------------------------------------
请尝试下列操作:
单击刷新按钮,并使用其他证书重试。
如果您确信应该能够查看该目录或网页,请与 Web 站点管理员联系,其电子邮件地址或电话号码请参阅 192.168.168.51 主页。
HTTP 401.3 - ACL 禁止访问资源
Internet 信息服务
附注: show.asp
<!--#include file="db/user.asp" -->
<%
if request("id")="" then
response.write "非法操作,请确认程序是否正常运行"
response.end
end if
if request("down")<>"" then
call down()
response.end
end if
Set rs = Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM download where id="&request("id")
rs.OPEN sql, Conn,1,3
if rs.eof and rs.bof then
response.write "没有该软件"
response.end
end if
rs("count")=rs("count").value+1
rs.update
%>
<!--#include file="code.asp" --><body background=images/bg.gif>
<tr><center>
<table border="0" width="600" cellpadding="6" bgcolor="#000000" cellspacing="1" cellpadding="4">
<TR bgcolor=FFFFFF>
<td width="50%" align="right" colspan=4 background=images/lhbg.gif><center><%=rs("name")%></td></tr>
<TR bgcolor=FFFFFF>
<td width="100" align="right">更新日期:</td>
<td width="500"><%=rs("time")%></td></tr>
<TR bgcolor=FFFFFF>
<td width="100" align="right">程序类别:</td>
<td width="500"><%=rs("big")%>¦<%=rs("sort")%></td></tr>
<TR bgcolor=FFFFFF>
<td width="100" align="right">文件大小:</td>
<td width="500"><%=rs("size")%></td></tr>
<TR bgcolor=FFFFFF>
<td width="100" align="right">授权方式:</td>
<td width="500"><%=rs("mode")%></td></tr>
<TR bgcolor=FFFFFF>
<td width="100" align="right">应用平台:</td>
<td width="500"><%=rs("roof")%></td></tr>
<TR bgcolor=FFFFFF>
<td width="100" align="right">程序评分:</td>
<td width="500"><img src='./images/<%=rs("commend")%>' width=55 height=12></td></tr>
<TR bgcolor=FFFFFF>
<td width="100" align="right">程序主页:</td>
<td width="500"><%if rs("homepage")<>"" then%>
<a href='<%=rs("homepage")%>' target=_blank><%=rs("homepage")%></td></tr>
<%else%>
Home Page
<%end if%>
</td>
<TR bgcolor=FFFFFF>
<td width="100" align="right">下载浏览:</td>
<td width="500"><%=rs("downcount")%>/<%=rs("count")%></td></tr>
<TR bgcolor=FFFFFF>
<td width="100" align="right">本地下载:</td>
<td width="500"><a href='show.asp?id=<%=rs("id")%>&down=1'><!--#include file="home.asp" -->/show.asp?id=<%=rs("id")%>&down=1</a>
</td></tr>
<%if rs("down2")<>"" then%>
<TR bgcolor=FFFFFF>
<td width="100" align="right">下载地址1:</td>
<td width="500"><a href='show.asp?id=<%=rs("id")%>&down=2'><!--#include file="home.asp" -->/show.asp?id=<%=rs("id")%>&down=2</a></td></tr>
<%end if%>
<%if rs("down3")<>"" then%>
<TR bgcolor=FFFFFF>
<td width="100" align="right">下载地址2:</td>
<td width="500"><a href='show.asp?id=<%=rs("id")%>&down=3'><!--#include file="home.asp" -->/show.asp?id=<%=rs("id")%>&down=3</a></td></tr>
<%end if%>
<%if rs("down4")<>"" then%>
<TR bgcolor=FFFFFFF>
<td width="100" align="right">下载地址3:</td>
<td width="500"><a href='show.asp?id=<%=rs("id")%>&down=4'><!--#include file="home.asp" -->/show.asp?id=<%=rs("id")%>&down=4</a></td></tr>
<%end if%>
<%if rs("down5")<>"" then%>
<TR bgcolor=FFFFFF>
<td width="100" align="right">下载地址4:</td>
<td width="500"><a href='show.asp?id=<%=rs("id")%>&down=5'><!--#include file="home.asp" -->/show.asp?id=<%=rs("id")%>&down=5</a></td></tr>
<%end if%>
<%if rs("demo")<>"" then%>
<TR bgcolor=FFFFFF>
<td width="100" align="right">演示地址:</td>
<td width="500"><a class=shadow1 href='<%=rs("demo")%>' target=_blank><%=rs("demo")%></a></td></tr>
<%else%>
<TR bgcolor=FFFFFF>
<td width="100" align="right">暂无演示:</td>
<td width="500"><a href='<!--#include file="home.asp" -->'><!--#include file="home.asp" --></a></td></tr>
<%end if%>
<TR bgcolor=FFFFFF>
<td width="100" align="right">软件简介:</td>
<td width="500"><%if rs("pic")<>"" then%></td></tr>
<td width="500"><a href='<%=rs("pic")%>' target=_blank><img src='./images/img.gif' title='点击查看图片' border=0></a></td></tr>
<%end if%>
<%=rs("show")%>
</td>
</tr>
</table>
<br>
<!--#include file="first.asp" -->
<!--#include file="counter.asp" -->
<hr size="1" width="98%">
<p align="center">
<!--#include file="goal.asp" -->
<%
sub down()
Set rdown = Server.CreateObject("ADODB.Recordset")
sqldown="SELECT * FROM download where id="&request("id")
rdown.OPEN sqldown, Conn,1,3
downl=request("down")
if downl>"5" then
response.write "没有该下载地址"
response.end
end if
if downl="1" then
%>
<META HTTP-EQUIV=REFRESH CONTENT='0;URL=<%=rdown("down1")%>'>
<%
rdown("downcount")=rdown("downcount").value+1
rdown.update
elseif downl="2" then
%>
<META HTTP-EQUIV=REFRESH CONTENT='0;URL=<%=rdown("down2")%>'>
<%
rdown("downcount")=rdown("downcount").value+1
rdown.update
elseif downl="3" then
%>
<META HTTP-EQUIV=REFRESH CONTENT='0;URL=<%=rdown("down3")%>'>
<%
rdown("downcount")=rdown("downcount").value+1
rdown.update
elseif downl="4" then
%>
<META HTTP-EQUIV=REFRESH CONTENT='0;URL=<%=rdown("down4")%>'>
<%
rdown("downcount")=rdown("downcount").value+1
rdown.update
elseif downl="5" then
%>
<META HTTP-EQUIV=REFRESH CONTENT='0;URL=<%=rdown("down5")%>'>
<%
rdown("downcount")=rdown("downcount").value+1
rdown.update
end if
rdown.close
set rdown=nothing
end sub
rs.close
set rs=nothing
conn.close
set conn=nothing
%>