server-props.jsp 3.98 KB
Newer Older
Matt Tucker's avatar
Matt Tucker committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
<%@ taglib uri="core" prefix="c"%>
<%@ taglib uri="fmt" prefix="fmt" %>
<%--
  -	$RCSfile$
  -	$Revision$
  -	$Date$
--%>

<%@ page import="org.jivesoftware.util.*,
                 org.jivesoftware.messenger.XMPPServerInfo,
                 java.util.Iterator,
                 org.jivesoftware.messenger.ServerPort,
                 org.jivesoftware.messenger.chat.ChatServer"
%>
<!-- Define Administration Bean -->
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager"  />
<% admin.init(request, response, session, application, out ); %>
<c:set var="admin" value="${admin.manager}" />

<!-- Define Title and BreadCrumbs -->
<c:set var="title" value="Server Properties"  />
<c:set var="breadcrumbs" value="${admin.breadCrumbs}"  />
<c:set target="${breadcrumbs}" property="Home" value="main.jsp" />
<c:set target="${breadcrumbs}" property="${title}" value="server-props.jsp" />
<%@ include file="top.jsp" %>



<p>
Below is a list of information for this <fmt:message key="short.title" bundle="${lang}" /> server.
</p>


<table class="box" cellpadding="3" cellspacing="1" border="0" width="600">
<tr class="tableHeaderBlue"><td colspan="3" align="center">General Information</td></tr>
<tr>
    <td class="jive-label">
        Server Version:
    </td>
    <td colspan="2">
        <fmt:message key="short.title" bundle="${lang}" /> Server <c:out value="${admin.serverInfo.version.versionString}" />
    </td>
</tr>
<tr>
    <td class="jive-label">
        JVM Version and Vendor:
    </td>
    <td colspan="2">
        <%= System.getProperty("java.version") %> <%= System.getProperty("java.vendor") %>
    </td>
</tr>
<tr>
    <td class="jive-label">
        Appserver (Admin Tool):
    </td>
    <td colspan="2">
        <%= application.getServerInfo() %>
    </td>
</tr>
<tr>
    <td class="jive-label">
        Server Name:
    </td>
    <td>
      <c:out value="${admin.serverInfo.name}" />
    </td><td align=right nowrap>
        <a href="server-props-edit-form.jsp"
         title="Click to edit..."
         >Edit <img src="images/edit-16x16.gif" width="17" height="17" border="0"></a>
     </td>
</tr>
<c:if test="${!empty admin.chatServer}">
  <tr>
      <td class="jive-label">
          Chat Server Name:
      </td>
      <td colspan=2>
        <c:out value="${admin.chatServer.chatServerName}" />
      </td>
  </tr>
</c:if>
<c:if test="${!empty admin.multiUserChatServer}">
  <tr>
      <td class="jive-label">
          Multi User Chat Server Name:
      </td>
      <td colspan=2>
        <c:out value="${admin.multiUserChatServer.chatServerName}" />
      </td>
  </tr>
</c:if>
</table>

<c:forEach var="port" items="${admin.serverInfo.serverPorts}">
<br>
<table class="box" cellpadding="3" cellspacing="1" border="0" width="600">
  <tr class="tableHeaderBlue"><td colspan="3" align="center">Open Server Ports</td></tr>
    <tr valign="top">
        <td class="jive-label">
            IP and Port:
        </td>
        <td>
            <b><c:out value="${port.IPAddress}" />:<c:out value="${port.port}" /></b>
        </td>
    </tr>
    <tr valign="top">
        <td class="jive-label">
            Domain Name(s):
        </td>
        <td>
        <c:set var="sep" value="" />
         <c:forEach var="name" items="${port.domainNames}">
           <c:out value="${sep}" /><c:out value="${name}" />
           <c:set var="set" value=", " />
         </c:forEach>
        </td>
    </tr>
    <tr valign="top">
        <td class="jive-label">
            Security Type:
        </td>
        <td>
        <c:choose>
        <c:when test="${empty port.securityType}">

                NORMAL
        </c:when>
        <c:otherwise>
           <c:choose>
             <c:when test="${port.securityType == 'TLS'}">

                    TLS (SSL)
              </c:when>
              <c:otherwise>
                <c:out value="${port.securityType}" />
              </c:otherwise>
            </c:choose>
          </c:otherwise>
        </c:choose>
        </td>
    </tr>
    </table>
    </div>
</c:forEach>

<%@ include file="bottom.jsp" %>