login.jsp
来自「Jive是基于JSP/JAVA技术构架的一个大型BBS论坛系统,这是Jive论坛」· JSP 代码 · 共 134 行
JSP
134 行
<%/** * $RCSfile: login.jsp,v $ * $Revision: 1.5 $ * $Date: 2002/06/18 00:34:57 $ */%><%@ page import="java.util.*, com.jivesoftware.forum.*, com.jivesoftware.forum.util.*" errorPage="error.jsp"%><%@ include file="permMethods.jsp" %><% // get parameters String username = ParamUtils.getParameter(request,"username"); String password = ParamUtils.getParameter(request,"password"); boolean errors = false; if (ParamUtils.getBooleanParameter(request,"login")) { try { Authorization authToken = AuthorizationFactory.getAuthorization(username, password); ForumFactory forumFactory = ForumFactory.getInstance(authToken); boolean isSystemAdmin = forumFactory.hasPermission(ForumPermissions.SYSTEM_ADMIN); boolean isCatAdmin = false; boolean isForumAdmin = false; boolean isUserAdmin = false; boolean isGroupAdmin = false; boolean isModerator = false; if (!isSystemAdmin && !isCatAdmin && !isForumAdmin && !isUserAdmin && !isGroupAdmin && !isModerator) { throw new UnauthorizedException(); } session.setAttribute("jive.admin.authorization", authToken); response.sendRedirect("index.jsp"); return; } catch (UnauthorizedException ue) { errors = true; } }%><html><head> <title>Jive Forums 2 Admin Login</title> <script language="JavaScript" type="text/javascript"> <!-- // break out of frames if (self.parent.frames.length != 0) { self.parent.location=document.location; } //--> </script></head><body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000"><form action="login.jsp" name="loginForm" method="post"><input type="hidden" name="login" value="true"><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><td width="49%"><br></td><td width="2%"> <noscript> <table border="0" cellspacing="0" cellpadding="0"> <td class="error"> <font size="-1" color="#ff0000"> <b>Error:</b> You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. </font> </td> </table> <br><br><br><br> </noscript> <% if (errors) { %> <font size="-1" face="arial,helvetica,sans-serif" color="#ff0000"> <span class="error">Login failed: Make sure your username and password are correct.</span> </font> <p> <% } %> <p> <center> <font size="-1" face="arial,helvetica,sans-serif"><b>Jive Forums 2 Administration</b></font> </center><p> <table cellpadding="1" cellspacing="0" border="0" bgcolor="#999999"> <tr><td> <table cellpadding="2" cellspacing="0" border="0" bgcolor="#eeeeee"> <tr><td colspan="2"><img src="images/blank.gif" width="1" height="5" border="0"></td></tr> <tr> <td align="right" nowrap><font size="-1" face="arial,helvetica,sans-serif">username </font></td> <td><input type="text" name="username" size="15" maxlength="25"></td> </tr> <tr><td colspan="2"><img src="images/blank.gif" width="230" height="5" border="0"></td></tr> <tr> <td align="right" nowrap><font size="-1" face="arial,helvetica,sans-serif">password </font></td> <td><input type="password" name="password" size="15" maxlength="20"></td> </tr> <tr><td colspan="2"><img src="images/blank.gif" width="1" height="5" border="0"></td></tr> <tr> <td colspan="2" align="center"> <input type="submit" value="  Login "> <p> <font size="-2" face="verdana,arial,helvetica" color="#666666"> Jive Forums Version: <%= JiveGlobals.getJiveVersion() %> </font> </td> </tr> <tr><td colspan="2"><img src="images/blank.gif" width="1" height="5" border="0"></td></tr> </table> </td></tr> </table></td><td width="49%"><br></td></table></form><script language="JavaScript" type="text/javascript"><!-- document.loginForm.username.focus();//--></script></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?