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

📄 gateways.jsp

📁 jive3.1.4破解版(非源码)
💻 JSP
📖 第 1 页 / 共 2 页
字号:
        }    }    if (!errors) {        // get the current value of the gateway footer        footer = gatewayManager.getExportFooter();    }%><%@ include file="header.jsp" %><p><%  // Title of this page and breadcrumbs    String title = "Gateways";    String[][] breadcrumbs = {        {"Main", "main.jsp"},        {"Categories &amp; Forums", "forums.jsp?cat=" + forum.getForumCategory().getID()},        {"Edit Forum", "editForum.jsp?forum="+forumID},        {"Gateways", "gateways.jsp?forum="+forumID}    };%><%@ include file="title.jsp" %><font size="-1">Gateways allow you to synchronize your forum with an external data source. Forexample, use the newsgroup gateway to mirror the content of an NNTP newsgroup.</font><p><%  // Check for a one time message    String message = getOneTimeMessage(session, "jive.admin.message");    if (message != null) {%>    <font size="-1" color="#006600"><i><%= message %></i></font>    <p><%  }    message = getOneTimeMessage(session, "gatewayConfigError");    if (message != null) {%>    <font size="-1" color="#bb0000"><b><%= message %></b></font>    <p><%  } %><%  // Number of installed gateways for this forum. Only show this section    // if there are gateways to display    gatewayCount = gatewayManager.getGatewayCount();    if (gatewayCount > 0) {%><p><font size="-1"><b>Installed Gateways</b></font><ul>    <table bgcolor="<%= tblBorderColor %>" cellpadding="0" cellspacing="0" border="0" width="">    <tr><td>    <table bgcolor="<%= tblBorderColor %>" cellpadding="3" cellspacing="1" border="0" width="100%">    <tr bgcolor="#eeeeee">        <td align="center" colspan="2"><font size="-2" face="verdana"><b>SOURCE</b></font></td>        <td align="center"><font size="-2" face="verdana"><b>EDIT</b></font></td>        <td align="center"><font size="-2" face="verdana"><b>DELETE</b></font></td>    </tr><%  // Loop through the list of installed gateways, show some info about each    for (int i=0; i<gatewayCount; i++) {        Gateway gateway = gatewayManager.getGateway(i);        boolean isEmailGateway = (gateway instanceof EmailGateway || gateway instanceof ImapGateway);        boolean isNewsgroupGateway = (gateway instanceof NewsgroupGateway);%>    <tr bgcolor="#ffffff">        <%            String displayName = "";            if (isEmailGateway) {                if (gateway instanceof EmailGateway) {                    EmailGateway emailGateway = (EmailGateway) gateway;                    Pop3Importer pop3Importer = (Pop3Importer) emailGateway.getGatewayImporter();                    displayName = pop3Importer.getHost();                }                /*                .getToAddress();                if (displayName == null) {                    displayName = emailGateway.getSMTPHost();                    if (displayName == null) {                        displayName = emailGateway.getPOP3Host();                    }                }                */                if (gateway instanceof ImapGateway) {                    ImapGateway imapGateway = (ImapGateway) gateway;                    ImapImporter imapImporter = (ImapImporter) imapGateway.getGatewayImporter();                    displayName = imapImporter.getHost();                }        %>        <td><img src="images/button_email.gif" width="17" height="17" alt="" border="0"></td>        <td>            <font size="-1">            <b>Email<% if (displayName!=null) { %>:<% } %></b>            <% if (displayName!=null) { %><%= displayName%><% } %>            </font>        </td>        <%  } else if (isNewsgroupGateway) {                NewsgroupGateway newsgroupGateway = (NewsgroupGateway) gateway;                NewsgroupImporter newsgroupImporter = (NewsgroupImporter) newsgroupGateway.getGatewayImporter();                displayName = newsgroupImporter.getNewsgroup();                if (displayName == null) {                    displayName = newsgroupImporter.getHost();                }        %>        <td><img src="images/button_newsgroup.gif" width="17" height="17" alt="" border="0"></td>        <td>            <font size="-1">            <b>News<% if (displayName!=null) { %>:<% } %></b>            <% if (displayName!=null) { %><%= displayName%><% } %>            </font>        </td>        <%  } %>        <td align="center">        <%  if (isEmailGateway) { %>            <a href="editEmailGateway.jsp?edit=true&forum=<%= forumID %>&index=<%= i %>"            ><img src="images/button_edit.gif" width="17" height="17" alt="Edit the properties of this gateway" border="0"            ></a>        <%  } else if (isNewsgroupGateway) { %>            <a href="editNewsgroupGateway.jsp?edit=true&forum=<%= forumID %>&index=<%= i %>"            ><img src="images/button_edit.gif" width="17" height="17" alt="Edit the properties of this gateway" border="0"            ></a>        <%  } %>        </td>        <td align="center">            <a href="gateways.jsp?remove=true&forum=<%= forumID %>&index=<%= i %>"            ><img src="images/button_delete.gif" width="17" height="17" alt="Delete this gateway" border="0"            ></a>        </td>    </tr><%  } %>    </table>    </td></tr>    </table></ul><%  } // end if gatewayCount > 0 %><%  if (!isEmailGatewayInstalled || !isNewsGatewayInstalled) { %><font size="-1"><b>Add a Gateway</b></font><ul>    <form action="gateways.jsp">    <input type="hidden" name="forum" value="<%= forumID %>">    <input type="hidden" name="doInstall" value="true">    <table cellpadding="3" cellspacing="0" border="0">    <%  if (!isEmailGatewayInstalled) { %>    <tr>    	<td valign="top"><input type="radio" name="installType" value="email" id="rb01"></td>        <td valign="top"><img src="images/button_addemail.gif" width="17" height="17" border="0"></td>    	<td><font size="-1"><label for="rb01">Email Gateway -- Synchronizes the forum with an email account or mailing list.</label></font></td>    </tr>    <%  } %>    <%  if (!isNewsGatewayInstalled) { %>    <tr>    	<td valign="top"><input type="radio" name="installType" value="news" id="rb03"></td>        <td valign="top"><img src="images/button_addnewsgroup.gif" width="17" height="17" border="0"></td>    	<td><font size="-1"><label for="rb03">Newsgroup Gateway -- Synchronizes the forum with a NNTP newsgroup.</label></font></td>    </tr>    <%  } %>    <tr>        <td colspan="3"><input type="submit" value="Add Gateway"></td>    </tr>    </table>    </form></ul><p><%  } %><font size="-1"><b>Run a Gateway Once</b></font><ul>    <form action="gateways.jsp">    <input type="hidden" name="forum" value="<%= forumID %>">    <input type="hidden" name="doImport" value="true">    <table cellpadding="3" cellspacing="0" border="0">    <tr>    	<td valign="top"><input type="radio" name="installType" value="import" id="rbimport"></td>    	<td><font size="-1"><label for="rbimport">Import -- Import all messages from a gateway.</label></font></td>    </tr>    <tr>    	<td valign="top"><input type="radio" name="installType" value="export" id="rbexport"></td>    	<td><font size="-1"><label for="rbexport">Export -- Export all messages from this forum.</label></font></td>    </tr>    <tr>        <td colspan="3"><input type="submit" value="Continue"></td>    </tr>    </table>    </form></ul><p><font size="-1"><b>Global Gateway Settings for this Forum</b></font><ul>    <form action="gateways.jsp" method="post">    <input type="hidden" name="forum" value="<%= forumID %>">    <input type="hidden" name="doSetGlobalSettings" value="true">    <table cellpadding="3" cellspacing="0" border="0">    <tr>    	<td nowrap><font size="-1">Gateway importing enabled:</font></td>    	<td>            <font size="-1">            <input type="radio" name="importEnabled" value="true" id="rb03" <% if (isImportEnabled) { %>checked<% } %>> <label for="rb03">Yes</label>            <input type="radio" name="importEnabled" value="false" id="rb04"<% if (!isImportEnabled) { %>checked<% } %>> <label for="rb04">No</label>            </font>        </td>    </tr>    <tr>    	<td nowrap><font size="-1">Gateway exporting enabled:</font></td>    	<td>            <font size="-1">            <input type="radio" name="exportEnabled" value="true" id="rb05"<% if (isExportEnabled) { %>checked<% } %>> <label for="rb05">Yes</label>            <input type="radio" name="exportEnabled" value="false" id="rb06"<% if (!isExportEnabled) { %>checked<% } %>> <label for="rb06">No</label>            </font>        </td>    </tr>    <tr>    	<td nowrap><font size="-1">Time between imports (minutes):</font></td>    	<td><input type="text" name="importInterval" value="<%= importInterval %>" size="5" maxlength="10"></td>    </tr>    <tr>    	<td nowrap><font size="-1">Disable 24 hour buffer for importing messages:</font></td>    	<td>            <font size="-1">            <input type="radio" name="disableCutOffDate" value="true" id="rb05"<% if (isCutOffDateDisabled) { %>checked<% } %>> <label for="rb05">Yes</label>            <input type="radio" name="disableCutOffDate" value="false" id="rb06"<% if (!isCutOffDateDisabled) { %>checked<% } %>> <label for="rb06">No</label>            </font>    </tr>    <tr>    	<td nowrap valign="top"><font size="-1">Outgoing Message Footer:</font>            <p>            <font color="#006600">            <tt>            {threadID} {threadName}            <br>            {forumID} {forumName}            <br>            {messageID} {messageUserID}            <br>            {messageUsername} {messageName}            </tt>            </font>        </td>    	<td valign="top"><textarea name="footer" cols="30" rows="5" wrap="virtual"><% if (footer!=null) { %><%=footer%><% } %></textarea></td>    </tr>    <tr>        <td colspan="2" align="center"><br><input type="submit" value="Save Settings"></td>    </tr>    </table>    </form></ul><%@ include file="footer.jsp" %>

⌨️ 快捷键说明

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