.
This commit is contained in:
@@ -55,13 +55,10 @@
|
||||
<!-- 判断是否是管理员 -->
|
||||
<%
|
||||
if (flag == true) {
|
||||
%>
|
||||
<jsp:forward page="../manage_user.jsp" />
|
||||
<%
|
||||
response.setHeader("refresh","0;url=../manage_user.jsp");
|
||||
} else if (flag == false) {
|
||||
out.println(
|
||||
"<script language=javascript>alert('你不是管理员,不能访问此版块');window.location.href='../mainframe.jsp'</script>");
|
||||
return;
|
||||
out.println("<script language=javascript>alert('你不是管理员,不能访问此版块')</script>");
|
||||
response.setHeader("refresh","1;url=../mainframe.jsp");
|
||||
}
|
||||
%>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user