懂ASP语言的朋友 帮下忙

来源:百度知道 编辑:UC知道 时间:2024/09/23 10:52:29
<%Response.Expires=0
Response.Buffer=true
aqjh_name=Session("aqjh_name")
aqjh_grade=Session("aqjh_grade")
aqjh_jhdj=Session("aqjh_jhdj")
if aqjh_name="" then Response.Redirect "../error.asp?id=440"
if session("aqjh_adminok")<>true then Response.Redirect "../chat/readonly/bomb.htm"
if aqjh_grade<>10 or instr(Application("aqjh_admin"),aqjh_name)=0 then Response.Redirect "../error.asp?id=439"
if aqjh_admin2=0 and aqjh_name<>Application("aqjh_user") then
Response.Write "<script language=JavaScript>{alert('提示:江湖已经关闭了副站的管理权,你不能操作!');parent.history.go(-1);}</script>"
Response.End
end if
if aqjh_xboy=0 and aqjh_name<>Application("aqjh_user") then
Response.Write "<script language=JavaScript>{alert('提示:你不是正站长,你不能操作!');parent.history.go(-1);}<

数据库

把下面2个IF 判断从程序中去掉
if aqjh_admin2=0 and aqjh_name<>Application("aqjh_user") then
Response.Write "<script language=JavaScript>{alert('提示:江湖已经关闭了副站的管理权,你不能操作!');parent.history.go(-1);}</script>"
Response.End
end if
if aqjh_xboy=0 and aqjh_name<>Application("aqjh_user") then
Response.Write "<script language=JavaScript>{alert('提示:你不是正站长,你不能操作!');parent.history.go(-1);}</script>"
Response.End
end if

不能