Commit 16530919 authored by Bill Lynch's avatar Bill Lynch Committed by bill

More fixes...


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@385 b35dd754-fafc-0310-a699-88a17e54d16e
parent a4151b33
...@@ -19,4 +19,4 @@ Jive Messenger is currently down. Please see the ...@@ -19,4 +19,4 @@ Jive Messenger is currently down. Please see the
<a href="server-status.jsp">server status</a> page for more details. <a href="server-status.jsp">server status</a> page for more details.
</p> </p>
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
\ No newline at end of file \ No newline at end of file
...@@ -120,4 +120,4 @@ current one. ...@@ -120,4 +120,4 @@ current one.
--%> --%>
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
\ No newline at end of file \ No newline at end of file
...@@ -210,4 +210,4 @@ Total Users: <%= userCount %>. ...@@ -210,4 +210,4 @@ Total Users: <%= userCount %>.
<br> <br>
<input type="submit" value="Add"> <input type="submit" value="Add">
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
<% admin.init(request, response, session, application, out ); %> <% admin.init(request, response, session, application, out ); %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<% // Title of this page and breadcrumbs <% // Title of this page and breadcrumbs
String title = "MultiUser Chat History Settings"; String title = "Group Chat History Settings";
pageinfo.setTitle(title); pageinfo.setTitle(title);
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "index.jsp")); pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "index.jsp"));
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "muc-history-settings.jsp")); pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Group Chat History", "muc-history-settings.jsp"));
pageinfo.setPageID("muc-history"); pageinfo.setPageID("muc-history");
%> %>
<jsp:include page="top.jsp" flush="true" /> <jsp:include page="top.jsp" flush="true" />
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<% // Title of this page and breadcrumbs <% // Title of this page and breadcrumbs
String title = "Edit MultiUser Chat Properties"; String title = "Group Chat Properties";
pageinfo.setTitle(title); pageinfo.setTitle(title);
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "index.jsp")); pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "index.jsp"));
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "muc-server-props-edit-form.jsp")); pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "muc-server-props-edit-form.jsp"));
...@@ -101,7 +101,7 @@ Use the form below to edit Multi-User Chat server properties. ...@@ -101,7 +101,7 @@ Use the form below to edit Multi-User Chat server properties.
</tr> </tr>
<tr> <tr>
<td class="c1"> <td class="c1">
Multi User Chat server name: Group chat service name:
</td> </td>
<td> <td>
<input type="text" size="30" maxlength="150" name="mucname" value="<%= muc %>">.<%=name%> <input type="text" size="30" maxlength="150" name="mucname" value="<%= muc %>">.<%=name%>
......
...@@ -204,4 +204,4 @@ Total Users: <%= userCount %>. ...@@ -204,4 +204,4 @@ Total Users: <%= userCount %>.
</table> </table>
<br> <br>
<input type="submit" value="Add"> <input type="submit" value="Add">
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
\ No newline at end of file \ No newline at end of file
...@@ -2,18 +2,26 @@ ...@@ -2,18 +2,26 @@
- $RCSfile$ - $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
-
- Copyright (C) 2004 Jive Software. All rights reserved.
-
- This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution.
--%> --%>
<%@ taglib uri="core" prefix="c"%>
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
java.util.*, java.util.*,
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
java.text.DateFormat, java.text.DateFormat,
java.text.NumberFormat, java.text.NumberFormat,
org.jivesoftware.admin.*, org.jivesoftware.admin.*,
org.jivesoftware.messenger.user.User" %> org.jivesoftware.messenger.user.User"
errorPage="error.jsp"
%>
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" /> <%@ taglib uri="core" prefix="c"%>
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% // Get parameters <% // Get parameters
String jid = ParamUtils.getParameter(request, "jid"); String jid = ParamUtils.getParameter(request, "jid");
...@@ -65,33 +73,36 @@ ...@@ -65,33 +73,36 @@
pageinfo.setTitle(title); pageinfo.setTitle(title);
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "index.jsp")); pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "index.jsp"));
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "session-details.jsp")); pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "session-details.jsp"));
pageinfo.setSubPageID("session-details"); pageinfo.setSubPageID("session-summary");
%> %>
<%@ include file="top.jsp" %> <jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" /> <jsp:include page="title.jsp" flush="true" />
<p> <p>
Below are session details for the session <b><%= address.toString() %></b>. If the Below are session details for the session <b><%= address.toString() %></b>. If the
user <b><%= address.getName() %></b> has multiple sessions open, they will appear below. user <b><%= address.getName() %></b> has multiple sessions open, they will appear below.
</p> </p>
<p>
<b>Session Details</b>
</p>
<div class="jive-table"> <div class="jive-table">
<table cellpadding="3" cellspacing="1" border="0" width="100%"> <table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr> <thead>
<td class="jive-label"> <tr>
<th colspan="2">
Session Details
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="c1">
Session ID: Session ID:
</td> </td>
<td> <td>
<%= address.toString() %> <%= address.toString() %>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="jive-label"> <td class="c1">
User Name &amp; Resource: User Name &amp; Resource:
</td> </td>
<td> <td>
...@@ -107,9 +118,9 @@ user <b><%= address.getName() %></b> has multiple sessions open, they will appea ...@@ -107,9 +118,9 @@ user <b><%= address.getName() %></b> has multiple sessions open, they will appea
<% } %> <% } %>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="jive-label"> <td class="c1">
Status: Status:
</td> </td>
<td> <td>
...@@ -147,9 +158,9 @@ user <b><%= address.getName() %></b> has multiple sessions open, they will appea ...@@ -147,9 +158,9 @@ user <b><%= address.getName() %></b> has multiple sessions open, they will appea
} }
%> %>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="jive-label"> <td class="c1">
Presence: Presence:
</td> </td>
<td> <td>
...@@ -198,34 +209,34 @@ user <b><%= address.getName() %></b> has multiple sessions open, they will appea ...@@ -198,34 +209,34 @@ user <b><%= address.getName() %></b> has multiple sessions open, they will appea
} }
%> %>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="jive-label"> <td class="c1">
Session Created: Session Created:
</td> </td>
<td> <td>
<%= dateFormatter.format(currentSess.getCreationDate()) %> <%= dateFormatter.format(currentSess.getCreationDate()) %>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="jive-label"> <td class="c1">
Session Last Active: Session Last Active:
</td> </td>
<td> <td>
<%= dateFormatter.format(currentSess.getLastActiveDate()) %> <%= dateFormatter.format(currentSess.getLastActiveDate()) %>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="jive-label"> <td class="c1">
Session Statistics: Session Statistics:
</td> </td>
<td> <td>
Packets Received/Sent: Packets Received/Sent:
<%= numFormatter.format(currentSess.getNumClientPackets()) %>/<%= numFormatter.format(currentSess.getNumServerPackets()) %> <%= numFormatter.format(currentSess.getNumClientPackets()) %>/<%= numFormatter.format(currentSess.getNumServerPackets()) %>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="jive-label"> <td class="c1">
Client IP / Hostname: Client IP / Hostname:
</td> </td>
<td> <td>
...@@ -233,7 +244,8 @@ user <b><%= address.getName() %></b> has multiple sessions open, they will appea ...@@ -233,7 +244,8 @@ user <b><%= address.getName() %></b> has multiple sessions open, they will appea
/ /
<%= currentSess.getConnection().getInetAddress().getHostName() %> <%= currentSess.getConnection().getInetAddress().getHostName() %>
</td> </td>
</tr> </tr>
</tbody>
</table> </table>
</div> </div>
...@@ -306,4 +318,4 @@ user <b><%= address.getName() %></b> has multiple sessions open, they will appea ...@@ -306,4 +318,4 @@ user <b><%= address.getName() %></b> has multiple sessions open, they will appea
</center> </center>
</form> </form>
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
<%= sess.getConnection().getInetAddress().getHostAddress() %> <%= sess.getConnection().getInetAddress().getHostAddress() %>
</td> </td>
<td width="1%" nowrap align="center"> <td width="1%" nowrap align="center" style="border-right:1px #ccc solid;">
<a href="session-summary.jsp?jid=<%= sess.getAddress() %>&close=true" <a href="session-summary.jsp?jid=<%= sess.getAddress() %>&close=true"
title="Click to kill session..." title="Click to kill session..."
onclick="return confirm('Are you sure you want to close this connection?');" onclick="return confirm('Are you sure you want to close this connection?');"
......
<%@ taglib uri="core" prefix="c"%><%-- <%--
- $RCSfile$ - $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
-
- Copyright (C) 2004 Jive Software. All rights reserved.
-
- This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution.
--%> --%>
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
...@@ -9,34 +14,21 @@ ...@@ -9,34 +14,21 @@
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
java.util.Date, java.util.Date,
org.jivesoftware.admin.*, org.jivesoftware.admin.*,
java.text.DateFormat" %> java.text.DateFormat"
errorPage="error.jsp"
%>
<%@ taglib uri="core" prefix="c"%>
<%-- Define Administration Bean --%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %> <% admin.init(request, response, session, application, out ); %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<% // Title of this page and breadcrumbs
String title = "Session Summary";
pageinfo.setTitle(title);
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "index.jsp"));
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "session-summary.jsp"));
pageinfo.setPageID("session-summary");
%>
<jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<% // Get parameters <% // Get parameters
int start = ParamUtils.getIntParameter(request,"start",0); int start = ParamUtils.getIntParameter(request,"start",0);
int range = ParamUtils.getIntParameter(request,"range",15); int range = ParamUtils.getIntParameter(request,"range",15);
boolean close = ParamUtils.getBooleanParameter(request,"close"); boolean close = ParamUtils.getBooleanParameter(request,"close");
String jid = ParamUtils.getParameter(request,"jid"); String jid = ParamUtils.getParameter(request,"jid");
// Get the user manager // Get the user manager
SessionManager sessionManager = admin.getSessionManager(); SessionManager sessionManager = admin.getSessionManager();
...@@ -67,6 +59,18 @@ ...@@ -67,6 +59,18 @@
// Date dateFormatter for all dates on this page: // Date dateFormatter for all dates on this page:
DateFormat dateFormatter = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,DateFormat.SHORT); DateFormat dateFormatter = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,DateFormat.SHORT);
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<% // Title of this page and breadcrumbs
String title = "Session Summary";
pageinfo.setTitle(title);
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "index.jsp"));
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "session-summary.jsp"));
pageinfo.setPageID("session-summary");
%>
<jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<% if ("success".equals(request.getParameter("close"))) { %> <% if ("success".equals(request.getParameter("close"))) { %>
<p class="jive-success-text"> <p class="jive-success-text">
...@@ -102,18 +106,15 @@ Active Sessions: <b><%= sessionCount %></b>, ...@@ -102,18 +106,15 @@ Active Sessions: <b><%= sessionCount %></b>,
</p> </p>
<% } %> <% } %>
<table cellpadding="3" cellspacing="1" border="0" width="600">
<tr class="tableHeader"><td colspan="8" align="left">Current Sessions</td></tr>
<tr><td colspan="8" class="text">
Below is a list of sessions on this server.
</tr>
<p>
Below is a list of sessions on this server.
</p>
<div class="jive-table">
</table> <table cellpadding="0" cellspacing="0" border="0" width="100%">
<table class="jive-table" cellpadding="3" cellspacing="1" border="0" width="600"> <thead>
<tr>
<tr>
<th>&nbsp;</th> <th>&nbsp;</th>
<th>Name</th> <th>Name</th>
<th>Resource</th> <th>Resource</th>
...@@ -121,15 +122,16 @@ Below is a list of sessions on this server. ...@@ -121,15 +122,16 @@ Below is a list of sessions on this server.
<th nowrap colspan="2">Presence (if authenticated)</th> <th nowrap colspan="2">Presence (if authenticated)</th>
<th nowrap>Client IP</th> <th nowrap>Client IP</th>
<th nowrap>Close Connection</th> <th nowrap>Close Connection</th>
</tr> </tr>
</thead>
<% // Get the iterator of sessions, print out session info if any exist. <tbody>
<% // Get the iterator of sessions, print out session info if any exist.
SessionResultFilter filter = new SessionResultFilter(); SessionResultFilter filter = new SessionResultFilter();
filter.setStartIndex(start); filter.setStartIndex(start);
filter.setNumResults(range); filter.setNumResults(range);
Iterator sessions = sessionManager.getSessions(filter); Iterator sessions = sessionManager.getSessions(filter);
if (!sessions.hasNext()) { if (!sessions.hasNext()) {
%> %>
<tr> <tr>
<td colspan="8"> <td colspan="8">
...@@ -138,19 +140,20 @@ Below is a list of sessions on this server. ...@@ -138,19 +140,20 @@ Below is a list of sessions on this server.
</td> </td>
</tr> </tr>
<% } %> <% } %>
<% int count = start; <% int count = start;
boolean current = false; // needed in session-row.jspf boolean current = false; // needed in session-row.jspf
String linkURL = "session-details.jsp"; String linkURL = "session-details.jsp";
while (sessions.hasNext()) { while (sessions.hasNext()) {
Session sess = (Session)sessions.next(); Session sess = (Session)sessions.next();
count++; count++;
%> %>
<%@ include file="session-row.jspf" %> <%@ include file="session-row.jspf" %>
<% } %> <% } %>
</tbody>
</table> </table>
</div> </div>
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
</form> </form>
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
<% } else if ("main".equals(panel)) { %> <% } else if ("main".equals(panel)) { %>
...@@ -230,6 +230,6 @@ ...@@ -230,6 +230,6 @@
<% } %> <% } %>
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
<% } %> <% } %>
...@@ -242,4 +242,4 @@ function checkFields() { ...@@ -242,4 +242,4 @@ function checkFields() {
} }
</script> </script>
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
...@@ -161,4 +161,4 @@ Use the form below to edit user properties. ...@@ -161,4 +161,4 @@ Use the form below to edit user properties.
</form> </form>
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
\ No newline at end of file \ No newline at end of file
<%@ taglib uri="core" prefix="c"%>
<%-- <%--
- $RCSfile$ - $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $Date$
-
- Copyright (C) 2004 Jive Software. All rights reserved.
-
- This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution.
--%> --%>
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
...@@ -13,10 +17,11 @@ ...@@ -13,10 +17,11 @@
java.text.DateFormat, java.text.DateFormat,
java.util.HashMap, java.util.HashMap,
org.jivesoftware.messenger.user.*, org.jivesoftware.messenger.user.*,
java.util.Map" %> java.util.Map"
errorPage="error.jsp"
%>
<c:set var="sbar" value="session" scope="page" /> <%@ taglib uri="core" prefix="c"%>
<% // Get parameters <% // Get parameters
String username = ParamUtils.getParameter(request,"username"); String username = ParamUtils.getParameter(request,"username");
...@@ -30,16 +35,10 @@ ...@@ -30,16 +35,10 @@
String message = ParamUtils.getParameter(request,"message"); String message = ParamUtils.getParameter(request,"message");
%> %>
<%-- Define Administration Bean --%>
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% webManager.init(pageContext); %> <% webManager.init(pageContext); %>
<% <%
// Handle a cancel // Handle a cancel
if (request.getParameter("cancel") != null) { if (request.getParameter("cancel") != null) {
if (username == null) { if (username == null) {
...@@ -91,9 +90,12 @@ ...@@ -91,9 +90,12 @@
sessionManager.sendServerMessage(XMPPAddress.parseJID(jid),null,message); sessionManager.sendServerMessage(XMPPAddress.parseJID(jid),null,message);
} }
} }
if(username != null){ if (username != null){
response.sendRedirect("user-message.jsp?success=true&username=" + username + "&tabs=" + tabs); response.sendRedirect("user-message.jsp?success=true&username=" + username + "&tabs=" + tabs);
} }
else {
response.sendRedirect("user-message.jsp?success=true");
}
return; return;
} }
} }
...@@ -110,6 +112,7 @@ ...@@ -110,6 +112,7 @@
} }
} }
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<% // Title of this page and breadcrumbs <% // Title of this page and breadcrumbs
String title = "Send Administrative Message"; String title = "Send Administrative Message";
...@@ -118,30 +121,25 @@ ...@@ -118,30 +121,25 @@
pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "user-message.jsp")); pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "user-message.jsp"));
pageinfo.setPageID("user-message"); pageinfo.setPageID("user-message");
%> %>
<%@ include file="top.jsp" %>
<jsp:include page="title.jsp" flush="true" />
<% if (tabs && username != null) { %>
<br>
<c:set var="tab" value="message" />
<%@ include file="user-tabs.jsp" %>
<% } %> <jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<% if (success) { %> <% if (success) { %>
<p class="jive-success-text"> <div class="jive-success">
Message was sent successfully! <table cellpadding="0" cellspacing="0" border="0">
</p> <tbody>
<tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0"></td>
<td class="jive-icon-label">
Message sent successfully.
</td></tr>
</tbody>
</table>
</div><br>
<% } %> <% } %>
<p>
</p>
<script language="JavaScript" type="text/javascript"> <script language="JavaScript" type="text/javascript">
function updateSelect(el) { function updateSelect(el) {
if (el.checked) { if (el.checked) {
...@@ -262,4 +260,4 @@ function updateSelect(el) { ...@@ -262,4 +260,4 @@ function updateSelect(el) {
document.f.message.focus(); document.f.message.focus();
</script> </script>
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
\ No newline at end of file \ No newline at end of file
...@@ -154,4 +154,4 @@ Use the form below to change the user's password. ...@@ -154,4 +154,4 @@ Use the form below to change the user's password.
document.passform.password.focus(); document.passform.password.focus();
</script> </script>
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment