auth.jsp

来自「Jive是基于JSP/JAVA技术构架的一个大型BBS论坛系统,这是Jive论坛」· JSP 代码 · 共 367 行 · 第 1/2 页

JSP
367
字号
        <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"         face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"         color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">        <%= SkinUtils.getLocalizedString("skin.default.login.success",locale) %>        </font>        <ul>            <li><font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"                 face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"                 color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">                <a href="index.jsp"                 ><%= SkinUtils.getLocalizedString("skin.default.global.go_back_to_main",locale) %></a>                </font>            <li><font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"                 face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"                 color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">                <a href="settings.jsp?user=<%= authToken.getUserID() %>"                 ><%= SkinUtils.getLocalizedString("skin.default.loginbox.settings",locale) %></a>                </font>            <li><font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"                 face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"                 color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">                <a href="auth.jsp?logout=true"                 ><%= SkinUtils.getLocalizedString("skin.default.global.logout",locale) %></a>                </font>        </ul><%      }        // Indicate to the user they've successfully logged out:        else if (logoutSuccess) {%>        <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"         face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"         color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">        <%= SkinUtils.getLocalizedString("skin.default.logout.success",locale) %>        </font>        <ul>            <li><font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"                 face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"                 color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">                <a href="index.jsp"                 ><%= SkinUtils.getLocalizedString("skin.default.global.go_back_to_main",locale) %></a>                </font>            <li><font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"                 face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"                 color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">                <a href="auth.jsp"                 ><%= SkinUtils.getLocalizedString("skin.default.global.login",locale) %></a>                </font>        </ul><%      }        // Show the login box:        else {%>    <%  // If there is an unauthorized exception thrown in the skin, we will        // be entering this page and prompted to login. Indicate to the user        // that they didn't have permission to do what they tried to do.        if (unauth) { %>        <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"         face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"         color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">        <%  if (isGuest) { %>            <%= SkinUtils.getLocalizedString("skin.default.login.guests_not_authorized",locale) %>        <%  } else { %>            <%= SkinUtils.getLocalizedString("skin.default.login.user_not_authorized",locale) %>        <%  } %>        </font><p>    <%  } // end if unauth %>    <%-- Link to new accounts: --%>    <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"     face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"     color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">    <%= SkinUtils.getLocalizedString("skin.default.login.please_login",locale) %>    <%  if (newAccounts) { %>        <%= SkinUtils.getLocalizedString("skin.default.login.create_account", locale, newAccountLink) %>    <%  } %>    </font><p>    <%  // If there was an error logging in, indicate so:        if (usernamePasswordError) {    %>        <p>        <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"         color="#ff0000"         face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>">        <%= SkinUtils.getLocalizedString("skin.default.login.invalid_username_or_password",locale) %>        </font>    <%  } %>    <form action="auth.jsp" method="post" name="loginForm">    <input type="hidden" name="login" value="true">    <input type="hidden" name="unauth" value="<%= unauth %>">    <table cellpadding="2" cellspacing="0" border="0" align="center">    <tr>        <td>            <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"             face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"             color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">            <%= SkinUtils.getLocalizedString("skin.default.global.username",locale) %>            </font>        </td>        <td rowspan="2">&nbsp;</td>        <td>            <input type="text" name="username" size="30" maxlength="100" value="<%= (username!=null)?username:"" %>">        </td>    </tr>    <tr>        <td>            <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"             face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"             color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">            <%= SkinUtils.getLocalizedString("skin.default.global.password",locale) %>            </font>        </td>        <td>            <input type="password" name="password" size="30" maxlength="100">            <%  if ("true".equals(JiveGlobals.getJiveProperty("passwordReset.enabled"))) { %>                <font size="-2" face="verdana">                <br>                <%= SkinUtils.getLocalizedString("skin.default.global.left_bracket",locale) %>                <a href="resetpassword.jsp?firstTime=true"><%= SkinUtils.getLocalizedString("skin.default.login.reset_password",locale) %></a>                <%= SkinUtils.getLocalizedString("skin.default.global.right_bracket",locale) %>                </font>            <%  } %>        </td>    </tr>    <tr>        <td colspan="2">            &nbsp;        </td>        <td>            <input type="checkbox" name="autoLogin" id="cb01">            <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>"             face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"             color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">            <label for="cb01"><%= SkinUtils.getLocalizedString("skin.default.login.autologin",locale) %></label>            </font>            <!--            <a href="faq.jsp#autologin"            ><img src="images/help.gif" width="12" height="15" border="0" hspace="2"></a>            -->        </td>    </tr>    <tr>        <td colspan="3" align="center">        <br>            <input type="submit" value="<%= SkinUtils.getLocalizedString("skin.default.global.login",locale) %>">            <input type="submit" name="cancel" value="<%= SkinUtils.getLocalizedString("skin.default.global.cancel",locale) %>">        </td>    </tr>    </table>    </form>    <script language="JavaScript" type="text/javascript">    <!--    <%  if (username == null) { %>        document.loginForm.username.focus();    <%  } else { %>        document.loginForm.password.focus();    <%  } %>    //-->    </script><%      } // end else show login box %><%  } // end else to isLoggedIn %><p><%@ include file="footer.jsp" %>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?