⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.jsp

📁 Jive是基于JSP/JAVA技术构架的一个大型BBS论坛系统,这是Jive论坛2.6版本的源程序
💻 JSP
字号:
<%/** *	$RCSfile: main.jsp,v $ *	$Revision: 1.12 $ *	$Date: 2002/04/19 02:46:37 $ */%><%@ page import="java.util.*,                 com.jivesoftware.forum.*,                 com.jivesoftware.forum.util.*" %><%@ include file="global.jsp" %><%@ include file="header.jsp" %><p><%  String jiveEdition = null;    switch (JiveGlobals.getJiveEdition()) {        case JiveGlobals.BASIC:            jiveEdition = "Jive Forums Basic";            break;        case JiveGlobals.PROFESSIONAL:            jiveEdition = "Jive Forums Professional";            break;        case JiveGlobals.ENTERPRISE:            jiveEdition = "Jive Forums Enterprise";            break;        default :            jiveEdition = "-";            break;    }    // Load license details:    boolean isCommercial = false;    boolean isNonCommercial = false;    boolean isEvaluation = false;    int exprDaysFromNow = 1;    boolean validLicense = false;    try {        LicenseManager.validateLicense(jiveEdition, "2.0");        validLicense = true;    }    catch (Exception e) {        e.printStackTrace();    }    if (validLicense) {        License.LicenseType licenseType = LicenseManager.getLicenseType();        isCommercial = (licenseType == License.LicenseType.COMMERCIAL);        isNonCommercial = (licenseType == License.LicenseType.NON_COMMERCIAL);        isEvaluation = (!isCommercial && !isNonCommercial);        if (isEvaluation) {            Date exprDate = LicenseManager.getExpiresDate();            if (exprDate != null) {                long expires = exprDate.getTime() - System.currentTimeMillis();                exprDaysFromNow = (int)Math.ceil((double)(expires/JiveGlobals.DAY))+1;            }            else {                exprDaysFromNow = -1;            }        }    }%><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td>    <b><%= jiveEdition %> - Admin</b>    </td></tr><tr><td>    <hr size="0" width="100%">    </td></tr></table><font size="-1"><b>Welcome to the Jive Forums Administration tool.</b></font><p><ul>    <table bgcolor="#cccccc" cellpadding="1" cellspacing="0" border="0">    <tr><td>    <table bgcolor="#ffffff" cellpadding="3" cellspacing="0" border="0">    <tr bgcolor="#eeeeee">        <td>            <font size="-1">            <b>Version:</b>            </font>        </td>        <td>&nbsp;</td>        <td>            <font size="-1">            <b><%= jiveEdition %> <%= JiveGlobals.getJiveVersion() %></b>            </font>        </td>    </tr>    <tr>        <td>            <font size="-1" color="#444444">            &nbsp;            Appserver:            </font>        </td>        <td>&nbsp;</td>        <td>            <font size="-1" color="#444444">            <%= application.getServerInfo() %>            </font>        </td>    </tr>    <%  if (isSystemAdmin) { %>    <tr>        <td>            <font size="-1" color="#444444">            &nbsp;            jiveHome Directory:            </font>        </td>        <td>&nbsp;</td>        <td>            <font size="-1" color="#444444">            <%= JiveGlobals.getJiveHome() %>            </font>        </td>    </tr>    <%  } %>    <tr>        <td valign="top">            <font size="-1" color="#444444">            &nbsp;            License:            </font>        </td>        <td>&nbsp;</td>        <td>            <table cellpadding="0" cellspacing="0" border="0" width="100%">            <tr><td width="1%" valign="top">                <%  if (isCommercial || isNonCommercial) { %>                    <img src="images/check.gif" width="13" height="13" border="0" hspace="4">                <%  } else { %>                    <img src="images/x.gif" width="13" height="13" border="0" hspace="4">                <%  } %>                </td>                <td width="99%">                <font size="-1" color="#444444">                <%  if (isCommercial) { %>                    You are licensed for commercial deployment.                <%  } else if (isNonCommercial) { %>                    You are licensed for <b>non-commercial</b> deployment.                <%  } else if (isEvaluation) { %>                    <%  if (exprDaysFromNow == -1) { %>                        You are licensed for <b>evaluation</b> purposes only.                    <%  } else { %>                        You are licensed for <b>evaluation</b> purposes. Your                        evalution period will end <%= exprDaysFromNow %>                        day<%= (exprDaysFromNow==1?"":"s") %> from now.                    <%  } %>                <%  } else { %>                    Your license is invalid.                <%  } %>                <br>                <a href="license.jsp">More Details</a>                </font>            </td></tr>            </table>        </td>    </tr>    </table>    </td></tr>    </table></ul><br><%  // Only show these links if we're a system admin:    if (isSystemAdmin) {%><font size="-1"><b>Common Administrative Tasks</b></font><ul>    <table cellpadding="5" cellspacing="0" border="0">    <tr>        <td valign="top">            <a href="forums.jsp"            ><img src="images/go_to.gif" width="13" height="10" border="0" vspace="3"></a>        </td>        <td onmouseover="this.bgColor='#f1faff';this.style.cursor='hand';" onmouseout="this.bgColor='#ffffff';"         onclick="location.href='forums.jsp';">            <font size="-1">            <a href="forums.jsp"            ><b>Categories &amp; Forums Summary</b></a>            <br>            <font color="#444444">            Create, manage or delete categories and forums.            </font>            </font>        </td>        <td valign="top">            <a href="users.jsp"            ><img src="images/go_to.gif" width="13" height="10" border="0" vspace="3"></a>        </td>        <td onmouseover="this.bgColor='#f1faff';this.style.cursor='hand';" onmouseout="this.bgColor='#ffffff';"         onclick="location.href='users.jsp';">            <font size="-1">            <a href="users.jsp"            ><b>User Summary</b></a>            <br>            <font color="#444444">            Create, manage or delete users.            </font>            </font>        </td>    </tr>    <tr>        <td valign="top">            <a href="filters.jsp"            ><img src="images/go_to.gif" width="13" height="10" border="0" vspace="3"></a>        </td>        <td onmouseover="this.bgColor='#f1faff';this.style.cursor='hand';" onmouseout="this.bgColor='#ffffff';"         onclick="location.href='filters.jsp';">            <font size="-1">            <a href="filters.jsp"            ><b>Global Message Filters</b></a>            <br>            <font color="#444444">            Control how message content is formatted.            </font>            </font>        </td>        <td valign="top">            <a href="perms.jsp?mode=<%= FORUM_MODE %>&permGroup=<%= CONTENT_GROUP %>"            ><img src="images/go_to.gif" width="13" height="10" border="0" vspace="3"></a>        </td>        <td onmouseover="this.bgColor='#f1faff';this.style.cursor='hand';" onmouseout="this.bgColor='#ffffff';"         onclick="location.href='perms.jsp?mode=<%= FORUM_MODE %>&permGroup=<%= CONTENT_GROUP %>';">            <font size="-1">            <a href="perms.jsp?mode=<%= FORUM_MODE %>&permGroup=<%= CONTENT_GROUP %>"            ><b>Global Permissions</b></a>            <br>            <font color="#444444">            Set global access policies.            </font>            </font>        </td>    </tr>    <tr>        <td valign="top">            <a href="cache.jsp"            ><img src="images/go_to.gif" width="13" height="10" border="0" vspace="3"></a>        </td>        <td onmouseover="this.bgColor='#f1faff';this.style.cursor='hand';" onmouseout="this.bgColor='#ffffff';"         onclick="location.href='cache.jsp';">            <font size="-1">            <a href="cache.jsp"            ><b>Cache Settings</b></a>            <br>            <font color="#444444">            Tune and monitor performance.            </font>            </font>        </td>        <td valign="top">            <a href="locale.jsp"            ><img src="images/go_to.gif" width="13" height="10" border="0" vspace="3"></a>        </td>        <td onmouseover="this.bgColor='#f1faff';this.style.cursor='hand';" onmouseout="this.bgColor='#ffffff';"         onclick="location.href='locale.jsp';">            <font size="-1">            <a href="locale.jsp"            ><b>Locale Settings</b></a>            <br>            <font color="#444444">            Modify international preferences.            </font>            </font>        </td>    </tr>    </table></ul><%  } %><font size="-1"><b>Help &amp; Documentation</b></font><ul>    <font size="-1">    Inline documentation is located throughout the admin tool. Click on the    help icon <img src="images/help.gif" width="12" height="15" border="0">    to launch context-specific help.    </font></ul><p><%@ include file="footer.jsp" %>

⌨️ 快捷键说明

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